addm1224.vhd
来自「VHDL多功能时钟设计~~24小时制~带闹钟」· VHDL 代码 · 共 19 行
VHD
19 行
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity addm1224 is
port(hms,addin,clk1khz:in std_logic;
m12_24,addout:out std_logic);
end addm1224;
architecture one of addm1224 is
begin
process(hms,addin,clk1khz)
begin
if rising_edge(clk1khz) then
if hms='1' then
m12_24<=addin;
else addout<=addin;
end if;
end if;
end process;
end one;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?