projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c87290
)
back.pysim: delay clock processes by one half period.
author
whitequark
<cz@m-labs.hk>
Fri, 14 Dec 2018 05:17:43 +0000
(
05:17
+0000)
committer
whitequark
<cz@m-labs.hk>
Fri, 14 Dec 2018 05:17:43 +0000
(
05:17
+0000)
Makes it easier to see initial delta cycles.
nmigen/back/pysim.py
patch
|
blob
|
history
diff --git
a/nmigen/back/pysim.py
b/nmigen/back/pysim.py
index 3975443897c670b0a070bf5862848fe391455ba2..478a73843f5dde375ddc0a26774da5e7ec5d2daa 100644
(file)
--- 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)