How to convert 8 bits to 16 bits in VHDL?

后端 未结 5 533
南笙
南笙 2020-12-17 14:29

I have an input signal from ADC convertor that is 8 bits (std_logic_vector(7 downto 0)). I have to convert them to a 16 bits signal (std_logic_vector(15 d

5条回答
  •  鱼传尺愫
    2020-12-17 15:30

    architecture RTL of test is
        signal s8: std_logic_vector(7 downto 0);
        signal s16: std_logic_vector(15 downto 0);
    begin
        s16 <= X"00" & s8;
    end;
    

提交回复
热议问题