-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogramRomTest.sv
More file actions
31 lines (26 loc) · 1.01 KB
/
programRomTest.sv
File metadata and controls
31 lines (26 loc) · 1.01 KB
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
/****************************************************************************************
* *
* https://www.bigmessowires.com/nibbler/ *
* Implementation by: Bryan Chan and Diego Regalado *
* *
*****************************************************************************************/
module testbench();
//Finish simulation
reg [11:0] address;
wire [7:0] data;
Rom rom(address, data);
initial
begin
// Initial values
{address} = 12'b000000000000;
//Logging
$display("address - data");
$monitor("%b \t %b", address, data);
#1 {address} = 12'b000000000001;
#1 {address} = 12'b000000000010;
#1 {address} = 12'b000000000011;
#1 {address} = 12'b000000000100;
end
initial
#100 $finish;
endmodule