w11 - vhd 0.794
W11 CPU core and support modules
Loading...
Searching...
No Matches
gsr_pulse.vhd
Go to the documentation of this file.
1-- $Id: gsr_pulse.vhd 1181 2019-07-08 17:00:50Z mueller $
2-- SPDX-License-Identifier: GPL-3.0-or-later
3-- Copyright 2016- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4--
5------------------------------------------------------------------------------
6-- Module Name: gsr_pulse - sim
7-- Description: pulse GSR at startup
8--
9-- Dependencies: -
10-- Test bench: -
11-- Target Devices: generic
12-- Tool versions: viv 2016.2; ghdl 0.33
13-- Revision History:
14-- 2016-09-17 808 1.0 Initial version
15------------------------------------------------------------------------------
16
17library ieee;
18use ieee.std_logic_1164.all;
19
20library unisim;
21use unisim.vcomponents.ALL;
22
23entity gsr_pulse is -- pulse GSR at startup
24 generic (
25 GSR_WIDTH : Delay_length:= 100 ns); -- GSR pulse length
26end gsr_pulse;
27
28
29architecture sim of gsr_pulse is
30
31begin
32
33 process
34 begin
35
36 -- Uses weak driver to prevent a driver clash when glbl.v is loaded too
37 -- In case glbl.v is present it will overwrite (to be tested...)
38 UNISIM.VCOMPONENTS.GSR <= 'H';
39 wait for GSR_WIDTH;
40 UNISIM.VCOMPONENTS.GSR <= 'L';
41 wait;
42
43 end process;
44
45end sim;
GSR_WIDTH Delay_length := 100 ns
Definition: gsr_pulse.vhd:25