📄 ledy.vhd
字号:
library ieee;
use ieee.std_logic_1164.all;
entity ledy is
port(clkin:in std_logic;
rst:in std_logic;
q:out std_logic_vector(0 to 7));
end ledy;
architecture behave of ledy is
begin
process(clkin,rst)
variable temp:std_logic_vector(0 to 7);
begin
if(clkin'event and clkin='1')then
if(rst='0')then temp:="00000001";
else temp:=temp(7)&temp(0 to 6);
end if;
end if;
q<=temp;
end process;
end behave;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -