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

Subversion Repositories next186_soc_pc

[/] [next186_soc_pc/] [trunk/] [HW/] [test.v] - Blame information for rev 16

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 ndumitrach
`timescale 1ns / 1ps
2
 
3
////////////////////////////////////////////////////////////////////////////////
4
// Company: 
5
// Engineer:
6
//
7
// Create Date:   22:19:47 03/18/2012
8
// Design Name:   system
9
// Module Name:   D:/work/xilinx/ddr_186/ddr_186/test.v
10
// Project Name:  ddr_186
11
// Target Device:  
12
// Tool versions:  
13
// Description: 
14
//
15
// Verilog Test Fixture created by ISE for module: system
16
//
17
// Dependencies:
18
// 
19
// Revision:
20
// Revision 0.01 - File Created
21
// Additional Comments:
22
// 
23
////////////////////////////////////////////////////////////////////////////////
24
 
25
module test;
26
 
27
        // Inputs
28
        reg cntrl0_rst_dqs_div_in;
29
        reg sys_clk_in;
30
        reg CLK_50MHZ;
31
        reg BTN_SOUTH;
32
        reg RS232_DCE_RXD;
33
 
34
        // Outputs
35
        wire [12:0] cntrl0_ddr2_a;
36
        wire [1:0] cntrl0_ddr2_ba;
37
        wire cntrl0_ddr2_cke;
38
        wire cntrl0_ddr2_cs_n;
39
        wire cntrl0_ddr2_ras_n;
40
        wire cntrl0_ddr2_cas_n;
41
        wire cntrl0_ddr2_we_n;
42
        wire cntrl0_ddr2_odt;
43
        wire [1:0] cntrl0_ddr2_dm;
44
        wire cntrl0_ddr2_ck;
45
        wire cntrl0_ddr2_ck_n;
46
        wire cntrl0_rst_dqs_div_out;
47
        wire [3:0] VGA_R;
48
        wire [3:0] VGA_G;
49
        wire [3:0] VGA_B;
50
        wire VGA_HSYNC;
51
        wire VGA_VSYNC;
52
        wire [7:0] LED;
53
        wire FPGA_AWAKE;
54
        wire RS232_DCE_TXD;
55
        wire [47:0]CPU_INSTR;
56
 
57
        // Bidirs
58
        wire [15:0] cntrl0_ddr2_dq;
59
        wire [1:0] cntrl0_ddr2_dqs;
60
        wire [1:0] cntrl0_ddr2_dqs_n;
61
 
62
        // Instantiate the Unit Under Test (UUT)
63
        system uut (
64
                .cntrl0_ddr2_dq(cntrl0_ddr2_dq),
65
                .cntrl0_ddr2_a(cntrl0_ddr2_a),
66
                .cntrl0_ddr2_ba(cntrl0_ddr2_ba),
67
                .cntrl0_ddr2_cke(cntrl0_ddr2_cke),
68
                .cntrl0_ddr2_cs_n(cntrl0_ddr2_cs_n),
69
                .cntrl0_ddr2_ras_n(cntrl0_ddr2_ras_n),
70
                .cntrl0_ddr2_cas_n(cntrl0_ddr2_cas_n),
71
                .cntrl0_ddr2_we_n(cntrl0_ddr2_we_n),
72
                .cntrl0_ddr2_odt(cntrl0_ddr2_odt),
73
                .cntrl0_ddr2_dm(cntrl0_ddr2_dm),
74
                .cntrl0_ddr2_dqs(cntrl0_ddr2_dqs),
75
                .cntrl0_ddr2_dqs_n(cntrl0_ddr2_dqs_n),
76
                .cntrl0_ddr2_ck(cntrl0_ddr2_ck),
77
                .cntrl0_ddr2_ck_n(cntrl0_ddr2_ck_n),
78
                .cntrl0_rst_dqs_div_in(cntrl0_rst_dqs_div_in),
79
                .cntrl0_rst_dqs_div_out(cntrl0_rst_dqs_div_out),
80
                .sys_clk_in(sys_clk_in),
81
                .CLK_50MHZ(CLK_50MHZ),
82
                .VGA_R(VGA_R),
83
                .VGA_G(VGA_G),
84
                .VGA_B(VGA_B),
85
                .VGA_HSYNC(VGA_HSYNC),
86
                .VGA_VSYNC(VGA_VSYNC),
87
                .BTN_SOUTH(BTN_SOUTH),
88
                .LED(LED),
89
                .FPGA_AWAKE(FPGA_AWAKE),
90
                .RS232_DCE_RXD(RS232_DCE_RXD),
91
                .RS232_DCE_TXD(RS232_DCE_TXD),
92
                .CPU_INSTR(CPU_INSTR),
93
                .CE(CE),
94
                .CPU_CE(CPU_CE)
95
        );
96
 
97
        initial begin
98
                // Initialize Inputs
99
                cntrl0_rst_dqs_div_in = 0;
100
                sys_clk_in = 0;
101
                CLK_50MHZ = 0;
102
                BTN_SOUTH = 1;
103
                RS232_DCE_RXD = 0;
104
 
105
                // Wait 100 ns for global reset to finish
106
                #300;
107
 
108
                // Add stimulus here
109
                BTN_SOUTH = 0;
110
        end
111
 
112
        always begin
113
                #3.76   sys_clk_in = 1;
114
                #3.76   sys_clk_in = 0;
115
        end
116
 
117
        always begin
118
                #10     CLK_50MHZ = 1;
119
                #10     CLK_50MHZ = 0;
120
        end
121
 
122
endmodule
123
 

powered by: WebSVN 2.1.0

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