a beginner's question here.
I want to perform following operation,
I have a std_logic_vector(1 downto 0) input. And I should extend it to four bits;
like 11 => 0011
or 10 => 0010
I tried this but it failed.
(Data0 is declared as input at entity port list)
Signal Data0_4bit: std_logic_vector(3 downto 0) :=B"0000";
Data0_4bit(1 downto 0)<=Data0(1 downto 0);
Thanks in advance.