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

📄 music_work.vhd

📁 基于CPLD的签到器的设计
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;

entity music_work is
    port
    (
        clock:in std_logic;
        en:in std_logic_vector(1 downto 0);
        clock_out:out std_logic
    );
end entity music_work;

architecture act of music_work is
begin
process(en)
begin
   if (en="01") then
      clock_out<='1';
   elsif (en="10") then
      clock_out<=clock;
   else clock_out<='0';
   end if;
end process;
end act;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -