forked from M-Labs/artiq-zynq
cxp GW: fix extra 1 bits issue
cxp GW: add docs
This commit is contained in:
parent
b3e06ccf13
commit
ee3cac1efb
@ -342,7 +342,9 @@ class CXP_Frame_Pipeline(Module, AutoCSR):
|
||||
self.sync.rio += [
|
||||
# TODO: add gating
|
||||
self.gate_data.i.stb.eq(update),
|
||||
self.gate_data.i.data.eq(count_sys),
|
||||
# without the slice, unspecified bits will be 1 for some reason
|
||||
# i.e. data[count_wdith:] = 0b111111... when using data.eq(count_sys)
|
||||
self.gate_data.i.data[:count_width].eq(count_sys),
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user