mul2wr.vhd
来自「硬件电子琴系统设计」· VHDL 代码 · 共 20 行
VHD
20 行
library ieee;
use ieee.std_logic_1164.all;
entity mul2wr is
port(sel:in std_logic;
in0,in1:std_logic;
dout:out std_logic
);
end mul2wr;
architecture behav of mul2wr is
begin
process(in1,in0,sel)
begin
if sel='1' then dout<=in1;
elsif sel='0' then dout<=in0;
end if;
end process;
end behav;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?