📄 colour.vhd
字号:
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_unsigned.all;
use IEEE.std_logic_arith.all;
entity colour is
port (
key1:in std_logic;
color:buffer integer range 0 to 2
);
end colour;
architecture clr of colour is
begin
process(key1)
begin
if key1'event and key1='1' then
if color=2 then
color<=0;
else color<=color+1;
end if;
end if;
end process;
end clr;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -