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