Skip to content

Commit

Permalink
Minor pready fix
Browse files Browse the repository at this point in the history
  • Loading branch information
azaidy committed Jul 19, 2024
1 parent edd65a5 commit 2058915
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions umi/utils/rtl/umi2apb.v
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ module umi2apb #(
always @(posedge clk or negedge nreset)
if (~nreset)
prdata_r <= 'b0;
else if (pready)
else if (penable & pready)
prdata_r <= prdata;

always @(posedge clk or negedge nreset)
Expand All @@ -268,7 +268,7 @@ module umi2apb #(
always @(posedge clk or negedge nreset)
if (~nreset)
pslverr_r <= 'b0;
else if (pready)
else if (penable & pready)
pslverr_r <= {pslverr, 1'b0};

/*umi_pack AUTO_TEMPLATE(
Expand Down

0 comments on commit 2058915

Please sign in to comment.