📄 soundclock.vhd
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity soundclock is
port(clk1khz,ena,tfm,tfh,clk1hz: in std_logic;
sound:out std_logic);
end soundclock;
architecture one of soundclock is
signal a:std_logic;
begin
process(clk1khz, clk1hz, tfm, tfh, ena, a)
begin
if ena='1' then
if tfm='1' and tfh='1' then a<=clk1khz;
else a<='0';
end if;
else a<='0';
end if;
sound<=clk1hz and a;
end process;
end one;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -