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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [fpga/] [xilinx_avnet_lx9microbard/] [rtl/] [verilog/] [coregen/] [ram_16x1k_dp/] [simulation/] [ram_16x1k_dp_tb.vhd] - Blame information for rev 167

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 167 olivier.gi
--------------------------------------------------------------------------------
2
--
3
-- BLK MEM GEN v7_2 Core - Top File for the Example Testbench
4
--
5
--------------------------------------------------------------------------------
6
--
7
-- (c) Copyright 2006_3010 Xilinx, Inc. All rights reserved.
8
--
9
-- This file contains confidential and proprietary information
10
-- of Xilinx, Inc. and is protected under U.S. and
11
-- international copyright and other intellectual property
12
-- laws.
13
--
14
-- DISCLAIMER
15
-- This disclaimer is not a license and does not grant any
16
-- rights to the materials distributed herewith. Except as
17
-- otherwise provided in a valid license issued to you by
18
-- Xilinx, and to the maximum extent permitted by applicable
19
-- law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND
20
-- WITH ALL FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES
21
-- AND CONDITIONS, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING
22
-- BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, NON-
23
-- INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; and
24
-- (2) Xilinx shall not be liable (whether in contract or tort,
25
-- including negligence, or under any other theory of
26
-- liability) for any loss or damage of any kind or nature
27
-- related to, arising under or in connection with these
28
-- materials, including for any direct, or any indirect,
29
-- special, incidental, or consequential loss or damage
30
-- (including loss of data, profits, goodwill, or any type of
31
-- loss or damage suffered as a result of any action brought
32
-- by a third party) even if such damage or loss was
33
-- reasonably foreseeable or Xilinx had been advised of the
34
-- possibility of the same.
35
--
36
-- CRITICAL APPLICATIONS
37
-- Xilinx products are not designed or intended to be fail-
38
-- safe, or for use in any application requiring fail-safe
39
-- performance, such as life-support or safety devices or
40
-- systems, Class III medical devices, nuclear facilities,
41
-- applications related to the deployment of airbags, or any
42
-- other applications that could lead to death, personal
43
-- injury, or severe property or environmental damage
44
-- (individually and collectively, "Critical
45
-- Applications"). Customer assumes the sole risk and
46
-- liability of any use of Xilinx products in Critical
47
-- Applications, subject only to applicable laws and
48
-- regulations governing limitations on product liability.
49
--
50
-- THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS
51
-- PART OF THIS FILE AT ALL TIMES.
52
 
53
--------------------------------------------------------------------------------
54
-- Filename: ram_16x1k_dp_tb.vhd
55
-- Description:
56
--  Testbench Top
57
--------------------------------------------------------------------------------
58
-- Author: IP Solutions Division
59
--
60
-- History: Sep 12, 2011 - First Release
61
--------------------------------------------------------------------------------
62
--
63
--------------------------------------------------------------------------------
64
-- Library Declarations
65
--------------------------------------------------------------------------------
66
 
67
LIBRARY IEEE;
68
USE IEEE.STD_LOGIC_1164.ALL;
69
USE IEEE.STD_LOGIC_ARITH.ALL;
70
USE IEEE.STD_LOGIC_UNSIGNED.ALL;
71
 
72
LIBRARY work;
73
USE work.ALL;
74
 
75
ENTITY ram_16x1k_dp_tb IS
76
END ENTITY;
77
 
78
 
79
ARCHITECTURE ram_16x1k_dp_tb_ARCH OF ram_16x1k_dp_tb IS
80
 SIGNAL  STATUS : STD_LOGIC_VECTOR(8 DOWNTO 0);
81
 SIGNAL  CLK :  STD_LOGIC := '1';
82
 SIGNAL  CLKB :  STD_LOGIC := '1';
83
 SIGNAL  RESET : STD_LOGIC;
84
 
85
 BEGIN
86
 
87
 
88
 CLK_GEN: PROCESS BEGIN
89
     CLK <= NOT CLK;
90
     WAIT FOR 100 NS;
91
     CLK <= NOT CLK;
92
     WAIT FOR 100 NS;
93
  END PROCESS;
94
 CLKB_GEN: PROCESS BEGIN
95
     CLKB <= NOT CLKB;
96
     WAIT FOR 100 NS;
97
     CLKB <= NOT CLKB;
98
     WAIT FOR 100 NS;
99
  END PROCESS;
100
 
101
  RST_GEN: PROCESS BEGIN
102
    RESET <= '1';
103
    WAIT FOR 1000 NS;
104
    RESET <= '0';
105
    WAIT;
106
  END PROCESS;
107
 
108
 
109
--STOP_SIM: PROCESS BEGIN
110
-- WAIT FOR 200 US; -- STOP SIMULATION AFTER 1 MS
111
--   ASSERT FALSE
112
--     REPORT "END SIMULATION TIME REACHED"
113
--     SEVERITY FAILURE;
114
--END PROCESS;
115
--
116
PROCESS BEGIN
117
  WAIT UNTIL STATUS(8)='1';
118
  IF( STATUS(7 downto 0)/="0") THEN
119
    ASSERT false
120
     REPORT "Simulation Failed"
121
         SEVERITY FAILURE;
122
  ELSE
123
   ASSERT false
124
     REPORT "Test Completed Successfully"
125
         SEVERITY FAILURE;
126
  END IF;
127
END PROCESS;
128
 
129
  ram_16x1k_dp_synth_inst:ENTITY work.ram_16x1k_dp_synth
130
  PORT MAP(
131
           CLK_IN   => CLK,
132
           CLKB_IN   => CLK,
133
           RESET_IN => RESET,
134
           STATUS   => STATUS
135
          );
136
 
137
END ARCHITECTURE;

powered by: WebSVN 2.1.0

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