Skip to content

Commit

Permalink
Implement cs0 and cs1 as logic equations, not muxes
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 f735fae commit ab8ca02
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions hw/application_fpga/rtl/ram.v
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,12 @@ module ram(
//----------------------------------------------------------------
always @*
begin : mem_mux
cs0 = 1'h0;
cs1 = 1'h0;
cs0 = ~address[14] & cs;
cs1 = address[14] & cs;

if (address[14]) begin
cs1 = cs;
muxed_read_data = read_data1;
end else begin
cs0 = cs;
muxed_read_data = read_data0;
end
end
Expand Down

0 comments on commit ab8ca02

Please sign in to comment.