3 from nmigen
import Signal
, Module
, Elaboratable
5 from .support
import SimCase
8 class RunSimulation(SimCase
, unittest
.TestCase
):
9 """ test for https://github.com/nmigen/nmigen/issues/344 """
11 class TestBench(Elaboratable
):
15 def elaborate(self
, platform
):
17 m
.d
.sync
+= self
.a
.eq(~self
.a
)
20 def test_run_simulation(self
):
26 self
.assertEqual(a
, i
% 2)