1 2 3 4 5 6 7 8 9 10 11
self.fastnet.signals.foo = foo = sig.Group( a = sig.OutU32(), b = sig.OutU32(), x = sig.InU32(), y = sig.InS32(), ) self.comb += [ foo.x.value.eq(foo.a.value + foo.b.value), foo.y.value.eq(foo.a.value - foo.b.value), ]