phy/ecp5ddrphy: use inline comments on ECP5DDRPHYInit

This commit is contained in:
Florent Kermarrec 2019-03-14 23:50:36 +01:00
parent c65ff974b6
commit 0bc241c2bf
1 changed files with 10 additions and 21 deletions

View File

@ -75,27 +75,16 @@ class ECP5DDRPHYInit(Module):
self.sync.init += [ self.sync.init += [
# Wait DDRDLLA Lock # Wait DDRDLLA Lock
timeline(new_lock, [ timeline(new_lock, [
# Freeze DDRDLLA (1*t, [freeze.eq(1)]), # Freeze DDRDLLA
(1*t, [freeze.eq(1)]), (2*t, [stop.eq(1)]), # Stop ECLK domain
# Stop ECLK domain (3*t, [reset.eq(1)]), # Reset ECLK domain
(2*t, [stop.eq(1)]), (4*t, [reset.eq(0)]), # Release ECLK domain reset
# Reset ECLK domain (5*t, [stop.eq(0)]), # Release ECLK domain stop
(3*t, [reset.eq(1)]), (6*t, [freeze.eq(0)]), # Release DDRDLLA freeze
# Release ECLK domain reset (7*t, [pause.eq(1)]), # Pause DQSBUFM
(4*t, [reset.eq(0)]), (8*t, [update.eq(1)]), # Update DDRDLLA
# Release ECLK domain stop (9*t, [update.eq(0)]), # Release DDRDMMA update
(5*t, [stop.eq(0)]), (10*t, [pause.eq(0)]), # Release DQSBUFM pause
# Release DDRDLLA freeze
(6*t, [freeze.eq(0)]),
# Pause DQSBUFM
(7*t, [pause.eq(1)]),
# Update DDRDLLA
(8*t, [update.eq(1)]),
# Release DDRDMMA update
(9*t, [update.eq(0)]),
# Release DQSBUFM pause
(10*t, [pause.eq(0)]),
# Ready
]) ])
] ]