Skip to content

Commit

Permalink
Fixed performance issue (paulscherrerinstitute#48)
Browse files Browse the repository at this point in the history
In some cases InRdy was de-asserted needlessly

Co-authored-by: Oliver Bründler <[email protected]>
  • Loading branch information
obruendl and Oliver Bründler authored Jan 29, 2023
1 parent 166b6a1 commit cde97dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hdl/psi_common_pl_stage.vhd
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
------------------------------------------------------------------------------
-- Copyright (c) 2018 by Paul Scherrer Institute, Switzerland
-- Copyright (c) 2023 by Oliver Bründler
-- All rights reserved.
-- Authors: Oliver Bruendler
------------------------------------------------------------------------------
Expand Down Expand Up @@ -77,7 +78,7 @@ begin
v := r;

-- *** Simplification Variables ***
IsStuck_v := (r.DataMainVld = '1' and OutRdy = '0');
IsStuck_v := (r.DataMainVld = '1' and OutRdy = '0' and (InVld = '1' or r.DataShadVld = '1'));

-- *** Handle output transactions ***
if r.DataMainVld = '1' and OutRdy = '1' then
Expand Down

0 comments on commit cde97dd

Please sign in to comment.