📄 clockmux.vhd
字号:
library ieee;
use ieee.std_logic_1164.all;
entity ClockMux is
port
( clkina,clkinb:in std_logic;
period:in std_logic;
clkouta,clkoutb:out std_logic
);
end;
architecture a of ClockMux is
signal m1,m2:std_logic;
begin
process(period,clkina,clkinb)
begin
if period='1' then
m1<=clkinb;
m2<=clkina;
else
m1<=clkina;
m2<=clkinb;
end if;
end process;
clkouta<=m1;
clkoutb<=m2;
end a;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -