Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/nmigen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e230383aac6d
Choose a base ref
...
head repository: m-labs/nmigen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 120d81712308
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Dec 14, 2018

  1. back.pysim: in simulator sync processes, start by waiting for a tick.

    This matches Migen behavior and also makes more sense.
    whitequark committed Dec 14, 2018
    Copy the full SHA
    4f5b4a9 View commit details
  2. Copy the full SHA
    120d817 View commit details
Showing with 3 additions and 1 deletion.
  1. +3 −1 nmigen/back/pysim.py
4 changes: 3 additions & 1 deletion nmigen/back/pysim.py
Original file line number Diff line number Diff line change
@@ -241,7 +241,7 @@ def add_sync_process(self, process, domain="sync"):
process = self._check_process(process)
def sync_process():
try:
result = process.send(None)
result = None
while True:
if result is None:
result = Tick(domain)
@@ -345,6 +345,8 @@ def add_fragment(fragment, scope=("top",)):
statements = []
for signal in fragment.iter_comb():
statements.append(signal.eq(signal.reset))
for domain, signal in fragment.iter_sync():
statements.append(signal.eq(signal))
statements += fragment.statements

def add_funclet(signal, funclet):