Skip to content

Commit

Permalink
Merge pull request #148 from zeroasiccorp/ali/apb
Browse files Browse the repository at this point in the history
Minor pready fix
  • Loading branch information
azaidy authored Jul 29, 2024
2 parents c9ce1a9 + 2058915 commit e6ff99c
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 e6ff99c

Please sign in to comment.