V
valentin tihomirov
Guest
entity E is
SIZE: integer;
B : boolean;
end E;
The idea is to declare variable-length vector. Is wrapping the only solution
in VHDL?
architecture A of E is
signal S : std_logic_vector(B ? SIZE - 1: SIZE downto 0); -- C-like
ternary operators not supported
begin
...
SIZE: integer;
B : boolean;
end E;
The idea is to declare variable-length vector. Is wrapping the only solution
in VHDL?
architecture A of E is
signal S : std_logic_vector(B ? SIZE - 1: SIZE downto 0); -- C-like
ternary operators not supported
begin
...