mux2_1.vhd
来自「thats the CPU source made by JI FENG」· VHDL 代码 · 共 27 行
VHD
27 行
library ieee;use ieee.std_logic_1164.all;entity mux2_1 is port ( port1 : in std_logic; port2 : in std_logic; Sel : in std_logic; Gout : out std_logic);end mux2_1;architecture rtl of mux2_1 isbegin -- rtlprocess(sel,port1,port2) begin case sel is when'0' => Gout <= port1 ; when '1' => Gout <= port2; when others => null; end case;end process;end rtl;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?