📄 vhdl code1.bak
字号:
-- This is the VHDL code for the counter example from _The VHDL
-- Cookbook_ by Peter Ashenden. The propogation delay has been removed.
entity count2 is
port (clock : in bit; q1, q0 : out bit);
end count2;
architecture behaviour of count2 is
begin
count_up: process (clock)
variable count_value : natural := 0;
begin
if (clock = '1') then
count_value := (count_value + 1) mod 4;
q0 <= bit'val(count_value mod 2);
q1 <= bit'val(count_value / 2);
end if;
end process count_up;
end behaviour;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -