from c4m.nmigen.jtag import TAP
+
class DummyPlatform(Platform):
resources = []
connectors = []
def toolchain_prepare(self, fragment, name, **kwargs):
raise NotImplementedError
+
tap = TAP(ir_width=2)
f = open("top.v", "w")
f.write(convert(tap, platform=DummyPlatform()))