From 144dfd89de458da23a7b05647cd3a09613fa0894 Mon Sep 17 00:00:00 2001 From: morgan Date: Wed, 15 Jan 2025 13:21:08 +0800 Subject: [PATCH] sim: update roi --- sim_roi.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/sim_roi.py b/sim_roi.py index 1ec5a85..6751022 100644 --- a/sim_roi.py +++ b/sim_roi.py @@ -21,7 +21,16 @@ class ROI(Module): self.comb += s.source.connect(d.sink) self.sink = pipeline[0].sink - self.source = pipeline[-1].source + # self.source = pipeline[-1].source + + # DEBUG: test roi + cfg = self.pipeline.roi.cfg + self.comb += [ + cfg.x0.eq(0), + cfg.x1.eq(8), + cfg.y0.eq(0), + cfg.y1.eq(1), + ] @@ -231,8 +240,8 @@ def testbench(): def testbench_fake_data(): # config - pix_size = 10 - x_size = 7 + pix_size = 8 + x_size = 13 y_size = 3