mux_add.vhd

来自「能进行32位浮点数fft运算的VHDL描述。」· VHDL 代码 · 共 25 行

VHD
25
字号
-- multiplexer in the address generation unit  ???????library ieee ;use ieee.std_logic_1164.all ;use ieee.std_logic_arith.all ;use work.butter_lib.all ;use ieee.std_logic_unsigned.all ;entity mux_add isport (      a , b : in std_logic_vector(3 downto 0) ;      sel : in std_logic ;      q : out std_logic_vector(3 downto 0) ) ;end mux_add ;architecture rtl of mux_add isbeginprocess (a , b , sel)beginif(sel = '0') thenq <= a(3 downto 0) after 2 ns ;elsif(sel = '1') thenq <= b(3 downto 0) after 2 ns ;end if ;end process ;end rtl ;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?