forked from M-Labs/artiq
1
0
Fork 0

grabber: reset *_good signals on end of frame

This reduces the amount of time the ROI engine produces invalid output after
being reconfigured.
This commit is contained in:
Sebastien Bourdeauducq 2018-07-15 15:34:00 +08:00
parent ea7f925852
commit 8bcba82b65
1 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,10 @@ class ROI(Module):
If(pix.x == cfg.x1, If(pix.x == cfg.x1,
x_good.eq(0) x_good.eq(0)
), ),
If(pix.eop,
y_good.eq(0),
x_good.eq(0)
),
gray.eq(Cat(pix.a, pix.b)[shift:]), gray.eq(Cat(pix.a, pix.b)[shift:]),
stb.eq(pix.stb), stb.eq(pix.stb),
eop.eq(pix.eop) eop.eq(pix.eop)