forked from M-Labs/artiq
rtio/sed/Gates: fix fine_ts_width computation
This commit is contained in:
parent
30e7765a2e
commit
1cfe90b1d9
|
@ -13,8 +13,8 @@ class Gates(Module):
|
||||||
self.output = [Record(layouts.output_network_node(seqn_width, layout_output_network_payload))
|
self.output = [Record(layouts.output_network_node(seqn_width, layout_output_network_payload))
|
||||||
for _ in range(lane_count)]
|
for _ in range(lane_count)]
|
||||||
|
|
||||||
if hasattr(self.output[0], "fine_ts"):
|
if hasattr(self.output[0].payload, "fine_ts"):
|
||||||
fine_ts_width = len(self.output[0].fine_ts)
|
fine_ts_width = len(self.output[0].payload.fine_ts)
|
||||||
else:
|
else:
|
||||||
fine_ts_width = 0
|
fine_ts_width = 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue