forked from PrayagS/MIPS_16bit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
stall_control_block_tb.v
77 lines (60 loc) · 1.2 KB
/
stall_control_block_tb.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 13:51:24 09/12/2019
// Design Name: stall_control_block
// Module Name: /media/yashrajkakkad/DATA/SEAS/Semester 3/CO Lab/MIPS_16bit/stall_control_block_tb.v
// Project Name: MIPS_16bit
// Target Device:
// Tool versions:
// Description:
//
// Verilog Test Fixture created by ISE for module: stall_control_block
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
////////////////////////////////////////////////////////////////////////////////
module stall_control_block_tb;
// Inputs
reg [5:0] op;
reg clk;
reg reset;
// Outputs
wire stall;
wire stall_pm;
// Instantiate the Unit Under Test (UUT)
stall_control_block uut (
.stall(stall),
.stall_pm(stall_pm),
.op(op),
.clk(clk),
.reset(reset)
);
initial begin
// Initialize Inputs
op = 0;
clk = 0;
reset = 1'b1;
#2;
reset = 0;
#6;
reset = 1;
#8;
op = 6'b010100;
#20;
op = 6'b0;
#10;
op = 6'b011110;
#30;
op = 6'b0;
#10;
op = 6'b010001;
end
always #5 clk = ~clk;
endmodule