3 from nmigen
.back
.verilog
import convert
4 from nmigen
.build
import Platform
6 from c4m
.nmigen
.jtag
import TAP
9 class DummyPlatform(Platform
):
12 required_tools
= ["yosys"]
14 def toolchain_prepare(self
, fragment
, name
, **kwargs
):
15 raise NotImplementedError
19 f
= open("top.v", "w")
20 f
.write(convert(tap
, platform
=DummyPlatform()))