forked from M-Labs/artiq-zynq
frameline GW: update assert
This commit is contained in:
parent
25d83eadd8
commit
5f6b6ec64c
@ -543,7 +543,7 @@ class Pixel_Coordinate_Tracker(Module):
|
|||||||
"""track pixel coordinates."""
|
"""track pixel coordinates."""
|
||||||
def __init__(self, res_width):
|
def __init__(self, res_width):
|
||||||
# largest x/y pixel size supported by frame header are 24 bits
|
# 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.y_size = Signal(3*char_width)
|
||||||
self.sink = stream.Endpoint(pixel4x_layout)
|
self.sink = stream.Endpoint(pixel4x_layout)
|
||||||
|
Loading…
Reference in New Issue
Block a user