G
Gietek
Hi,
I try this:
but it does an error:
Y <= (Sel => X, others => '0');
|
non-locally static or null range choice must be only choice
I try this:
entity demultiplex is
generic(N :integer := 4);
port(X :in bit;
Sel :integer range 0 to N-1;
Y ut bit_vector(N-1 downto 0));
end demultiplex;
architecture dataflow of demultiplex is
begin
Y <= (Sel => X, others => '0');
end dataflow;
but it does an error:
Y <= (Sel => X, others => '0');
|
non-locally static or null range choice must be only choice