dvisampler/chansync: use Record.raw_bits()
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 14 Apr 2013 15:06:29 +0000 (17:06 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 14 Apr 2013 15:06:29 +0000 (17:06 +0200)
milkymist/dvisampler/chansync.py

index 4d19cf1bf69fbe72edc5b185a69a8ed4cb2de63d..2a046b659f67e357b28baabfcb98c2e4a133011b 100644 (file)
@@ -31,8 +31,8 @@ class ChanSync(Module, AutoCSR):
                        self.add_submodule(fifo, "pix")
                        self.comb += [
                                fifo.we.eq(self.valid_i),
-                               fifo.din.eq(Cat(*data_in.flatten())),
-                               Cat(*data_out.flatten()).eq(fifo.dout)
+                               fifo.din.eq(data_in.raw_bits()),
+                               data_out.raw_bits().eq(fifo.dout)
                        ]
                        is_control = Signal()
                        is_control_r = Signal()