Commit 8a2c68cf authored by Wesley W. Terpstra's avatar Wesley W. Terpstra

eca: quell a warning; variable used as a constant

parent 39016fd2
......@@ -289,12 +289,12 @@ architecture rtl of eca is
end update;
impure function toggle(x : std_logic; i : natural) return std_logic is
variable v_set : std_logic := c_slave_i.dat(i+0) and c_slave_i.sel(0);
variable v_clr : std_logic := c_slave_i.dat(i+8) and c_slave_i.sel(1);
constant c_set : std_logic := c_slave_i.dat(i+0) and c_slave_i.sel(0);
constant c_clr : std_logic := c_slave_i.dat(i+8) and c_slave_i.sel(1);
begin
return ((not v_set) and (not v_clr) and ( x)) or -- unmodified
(( v_set) and ( v_clr) and (not x)) or -- toggled
(( v_set) and (not v_clr)); -- set
return ((not c_set) and (not c_clr) and ( x)) or -- unmodified
(( c_set) and ( c_clr) and (not x)) or -- toggled
(( c_set) and (not c_clr)); -- set
end toggle;
function f_all_names return t_all_name_array is
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment