From 8bcba82b650fc00e864e273929471472bda32669 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 15 Jul 2018 15:34:00 +0800 Subject: [PATCH] grabber: reset *_good signals on end of frame This reduces the amount of time the ROI engine produces invalid output after being reconfigured. --- artiq/gateware/grabber/core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/artiq/gateware/grabber/core.py b/artiq/gateware/grabber/core.py index 477f11796..a1144000b 100644 --- a/artiq/gateware/grabber/core.py +++ b/artiq/gateware/grabber/core.py @@ -146,6 +146,10 @@ class ROI(Module): If(pix.x == cfg.x1, x_good.eq(0) ), + If(pix.eop, + y_good.eq(0), + x_good.eq(0) + ), gray.eq(Cat(pix.a, pix.b)[shift:]), stb.eq(pix.stb), eop.eq(pix.eop)