sim: update roi

This commit is contained in:
morgan 2025-01-15 13:21:08 +08:00
parent 2cd588df35
commit 144dfd89de

View File

@ -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