S
Sylvain Munaut
Guest
Hi,
When outside of a process, to test something I can write
is_equal <= '1' when foo = bar else '0';
but how to do the same in a process ?
for now i must write
if foo=bar then
is_equal <= '1';
else
is_equal <= '0';
end if;
Which is a _lot_ longer ...
It can be shortened with
is_equal <= '0';
if foo=bar then
is_equal <= '1';
end if;
But it's still a lot longer ...
Sylvain
When outside of a process, to test something I can write
is_equal <= '1' when foo = bar else '0';
but how to do the same in a process ?
for now i must write
if foo=bar then
is_equal <= '1';
else
is_equal <= '0';
end if;
Which is a _lot_ longer ...
It can be shortened with
is_equal <= '0';
if foo=bar then
is_equal <= '1';
end if;
But it's still a lot longer ...
Sylvain