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: amaranth-lang/amaranth
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a1c58633e644
Choose a base ref
...
head repository: amaranth-lang/amaranth
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9301e31b69a7
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Feb 6, 2020

  1. test_lib_fifo: define all referenced FSM states.

    Broken in commit a1c5863.
    whitequark committed Feb 6, 2020
    Copy the full SHA
    9301e31 View commit details
Showing with 4 additions and 0 deletions.
  1. +4 −0 nmigen/test/test_lib_fifo.py
4 changes: 4 additions & 0 deletions nmigen/test/test_lib_fifo.py
Original file line number Diff line number Diff line change
@@ -192,6 +192,8 @@ def elaborate(self, platform):
fifo.w_en.eq(1)
]
m.next = "DONE"
with m.State("DONE"):
pass

with m.FSM(domain=self.r_domain) as read_fsm:
read_1 = Signal(fifo.width)
@@ -209,6 +211,8 @@ def elaborate(self, platform):
]
with m.If((read_1 == entry_1) & (read_2 == entry_2)):
m.next = "DONE"
with m.State("DONE"):
pass

with m.If(Initial()):
m.d.comb += Assume(write_fsm.ongoing("WRITE-1"))