Skip to content

Commit

Permalink
Fix assignment of cs and we when out of bounds mem access
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Strömbergson <[email protected]>
  • Loading branch information
secworks committed Mar 18, 2024
1 parent 218649c commit c6f4934
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hw/application_fpga/rtl/application_fpga.v
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,8 @@ module application_fpga(
if (|cpu_addr[29 : 17]) begin
muxed_rdata_new = 32'hdeadbeef;
muxed_ready_new = 1'h1;
ram_cs = 4'h0;
ram_cs = 1'h1;
ram_we = 4'h0;
end else begin
ram_cs = 1'h1;
ram_we = cpu_wstrb;
Expand Down

0 comments on commit c6f4934

Please sign in to comment.