⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 soundclock.vhd

📁 VHDL的数字钟
💻 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 + -