This commit is contained in:
2025-08-18 07:18:32 +03:00
commit 12dcc9d232
27 changed files with 1910 additions and 0 deletions

29
chapter4/pcIMemTB.v Normal file
View File

@@ -0,0 +1,29 @@
module pcIMemTB();
reg rst;
reg clk;
wire [31:0] pc;
wire [31:0] next_pc;
wire [31:0] instr;
pcIMem dut (
.clk(clk),
.rst(rst),
.pc(pc),
.instr(instr),
.next_pc(next_pc)
);
always begin
clk = ~clk; #2;
end
initial begin
$dumpfile("pcIMem.vcd");
$dumpvars;
clk = 1'b0;
rst = 1'b1; #4;
rst = 1'b0; #38;
$finish;
end
endmodule