📄 mux_add.vhd
字号:
-- 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -