-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_bench.v
54 lines (44 loc) · 976 Bytes
/
test_bench.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
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 17:42:35 05/13/2023
// Design Name: datapath
// Module Name: /home/aarijimam/NUST Material/CSA/Assignment2/ASS2/Ass2/test_bench.v
// Project Name: Ass2
// Target Device:
// Tool versions:
// Description:
//
// Verilog Test Fixture created by ISE for module: datapath
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
////////////////////////////////////////////////////////////////////////////////
module test_bench;
// Inputs
reg clk;
reg reset;
// Instantiate the Unit Under Test (UUT)
datapath uut (
.clk(clk),
.reset(reset)
);
initial begin
// Initialize Inputs
clk = 0;
reset = 1;
// Wait 100 ns for global reset to finish
#1000;
clk = 0;
reset = 0;
// Add stimulus here
end
always # 500
clk = ~clk;
endmodule