-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_instruction_memory.v
More file actions
49 lines (36 loc) · 882 Bytes
/
test_instruction_memory.v
File metadata and controls
49 lines (36 loc) · 882 Bytes
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
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Assignment 7
//
//Group No.42
//Members: Seemant Guruprasad Achari 19CS10055
// Chappidi Yoga Satwik 19CS30013
//
// This is the testbench for the Instruction Memory
//
// Ensure Instruction_Memory are initiated and loaded correctly
//
//////////////////////////////////////////////////////////////////////////////////
module test_instruction_memory;
// Inputs
reg clka;
reg [31:0] addra;
// Outputs
wire [31:0] douta;
// Instantiate the Unit Under Test (UUT)
Instruction_Memory uut (
.clka(clka),
.addra(addra),
.douta(douta)
);
initial begin
// Initialize Inputs
clka = 0;
addra = 0;
// Wait 100 ns for global reset to finish
#15;
addra = 4;
// Add stimulus here
end
always #5 clka = ~clka;
endmodule