deng.txt

来自「多功能秒表:可以顺计时和倒计时的秒表,用三位数码管显示。」· 文本 代码 · 共 17 行

TXT
17
字号
library ieee;
use ieee.std_logic_1164.all;
entity deng is
  port(change,control:in std_logic;
       light:out std_logic_vector(2 downto 0));
end entity;
architecture behav of deng is
begin
 process (control,change)
  begin
   if control='0' then light<="001";
    elsif change='0' then light<="010";
     else light<="100";
   end if;
 end process;
end behav;

⌨️ 快捷键说明

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