-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpc_tb.v
75 lines (59 loc) · 1.07 KB
/
pc_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
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 01:25:41 01/04/2022
// Design Name: pc
// Module Name: C:/Users/Nefel/Desktop/University/project1/pc_tb.v
// Project Name: project1
// Target Device:
// Tool versions:
// Description:
//
// Verilog Test Fixture created by ISE for module: pc
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
////////////////////////////////////////////////////////////////////////////////
module pc_tb;
// Inputs
reg [31:0] Data;
reg Clk = 0;
reg Reset;
reg LdEn;
// Outputs
wire [31:0] Dout;
// Instantiate the Unit Under Test (UUT)
pc uut (
.Data(Data),
.Clk(Clk),
.Reset(Reset),
.LdEn(LdEn),
.Dout(Dout)
);
always #1 Clk = ~Clk;
initial begin
Data = 31;
Reset = 0;
LdEn = 0;
#5;
#1;
LdEn = 1;
#10;
Reset = 1;
#5;
Data = 2;
#5;
Reset = 0;
LdEn = 0;
#5;
LdEn = 1;
#5;
//Simulation time: 36ns
end
endmodule