fixup! Initialize a memory, change pmod builder signature

This commit is contained in:
Peder Bergebakken Sundt 2020-08-15 15:31:36 +02:00
parent c05ca3c514
commit 371e425d38
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
import "/nmigen_boards.icebreaker/ICEBreakerPlatform" import "/nmigen_boards.icebreaker/ICEBreakerPlatform"
import "/nmigen_dg/*" import "/nmigen_dg/*"
import "/sys"
import "modules/blinker/Blinker" import "modules/blinker/Blinker"
import "modules/pulser/Pulser" import "modules/pulser/Pulser"
import "modules/segment7/Segment7x2" import "modules/segment7/Segment7x2"
@ -67,10 +68,10 @@ Top = subclass Elaboratable where
Sync$ state :== ~state Sync$ state :== ~state
on_rising_edge = signal -> on_rising_edge = signal -> result where
prev = Signal (signal.shape!) prev = Signal (signal.shape!)
Sync$ prev :== signal Sync$ prev :== signal
~ signal.implies prev result = ~ signal.implies prev
if __name__ == "__main__" => if __name__ == "__main__" =>