📄 lab7.vhd.bak
字号:
library ieee;
use ieee.std_logic_1164.all;
entity lab7 is
port(
clk1: in std_logic;
sseg0,sseg1,sseg2,sseg3:out std_logic_vector(6 downto 0)
);
end lab7;
architecture one of lab7 is
COMPONENT bin2led0
port(
bin0: in std_logic_vector(3 downto 0);
sseg0: out std_logic_vector(6 downto 0)
);
end COMPONENT;
COMPONENT bin2led1
port(
bin1: in std_logic_vector(3 downto 0);
sseg1: out std_logic_vector(6 downto 0)
);
end COMPONENT;
COMPONENT bin2led2
port(
bin2: in std_logic_vector(3 downto 0);
sseg2: out std_logic_vector(6 downto 0)
);
end COMPONENT;
COMPONENT bin2led3
port(
bin3: in std_logic_vector(3 downto 0);
sseg3: out std_logic_vector(6 downto 0)
);
end COMPONENT;
COMPONENT heartbeat
port(
clk:in std_logic;
d0,d1,d2,d3:out std_logic_vector(3 downto 0)
);
end COMPONENT;
signal a,b,c,d:std_logic_vector(3 downto 0);
begin
u1: heartbeat port map(clk=>clk1,d0=>a,d1=>b,d2=>c,d3=>d);
u2: bin2led0 port map(bin=>a,sseg=>sseg1);
u3: bin2led1 port map(bin=>b,sseg=>sseg2);
u4: bin2led2 port map(bin=>c,sseg=>sseg3);
u5: bin2led3 port map(bin=>d,sseg=>sseg4);
end one;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -