- removed GHDL warnings

git-svn-id: http://moon:8086/svn/vhdl/trunk@1404 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2021-03-20 08:16:40 +00:00
parent 3302a57d0c
commit 82f44a02c8
2 changed files with 16 additions and 16 deletions
+4 -4
View File
@@ -54,14 +54,14 @@ architecture Behavioral of alu is
--------------------------------------------------------------------------
function test_zero(arg : unsigned) return STD_LOGIC is
variable result : STD_LOGIC;
variable res : STD_LOGIC;
begin
result := '0';
res := '0';
for i in arg'range loop
result := result or To_X01(arg(i));
res := res or To_X01(arg(i));
end loop;
return not result;
return not res;
end test_zero;
--------------------------------------------------------------------------