Skip to content

Commit

Permalink
code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ruck314 authored Jun 27, 2023
1 parent f4ccc95 commit 7ce7d63
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions xilinx/UltraScale/general/rtl/Delaye3PatchFsm.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -94,23 +94,21 @@ begin
v.dlyTarget := CNTVALUEIN;
v.state := CHECK_CNT_S;
end if;
----------------------------------------------------------------------
when CHECK_CNT_S =>
-- Check if load target different from current output
if (v.dlyTarget /= CNTVALUEOUT) then
if (r.dlyTarget /= CNTVALUEOUT) then
-- Check if we should increment the value
if (v.dlyTarget > CNTVALUEOUT) then
if (r.dlyTarget > CNTVALUEOUT) then
v.dlyValue := CNTVALUEOUT + 1;
-- Else decrement the value
else
v.dlyValue := CNTVALUEOUT - 1;
end if;
-- Next state
v.state := LOAD_S;

else
v.state := IDLE_S;

end if;
----------------------------------------------------------------------
when LOAD_S =>
Expand Down

0 comments on commit 7ce7d63

Please sign in to comment.