Add mem_ prefix to the hazard unit's branch_taken input
This commit is contained in:
parent
9af1107041
commit
965311c1e5
2 changed files with 4 additions and 4 deletions
2
rv32.sv
2
rv32.sv
|
|
@ -18,7 +18,7 @@ module rv32 (
|
|||
|
||||
rv32_hazard hazard (
|
||||
/* control in */
|
||||
.branch_taken_in(mem_branch_taken),
|
||||
.mem_branch_taken_in(mem_branch_taken),
|
||||
|
||||
/* control out */
|
||||
.fetch_stall_out(fetch_stall),
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
module rv32_hazard (
|
||||
/* control in */
|
||||
input branch_taken_in,
|
||||
input mem_branch_taken_in,
|
||||
|
||||
/* control out */
|
||||
output fetch_stall_out,
|
||||
|
|
@ -22,10 +22,10 @@ module rv32_hazard (
|
|||
assign fetch_flush_out = 0;
|
||||
|
||||
assign decode_stall_out = execute_stall_out;
|
||||
assign decode_flush_out = fetch_stall_out || branch_taken_in;
|
||||
assign decode_flush_out = fetch_stall_out || mem_branch_taken_in;
|
||||
|
||||
assign execute_stall_out = mem_stall_out;
|
||||
assign execute_flush_out = decode_stall_out || branch_taken_in;
|
||||
assign execute_flush_out = decode_stall_out || mem_branch_taken_in;
|
||||
|
||||
assign mem_stall_out = 0;
|
||||
assign mem_flush_out = execute_stall_out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue