Skip to content

Commit 7074a5d

Browse files
committed
Merge branch 'master' of github.com:paulscherrerinstitute/psi_common
2 parents 41406a9 + 62bf34e commit 7074a5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hdl/psi_common_sync_fifo.vhd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,12 @@ begin
144144
RamRdAddr <= v.RdAddr;
145145

146146
-- Read side status
147-
if unsigned(r.RdLevel) = 0 then
148-
OutVld <= '0';
149-
Empty <= '1';
150-
else
147+
if unsigned(r.RdLevel) > 0 then
151148
OutVld <= '1';
152149
Empty <= '0';
150+
else
151+
OutVld <= '0';
152+
Empty <= '1';
153153
end if;
154154

155155
if AlmEmptyOn_g and unsigned(r.RdLevel) <= AlmEmptyLevel_g then

0 commit comments

Comments
 (0)