📄 n_pulser.vhd.bak
字号:
--function : N_pulser.vhd
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity N_pulser is
port(
clk : in std_logic;
sin : in std_logic;
pulse : out std_logic
);
end N_pulser;
architecture behave of N_pulser is
signal tmp : std_logic;
signal s_dly : std_logic;
signal p_latch : std_logic;
begin
lth1 : process(clk,sin)
begin
if clk'event and clk = '1' then
tmp <= sin;
end if;
s_dly <= not tmp;
p_latch <= sin and s_dly;
end process;
-- rst : process(s_dly,sin)
-- begin
-- pulse <= sin and s_dly;
-- end process;
lth2 : process(clk,p_latch)
begin
if clk'event and clk = '1' then
pulse <= p_latch;
else
pulse <= 'Z';
end if;
end process;
end behave;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -