📄 control.vhd
字号:
library ieee;
use ieee.std_logic_1164.all;
entity control is
port (clk ,start:in std_logic;
cnt_en,clr:out std_logic);
end;
architecture rtl of control is
signal en:std_logic;
begin
process(clk,start)
begin
if start='0' then
en<='0';
elsif (clk'event and clk='1')then
en<=not en;
end if ;
end process;
process(clk,en)
begin
clr<= not(not(en) and not(clk));
end process;
cnt_en<=en;
end rtl;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -