-#!/bin/env python3
+#!/usr/bin/env python3
from nmigen import *
from nmigen.back.verilog import convert
from nmigen.build import Platform
def toolchain_prepare(self, fragment, name, **kwargs):
raise NotImplementedError
-tap = TAP(2)
+tap = TAP(ir_width=2)
f = open("top.v", "w")
f.write(convert(tap, platform=DummyPlatform()))
f.close()