testctl.vhd

来自「在maxplusII上用VHDL语言编程实现的数字基带信号的同步提取」· VHDL 代码 · 共 38 行

VHD
38
字号
library ieee;  
use ieee.std_logic_1164.all;  
use ieee.std_logic_unsigned.all; 
 
entity testctl is  
 port(clk,rst:in std_logic;  
 tsten,clr_cnt,load:out std_logic);  
end testctl;
  
architecture be_testctl of testctl is  
signal div2clk:std_logic;  
begin  
process(clk)  
begin 
  --if z='1' then
  if clk'event and clk='1' then
 div2clk<=NOT div2clk;  
end if;
 

end process;  
process(clk,div2clk)  
begin 
--if z='1' then
	if clk='0' and div2clk='0' then  
      clr_cnt<='1';  
     else clr_cnt<='0';  
    end if;
    if div2clk='0'then
      load<= NOT clk;
    end if;
--els  
end process; 
tsten<=div2clk;   
--load<= NOT div2clk; 
end be_testctl; 

⌨️ 快捷键说明

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