R
Rebecca
Guest
Hello, all
I want to implement the following logic
if(C_ControlBits=0) then
NULL;
else
Addr(C_ControlBits-1 downto 0) <= (others=>'0');
end if;
Because C_ControlBits-1 will become -1 when C_ControlBits=0.
C_ControlBits is declared as constant in my design. But what's the
synthesizable VHDL code for this? I tried to put it into process but
failed.
Thanks for any hints,
Rebecca
I want to implement the following logic
if(C_ControlBits=0) then
NULL;
else
Addr(C_ControlBits-1 downto 0) <= (others=>'0');
end if;
Because C_ControlBits-1 will become -1 when C_ControlBits=0.
C_ControlBits is declared as constant in my design. But what's the
synthesizable VHDL code for this? I tried to put it into process but
failed.
Thanks for any hints,
Rebecca