B
Brad Smallridge
Hello VHDL group,
I have a need to translate a natural generic
into a 0 or 1 constant something like:
entity . . .
generic(sim : natural . . .
port( ...
constant sim01 : natural := 0 if sim=0, else :=1;
.. . .
begin
.. . .
but of course this syntax doesn't fly.
Brad
I have a need to translate a natural generic
into a 0 or 1 constant something like:
entity . . .
generic(sim : natural . . .
port( ...
constant sim01 : natural := 0 if sim=0, else :=1;
.. . .
begin
.. . .
but of course this syntax doesn't fly.
Brad