Computers, Hardware, Electronics, Computer Science, Cpu.
// initialize test initial begin reset <= 1; # 1; reset <= 0; end // generate clock to sequence tests always begin clk <= 1; # 5; clk <= 0; # 5; end endmodule I used runto run 10 ps at a time (the clock period is 10 ps). I used the $display() to output the program counter, and show which pipeline