📄 led.vhd
字号:
library IEEE;
use IEEE.STD_LOGIC_1164.all;
entity LED is
port(
A : in STD_LOGIC_VECTOR(15 downto 0); -- 地址总线
WR : in STD_LOGIC; -- 写使能
DWR : in STD_LOGIC_VECTOR(7 downto 0); -- 数据总线
LED : out STD_LOGIC_VECTOR(6 downto 0) -- LED段码
);
end xspLED;
architecture BHV of LED is
begin
process(A, DWR, WR)
begin
if A(15 downto 12)= "1111" then
if rising_edge(WR) then
LED<= DWR(6 downto 0);
end if;
end if;
end process;
end BHV;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -