1 |
3 |
mgeng |
//////////////////////////////////////////////////////////////////
|
2 |
|
|
// //
|
3 |
|
|
// The simu_mem project provides functional simulation models //
|
4 |
|
|
// of commercially available RAMs. The following types are //
|
5 |
|
|
// presently supported: //
|
6 |
|
|
// //
|
7 |
|
|
// - asynchronous static SRAMs //
|
8 |
|
|
// - synchronous static RAMs ("Zero Bus Turnaround" RAM, ZBT //
|
9 |
|
|
// RAM) //
|
10 |
|
|
// //
|
11 |
|
|
// Author(s): //
|
12 |
|
|
// - Michael Geng (vhdl@MichaelGeng.de) //
|
13 |
|
|
// //
|
14 |
|
|
//////////////////////////////////////////////////////////////////
|
15 |
|
|
// //
|
16 |
|
|
// Copyright (C) 2008 Authors //
|
17 |
|
|
// //
|
18 |
|
|
// This source file may be used and distributed without //
|
19 |
|
|
// restriction provided that this copyright statement is not //
|
20 |
|
|
// removed from the file and that any derivative work contains //
|
21 |
|
|
// the original copyright notice and the associated disclaimer. //
|
22 |
|
|
// //
|
23 |
|
|
// This source file is free software; you can redistribute it //
|
24 |
|
|
// and/or modify it under the terms of the GNU Lesser General //
|
25 |
|
|
// Public License as published by the Free Software Foundation; //
|
26 |
|
|
// either version 2.1 of the License, or (at your option) any //
|
27 |
|
|
// later version. //
|
28 |
|
|
// //
|
29 |
|
|
// This source is distributed in the hope that it will be //
|
30 |
|
|
// useful, but WITHOUT ANY WARRANTY; without even the implied //
|
31 |
|
|
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR //
|
32 |
|
|
// PURPOSE. See the GNU Lesser General Public License for more //
|
33 |
|
|
// details. //
|
34 |
|
|
// //
|
35 |
|
|
// You should have received a copy of the GNU Lesser General //
|
36 |
|
|
// Public License along with this source; if not, download it //
|
37 |
|
|
// from http://www.opencores.org/lgpl.shtml //
|
38 |
|
|
// //
|
39 |
|
|
//////////////////////////////////////////////////////////////////
|
40 |
|
|
//
|
41 |
|
|
// CVS Revision History
|
42 |
|
|
//
|
43 |
|
|
// $Log: not supported by cvs2svn $
|
44 |
|
|
|
45 |
|
|
Advantages of the simu_mem models
|
46 |
|
|
=================================
|
47 |
|
|
|
48 |
|
|
1. Consumes few simulator memory if only few memory
|
49 |
|
|
locations are accessed because it internally uses a
|
50 |
|
|
linked list.
|
51 |
|
|
2. Simulates quickly because it does not contain timing
|
52 |
|
|
information. Fast simulator startup time because of the
|
53 |
|
|
linked list.
|
54 |
|
|
3. Usable for any data and address bus width.
|
55 |
|
|
4. Works at any clock frequency.
|
56 |
|
|
5. Programmed in VHDL.
|
57 |
|
|
|
58 |
|
|
When the simu_mem models will not be useful
|
59 |
|
|
===========================================
|
60 |
|
|
1. When it has to be synthesized.
|
61 |
|
|
2. When a timing model is required. Ask your RAM vendor for
|
62 |
|
|
a timing model.
|
63 |
|
|
3. When your design is in Verilog.
|
64 |
|
|
|
65 |
|
|
Where are the simulation models?
|
66 |
|
|
================================
|
67 |
|
|
|
68 |
|
|
The RAM simulation models are located in rtl/vhdl/. They were
|
69 |
|
|
tested only with the Modelsim simulator.
|
70 |
|
|
|
71 |
|
|
How were the models tested?
|
72 |
|
|
===========================
|
73 |
|
|
|
74 |
|
|
A testbench exists for ZBT RAMs. sim/rtl_sim/bin/sim.sh will execute
|
75 |
|
|
the simulation. In order to run this test you must replace
|
76 |
|
|
bench/verilog/samsung/k7n643645m_R03.v with the original simulation
|
77 |
|
|
file from Samsung. You can find it on the Samsung semiconductor home
|
78 |
|
|
page under High Speed SRAM / NtRAM / K7N643645M.
|