def tv_out(m, tv): assert m.out[0] == Bits8(tv[1]) assert m.out[1] == Bits8(tv[2])
def __init__( s, a=0, b=0 ): s.a = Bits8(a) s.b = Bits32(b)
def construct(s): s.wire = Wire(Bits32) connect(s.wire, Bits8(8))
def __init__(s, a=0): s.c = Bits8(a)