1 |
29 |
wfjm |
-- $Id: simbus.vhd 649 2015-02-21 21:10:16Z mueller $
|
2 |
2 |
wfjm |
--
|
3 |
17 |
wfjm |
-- Copyright 2007-2011 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
4 |
2 |
wfjm |
--
|
5 |
|
|
-- This program is free software; you may redistribute and/or modify it under
|
6 |
|
|
-- the terms of the GNU General Public License as published by the Free
|
7 |
|
|
-- Software Foundation, either version 2, or at your option any later version.
|
8 |
|
|
--
|
9 |
|
|
-- This program is distributed in the hope that it will be useful, but
|
10 |
|
|
-- WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
|
11 |
|
|
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
12 |
|
|
-- for complete details.
|
13 |
|
|
--
|
14 |
|
|
------------------------------------------------------------------------------
|
15 |
|
|
-- Package Name: simbus
|
16 |
|
|
-- Description: Global signals for support control in test benches
|
17 |
|
|
--
|
18 |
|
|
-- Dependencies: -
|
19 |
29 |
wfjm |
-- Tool versions: xst 8.2-14.7; ghdl 0.18-0.31
|
20 |
2 |
wfjm |
-- Revision History:
|
21 |
|
|
-- Date Rev Version Comment
|
22 |
17 |
wfjm |
-- 2011-12-23 444 2.0 remove global clock cycle signal
|
23 |
2 |
wfjm |
-- 2010-04-24 282 1.1 add SB_(VAL|ADDR|DATA)
|
24 |
|
|
-- 2008-03-24 129 1.0.1 use 31 bits for SB_CLKCYCLE
|
25 |
|
|
-- 2007-08-27 76 1.0 Initial version
|
26 |
|
|
------------------------------------------------------------------------------
|
27 |
|
|
|
28 |
|
|
library ieee;
|
29 |
|
|
use ieee.std_logic_1164.all;
|
30 |
|
|
|
31 |
|
|
use work.slvtypes.all;
|
32 |
|
|
|
33 |
|
|
package simbus is
|
34 |
|
|
|
35 |
|
|
signal SB_CLKSTOP : slbit := '0'; -- global clock stop
|
36 |
|
|
signal SB_CNTL : slv16 := (others=>'0'); -- global signals tb -> uut
|
37 |
|
|
signal SB_STAT : slv16 := (others=>'0'); -- global signals uut -> tb
|
38 |
|
|
signal SB_VAL : slbit := '0'; -- init bcast valid
|
39 |
|
|
signal SB_ADDR : slv8 := (others=>'0'); -- init bcast address
|
40 |
|
|
signal SB_DATA : slv16 := (others=>'0'); -- init bcast data
|
41 |
|
|
|
42 |
|
|
-- Note: SB_CNTL, SB_VAL, SB_ADDR, SB_DATA can have weak ('L','H') and
|
43 |
|
|
-- strong ('0','1') drivers. Therefore always remove strenght before
|
44 |
|
|
-- using, e.g. with to_x01()
|
45 |
|
|
|
46 |
|
|
end package simbus;
|