Skip to content

Commit

Permalink
Update Pipeline_Reset.sv
Browse files Browse the repository at this point in the history
  • Loading branch information
ShinyMiraidon authored Dec 4, 2023
1 parent fa76b2e commit cb5162b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rtl/Pipeline_Reset.sv
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ module Pipeline_Reset #(
input [WordSize - 1:0] npc_in, npc_corr,
input flush,
output logic [WordSize - 1:0] npc,
output logic rstn
output logic rstn_out
);

always_comb begin
case(flush)
0: begin
npc = npc_in;
rstn = 1'bZ;
rstn_out = 1'bZ;
end
1: begin
npc = npc_corr;
rstn = 0;
rstn_out = 0;
end
endcase
end
endmodule
endmodule

0 comments on commit cb5162b

Please sign in to comment.