csout.vhd

来自「硬件电子琴系统设计」· VHDL 代码 · 共 21 行

VHD
21
字号
library ieee;
Use ieee.std_logic_1164.all;

Entity csout is
port(data:in std_logic_vector(7 downto 0);
     cs:in std_logic;
     dout:out std_logic_vector(7 downto 0)
     );
end csout;     
Architecture behav of csout is
begin
process(data,cs)
begin
if cs='0' then 
   dout<=data;
else dout<="00000000";
end if;
end process;
end behav; 

⌨️ 快捷键说明

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