ane.vhd
来自「VHDL多功能时钟设计~~24小时制~带闹钟」· VHDL 代码 · 共 25 行
VHD
25 行
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity ane is
port (cho: in std_logic;
ane: out std_logic);
end entity ane;
architecture one of ane is
signal a: integer range 0 to 1;
begin
process(cho,a)
begin
if rising_edge(cho) then
case a is
when 0=>
a<=1;
ane<='0';
when 1=>
a<=0;
ane<='1';
when others=>null;
end case;
end if;
end process;
end one;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?