A
ALuPin@web.de
Guest
Hi,
I am trying to do the following:
signal ls_test : unsigned(7 downto 0);
process(ls_test)
begin
if ls_test(7 downto 1) = "0000000" then
...
end if;
end process;
Now I want to have something like:
signal ls_test : unsigned(gWidth-1 downto 0);
process(ls_test)
begin
if ls_test = (ls_test'high downto ls_test'low +1 => '0') then
...
end if;
end process;
When compiling I get the following error:
"Operator "=" is not defined for such operands.
Can somebody share some light on it ?
Thank you.
Rgds, ALuPin
I am trying to do the following:
signal ls_test : unsigned(7 downto 0);
process(ls_test)
begin
if ls_test(7 downto 1) = "0000000" then
...
end if;
end process;
Now I want to have something like:
signal ls_test : unsigned(gWidth-1 downto 0);
process(ls_test)
begin
if ls_test = (ls_test'high downto ls_test'low +1 => '0') then
...
end if;
end process;
When compiling I get the following error:
"Operator "=" is not defined for such operands.
Can somebody share some light on it ?
Thank you.
Rgds, ALuPin