From: whitequark Date: Fri, 14 Dec 2018 05:17:43 +0000 (+0000) Subject: back.pysim: delay clock processes by one half period. X-Git-Tag: working~281 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4d08d28559a6d48f2b176f0978daf36007cc03e;p=nmigen.git back.pysim: delay clock processes by one half period. Makes it easier to see initial delta cycles. --- diff --git a/nmigen/back/pysim.py b/nmigen/back/pysim.py index 3975443..478a738 100644 --- a/nmigen/back/pysim.py +++ b/nmigen/back/pysim.py @@ -231,6 +231,7 @@ class Simulator: half_period = period / 2 def clk_process(): yield Passive() + yield Delay(half_period) while True: yield clk.eq(1) yield Delay(half_period)