cores/video: Avoid serializer_attrs.

This commit is contained in:
Florent Kermarrec 2022-09-05 09:49:15 +02:00
parent 398811b910
commit 36297c7a1e
1 changed files with 4 additions and 6 deletions

View File

@ -838,16 +838,14 @@ class VideoGowinHDMIPHY(Module):
# 10:1 Serialization + Differential Signaling.
data_i = encoder.out if color not in pn_swap else ~encoder.out
pad_o = Signal()
serializer_attrs = dict(
o_Q = pad_o,
pad_o = Signal()
self.specials += Instance("OSER10",
i_PCLK = pix_clk,
i_FCLK = ClockSignal(clock_domain + "5x"),
i_RESET = ResetSignal(clock_domain),
**{f"i_D{i}" : data_i[i] for i in range(10)},
o_Q = pad_o,
)
serializer_attrs.update({f"i_D{i}": data_i[i] for i in range(10)})
self.specials += Instance("OSER10", **serializer_attrs)
c2d = {"r": 0, "g": 1, "b": 2}
self.specials += Instance("ELVDS_OBUF",