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

Subversion Repositories single_port

[/] [single_port/] [trunk/] [VHDL/] [single_port_pkg.vhd] - Blame information for rev 15

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 mgeng
----------------------------------------------------------------------
2
----                                                              ----
3
---- Single port asynchronous RAM simulation model                ----
4
----                                                              ----
5
---- This file is part of the single_port project                 ----
6
----                                                              ----
7
---- Description                                                  ----
8
---- Package file for single_port memory and testbench            ----
9
----                                                              ----
10
---- Authors:                                                     ----
11
---- - Robert Paley, rpaley_yid@yahoo.com                         ----
12
---- - Michael Geng, vhdl@MichaelGeng.de                          ----
13
----                                                              ----
14
---- References:                                                  ----
15
----   1. The Designer's Guide to VHDL by Peter Ashenden          ----
16
----      ISBN: 1-55860-270-4 (pbk.)                              ----
17
----   2. Writing Testbenches - Functional Verification of HDL    ----
18
----      models by Janick Bergeron | ISBN: 0-7923-7766-4         ----
19
----                                                              ----
20
----------------------------------------------------------------------
21
----                                                              ----
22
---- Copyright (C) 2005 Authors and OPENCORES.ORG                 ----
23
----                                                              ----
24
---- This source file may be used and distributed without         ----
25
---- restriction provided that this copyright statement is not    ----
26
---- removed from the file and that any derivative work contains  ----
27
---- the original copyright notice and the associated disclaimer. ----
28
----                                                              ----
29
---- This source file is free software; you can redistribute it   ----
30
---- and/or modify it under the terms of the GNU Lesser General   ----
31
---- Public License as published by the Free Software Foundation; ----
32
---- either version 2.1 of the License, or (at your option) any   ----
33
---- later version.                                               ----
34
----                                                              ----
35
---- This source is distributed in the hope that it will be       ----
36
---- useful, but WITHOUT ANY WARRANTY; without even the implied   ----
37
---- warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ----
38
---- PURPOSE. See the GNU Lesser General Public License for more  ----
39
---- details.                                                     ----
40
----                                                              ----
41
---- You should have received a copy of the GNU Lesser General    ----
42
---- Public License along with this source; if not, download it   ----
43
---- from http://www.opencores.org/lgpl.shtml                     ----
44
----                                                              ----
45
----------------------------------------------------------------------
46 2 rpaley_yid
--
47 6 mgeng
-- CVS Revision History
48 2 rpaley_yid
--
49
-- $Log: not supported by cvs2svn $
50 8 mgeng
-- Revision 1.3  2005/10/25 18:26:52  mgeng
51
-- PAGENUM constant removed because the address bus width provides this information
52
--
53 7 mgeng
-- Revision 1.2  2005/10/12 19:39:27  mgeng
54
-- Buses unconstrained, LGPL header added
55
--
56 6 mgeng
-- Revision 1.1.1.1  2003/01/14 21:48:11  rpaley_yid
57
-- initial checkin 
58
--
59 2 rpaley_yid
-- Revision 1.1  2003/01/14 17:48:44  Default
60
-- Initial revision
61
--
62
-- Revision 1.1  2002/12/24 17:58:49  Default
63
-- Initial revision
64
--
65 6 mgeng
LIBRARY IEEE;
66
  USE IEEE.STD_LOGIC_1164.ALL;
67
  USE IEEE.NUMERIC_STD.ALL;
68 2 rpaley_yid
 
69 8 mgeng
PACKAGE single_port_pkg IS
70
  -- Address bus type for internal memory
71
  SUBTYPE addr_typ IS NATURAL;
72
  -- Operations testbench can do.
73
  TYPE do_typ IS ( init , read , write , dealloc , end_test );
74 2 rpaley_yid
 
75 8 mgeng
  TYPE to_srv_typ IS RECORD -- Record passed from test case to test bench
76
    do    : do_typ;
77
    addr  : INTEGER;
78
    data  : INTEGER;
79
    event : BOOLEAN;
80 6 mgeng
  END RECORD to_srv_typ;
81
END PACKAGE single_port_pkg;
82 2 rpaley_yid
 
83 6 mgeng
PACKAGE BODY single_port_pkg IS
84
END PACKAGE BODY single_port_pkg;

powered by: WebSVN 2.1.0

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