self.action = action
self.bitspec = bitspec if bitspec else 'Bit#(1)'
- def ifacefmt(self, fmtfn=None):
+ def ifacefmt(self, fmtfn):
res = ' '
status = []
if self.ready:
res += ";"
return res
- def ifacedef(self, fmtoutfn=None, fmtinfn=None, fmtdecfn=None):
+ def ifacedef(self, fmtoutfn, fmtinfn, fmtdecfn):
res = ' method '
if self.action:
fmtname = fmtinfn(self.name)
res += "%s=%s;" % (self.name, fmtname)
return res
- def wirefmt(self, fmtoutfn=None, fmtinfn=None, fmtdecfn=None):
+ def wirefmt(self, fmtoutfn, fmtinfn, fmtdecfn):
res = ' Wire#(%s) ' % self.bitspec
if self.action:
res += '%s' % fmtinfn(self.name)