From 7c51eb3de9a1442dc14e4a83788291000ef0208d Mon Sep 17 00:00:00 2001 From: morgan Date: Wed, 15 Jan 2025 16:21:30 +0800 Subject: [PATCH] sim: update roi --- sim_roi.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sim_roi.py b/sim_roi.py index 6751022..1de9fc7 100644 --- a/sim_roi.py +++ b/sim_roi.py @@ -12,7 +12,7 @@ class ROI(Module): fifo = stream.SyncFIFO(word_layout, 32) # to avoid data getting eaten and act as delay between eop dchar_decoder = Duplicated_Char_Decoder() # self.crc = CXPCRC32_Checker() - self.pipeline = ROI_Pipeline() + self.pipeline = Pixel_Pipeline(24, 32) pipeline = [fifo, dchar_decoder, self.pipeline] self.submodules += pipeline @@ -76,6 +76,10 @@ def packet_sim(packets=[]): for name in img_header_layout: print(f"{name} = {yield getattr(metadata, name):#04X} ", end="") print() + + roi = dut.pipeline.roi + print(f"x0 = {yield roi.cfg.x0} y0 = {yield roi.cfg.y0} | x1 = {yield roi.cfg.x1} y1 = {yield roi.cfg.y1}") + print(f"out count = {yield roi.out.count}") assert True