Closed Chen-Gary closed 3 years ago
Other:
[x] your CPU should display the top 30 rows of the Main Memory in the screen.
[x] the strategy to end your program is at the point where your CPU execute 32'hffffffff instruction
[x] draw the circuit graph based on your design logic in your report
[x] record the number of clock cycles your CPU used to execute these testing samples
DONE. Yes, we need to flush.
Need to flush when branch and jump?
Implementation:
flush ID and EX stage with one additional flush control signal
In the pipeline register submodule, wait #1
for the flush signal, and then set the sequential read-in variables to 0
Use this to implement register file:
reg [31:0] DATA_RAM [0:512-1];
initial
block)