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