📄 control.vhd
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity control is
port(p0:in std_logic_vector(7 downto 0);
ale:in std_logic;
wr:in std_logic;
a:in std_logic_vector(3 downto 0);
sel :out std_logic_vector(3 downto 0);
dataout:out std_logic_vector(7 downto 0));
end;
architecture art of control is
signal s:std_logic_vector(3 downto 0);
signal data:std_logic_vector(7 downto 0);
begin
process(ale)
begin
if ale'event and ale='1' then
data<=p0;
end if;
end process;
process(wr)
begin
if wr'event and wr='1' then
s<=a;
end if;
end process;
sel<=s;
dataout<=data;
end ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -