2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

sawg: don't use Cat() for signed signals

c.f. #1039 #1040 #1022 #1058 #1044
This commit is contained in:
Robert Jördens 2018-06-09 07:33:47 +00:00
parent 5b73dd8604
commit 0b086225a9

View File

@ -183,8 +183,8 @@ class Channel(Module, SatAddMixin):
b.ce.eq(cfg.ce),
u.o.ack.eq(cfg.ce),
Cat(b.clr, a1.clr, a2.clr).eq(cfg.clr),
Cat(b.xi).eq(Cat(hbf[0].o)),
Cat(b.yi).eq(Cat(hbf[1].o)),
[i.eq(j) for i, j in zip(b.xi, hbf[0].o)],
[i.eq(j) for i, j in zip(b.yi, hbf[1].o)],
]
hbf[0].i.reset_less = True
hbf[1].i.reset_less = True
@ -217,4 +217,4 @@ class Channel(Module, SatAddMixin):
]
def connect_y(self, buddy):
self.comb += Cat(buddy.y_in).eq(Cat(self.b.yo))
self.comb += [i.eq(j) for i, j in zip(buddy.y_in, self.b.yo)]