M
Matthias Alles
Guest
Hello,
I have a VHDL-beginner question:
How do I compare an unsigned signal to a value, when I don´t know the
width of this unsigned(the width depends on a parameter)?
At the moment I do it like this:
if to_integer(my_unsigned_value) = 1 then ...
But I have know idea, what the synthesis makes out of this construct (I
guess a comparator with 32 bits).
Can anyone help?
Thanks,
Matthias
I have a VHDL-beginner question:
How do I compare an unsigned signal to a value, when I don´t know the
width of this unsigned(the width depends on a parameter)?
At the moment I do it like this:
if to_integer(my_unsigned_value) = 1 then ...
But I have know idea, what the synthesis makes out of this construct (I
guess a comparator with 32 bits).
Can anyone help?
Thanks,
Matthias