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

Subversion Repositories fluid_core_2

[/] [fluid_core_2/] [trunk/] [xilinx14.5 project/] [tb_staller.v] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 azmathmoos
`timescale 1ns / 1ps
2
 
3
module tb_staller;
4
 
5
        // Inputs
6
        reg Clk;
7
        reg RST;
8
        reg Stall;
9
 
10
        // Outputs
11
        wire [0:3] stall_lines;
12
 
13
        // Instantiate the Unit Under Test (UUT)
14
        Staller uut (
15
                .Clk(Clk),
16
                .RST(RST),
17
                .Stall(Stall),
18
                .stall_lines(stall_lines)
19
        );
20
 
21
        initial begin
22
                // Initialize Inputs
23
                Clk = 0;
24
                RST = 1;
25
                Stall = 0;
26
 
27
                // Wait 100 ns for global reset to finish
28
                #5 RST = 0;
29
      #65 Stall = 1;
30
                #5 Stall = 0;
31
                // Add stimulus here
32
 
33
        end
34
        always begin
35
                #10 Clk = ~Clk;
36
        end
37
 
38
endmodule
39
 

powered by: WebSVN 2.1.0

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