I want to assign the value of a generic that is an integer to a signal which is a std_logic type. My generic can take only two values, 0
and 1
.
How do I do that?
vhdl
I want to assign the value of a generic that is an integer to a signal which is a std_logic type. My generic can take only two values, 0
and 1
.
How do I do that?
Best Answer
Many choices here. You can use a conditional signal assignment:
And the integer could be class constant, and derived from a generic.