Skip to content

Commit

Permalink
fix rtl bugs -first writing or reading was not implemented as hreadyo…
Browse files Browse the repository at this point in the history
…ut was too fast and changing hsize wasn't capture correctly
  • Loading branch information
M0stafaRady committed Jan 22, 2025
1 parent ee95c25 commit b908a5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hdl/rtl/bus_wrapper/EF_PSRAM_CTRL_AHBL.v
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ module EF_PSRAM_CTRL_AHBL #(parameter REGISTER_HWDATA = 1)
always@(posedge HCLK or negedge HRESETn) begin
if(!HRESETn)
last_HSIZE <= 0;
else if (HTRANS[1])
else if (HTRANS[1] & HREADYOUT)
last_HSIZE<=HSIZE;
end

Expand Down Expand Up @@ -254,7 +254,7 @@ module EF_PSRAM_CTRL_AHBL #(parameter REGISTER_HWDATA = 1)
else
case (state)
ST_IDLE :
if((last_ahb_addr_phase|ahb_addr_phase) & data_cfg)
if((last_ahb_addr_phase|ahb_addr_phase))
HREADYOUT <= 1'b0;
else
HREADYOUT <= 1'b1;
Expand Down

0 comments on commit b908a5b

Please sign in to comment.