forked from M-Labs/artiq
1
0
Fork 0

grabber: use usual order of ROI coordinates in cfg addresses

This commit is contained in:
Sebastien Bourdeauducq 2018-07-24 10:55:13 +08:00
parent 015c592ab7
commit 60a7e0e40d
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ class Grabber(Module):
self.gate_data.i) self.gate_data.i)
for n, roi_engine in enumerate(self.roi_engines): for n, roi_engine in enumerate(self.roi_engines):
for offset, target in enumerate([roi_engine.cfg.x0, roi_engine.cfg.x1, for offset, target in enumerate([roi_engine.cfg.x0, roi_engine.cfg.y0,
roi_engine.cfg.y0, roi_engine.cfg.y1]): roi_engine.cfg.x1, roi_engine.cfg.y1]):
roi_boundary = Signal.like(target) roi_boundary = Signal.like(target)
roi_boundary.attr.add("no_retiming") roi_boundary.attr.add("no_retiming")
self.sync.rtio += If(self.config.o.stb & (self.config.o.address == 4*n+offset), self.sync.rtio += If(self.config.o.stb & (self.config.o.address == 4*n+offset),