generate mask il
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 3 Aug 2019 01:10:04 +0000 (02:10 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 3 Aug 2019 01:10:04 +0000 (02:10 +0100)
src/nmutil/test/test_buf_pipe.py

index 450852beb17ba1a8d863d71eb51a663bf4ffb5d4..dcd2b45818432d91aa1e114e5d69e5549a188b33 100644 (file)
@@ -1166,10 +1166,10 @@ def test0():
     dut = MaskCancellablePipe()
     ports = [dut.p.valid_i, dut.n.ready_i,
              dut.n.valid_o, dut.p.ready_o] + \
-             [dut.p.data_i] + [dut.n.data_o]
-    #vl = rtlil.convert(dut, ports=ports)
-    #with open("test_bufpipe14.il", "w") as f:
-    #    f.write(vl)
+             dut.p.data_i.ports() + dut.n.data_o.ports()
+    vl = rtlil.convert(dut, ports=ports)
+    with open("test_maskchain0.il", "w") as f:
+        f.write(vl)
     data = data_chain0()
     test = TestMask(dut, resultfn_0, 16, data=data)
     run_simulation(dut, [test.send, test.rcv],