frameline GW: update assert

This commit is contained in:
morgan 2025-01-15 16:56:24 +08:00
parent 25d83eadd8
commit 5f6b6ec64c

View File

@ -543,7 +543,7 @@ class Pixel_Coordinate_Tracker(Module):
"""track pixel coordinates."""
def __init__(self, res_width):
# largest x/y pixel size supported by frame header are 24 bits
assert res_width == 3*char_width
assert res_width <= 3*char_width
self.y_size = Signal(3*char_width)
self.sink = stream.Endpoint(pixel4x_layout)