OpenCores
URL https://opencores.org/ocsvn/ahbmaster/ahbmaster/trunk

Subversion Repositories ahbmaster

[/] [ahbmaster/] [trunk/] [test79_AHBmaster/] [stimulus/] [tb_clk.vhd] - Rev 3

Compare with Previous | Blame | View Log

--------------------------------------------------------------------------------
-- Company: <Name>
--
-- File: tb_clk.vhd
-- File history:
--      <Revision number>: <Date>: <Comments>
--      <Revision number>: <Date>: <Comments>
--      <Revision number>: <Date>: <Comments>
--
-- Description: 
--
-- <Description here>
--
-- Targeted device: <Family::ProASIC3> <Die::A3PN250> <Package::100 VQFP>
-- Author: <Name>
--
--------------------------------------------------------------------------------
 
library IEEE;
 
use IEEE.std_logic_1164.all;
 
entity tb_clk is
        port( 
            -- Inputs
            HCLK    : out std_logic;
            HRSTn   : out std_logic
    );
 
end tb_clk;
 
architecture RTL of tb_clk is
 
    constant SYSCLK_PERIOD : time := 20.0 ns; -- 50MHZ
    signal gclk : std_logic := '1';
 
begin
    process
        variable vhdl_initial : BOOLEAN := TRUE;
 
    begin
        if ( vhdl_initial ) then
            -- Assert Reset
            --HCLK    <= '1';
            HRSTn   <= '0';
            wait for ( SYSCLK_PERIOD * 50 );
 
            HRSTn <= '1';
            wait;
        end if;
    end process;
 
    gclk <= not gclk after (SYSCLK_PERIOD / 2.0 );
    HCLK <= gclk;
 
   -- architecture body
end RTL;
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.