If(active,
[getattr(getattr(self.phy.payload, p), c).eq(getattr(getattr(self.pixels.payload, p), c)[skip:])
for p in ["p"+str(i) for i in range(pack_factor)] for c in ["r", "g", "b"]],
- self.phy.payload.de.eq(1)
+ self.phy.de.eq(1)
),
self.pixels.ack.eq(self.phy.ack & active)
]
If(hcounter == 0, hactive.eq(1)),
If(hcounter == tr.hres, hactive.eq(0)),
- If(hcounter == tr.hsync_start, self.phy.payload.hsync.eq(1)),
- If(hcounter == tr.hsync_end, self.phy.payload.hsync.eq(0)),
+ If(hcounter == tr.hsync_start, self.phy.hsync.eq(1)),
+ If(hcounter == tr.hsync_end, self.phy.hsync.eq(0)),
If(hcounter == tr.hscan,
hcounter.eq(0),
If(vcounter == tr.vscan,
If(vcounter == 0, vactive.eq(1)),
If(vcounter == tr.vres, vactive.eq(0)),
- If(vcounter == tr.vsync_start, self.phy.payload.vsync.eq(1)),
- If(vcounter == tr.vsync_end, self.phy.payload.vsync.eq(0))
+ If(vcounter == tr.vsync_start, self.phy.vsync.eq(1)),
+ If(vcounter == tr.vsync_end, self.phy.vsync.eq(0))
)
]
self._dma.trigger.eq(self._r_shoot.re),
self._dma.data.stb.eq(en),
lfsr.ce.eq(en & self._dma.data.ack),
- self._dma.data.payload.d.eq(lfsr.o)
+ self._dma.data.d.eq(lfsr.o)
]
def get_csrs(self):
If(self._r_reset.re,
err_cnt.eq(0)
).Elif(self._dma.data.stb,
- If(self._dma.data.payload.d != lfsr.o, err_cnt.eq(err_cnt + 1))
+ If(self._dma.data.d != lfsr.o, err_cnt.eq(err_cnt + 1))
)
]
rx_bitcount = Signal(4)
rx_busy = Signal()
rx_done = self.source.stb
- rx_data = self.source.payload.d
+ rx_data = self.source.d
self.sync += [
rx_done.eq(0),
rx_r.eq(rx),
self.sync += [
self.sink.ack.eq(0),
If(self.sink.stb & ~tx_busy & ~self.sink.ack,
- tx_reg.eq(self.sink.payload.d),
+ tx_reg.eq(self.sink.d),
tx_bitcount.eq(0),
tx_busy.eq(1),
pads.tx.eq(0)
self.sync += [
If(self._r_rxtx.re,
self.tx.sink.stb.eq(1),
- self.tx.sink.payload.d.eq(self._r_rxtx.r),
+ self.tx.sink.d.eq(self._r_rxtx.r),
).Elif(self.tx.sink.ack,
self.tx.sink.stb.eq(0)
),
If(self.rx.source.stb,
- self._r_rxtx.w.eq(self.rx.source.payload.d)
+ self._r_rxtx.w.eq(self.rx.source.d)
)
]
self.comb += [