diff --git a/artiq/gateware/rtio/phy/fastlink.py b/artiq/gateware/rtio/phy/fastlink.py index 3f84bb6a8..891df9b06 100644 --- a/artiq/gateware/rtio/phy/fastlink.py +++ b/artiq/gateware/rtio/phy/fastlink.py @@ -100,7 +100,7 @@ class SerDes(Module): ), If(i == t_frame//2 - 2, # inject crc for the last cycle - Cat(crc_data).eq(self.crc.next), + Cat(crc_data[-n_crc:]).eq(self.crc.next), ), ] diff --git a/artiq/gateware/rtio/phy/phaser.py b/artiq/gateware/rtio/phy/phaser.py index eb5cb26b2..3ca3c535e 100644 --- a/artiq/gateware/rtio/phy/phaser.py +++ b/artiq/gateware/rtio/phy/phaser.py @@ -46,7 +46,7 @@ class Phaser(Module): header.we.eq(~self.config.o.address[-1]), header.addr.eq(self.config.o.address), header.data.eq(self.config.o.data), - header.type.eq(0), # reserved + header.type.eq(1), # reserved ), ]