cal_div2.vhd

来自「XILINX memory interface generator. XILI」· VHDL 代码 · 共 38 行

VHD
38
字号
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
--
-- pragma translate_off
library UNISIM;
use UNISIM.VCOMPONENTS.ALL;
-- pragma translate_on

entity cal_div2 is
port(
     reset          : in std_logic;
     iclk           : in std_logic;
     oclk           : out std_logic   
     );
end cal_div2;

architecture arc_cal_div2 of cal_div2 is

signal  poclk        : std_logic;

begin

process(iclk)
begin
 if iclk'event and iclk = '1' then
  if reset = '1' then
    poclk <= '0';
    oclk  <= '0';
  else
    poclk  <= not poclk;
    oclk   <= poclk;
  end if;
 end if;
end process;
	
end arc_cal_div2;

⌨️ 快捷键说明

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