Ver código fonte

cores/video: Fixup dummy wire in hdmi_phy_4x

Seems that the previous way we were doing it now generates an error
in recent yosys ...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut 3 anos atrás
pai
commit
e978ecc95a
1 arquivos alterados com 6 adições e 2 exclusões
  1. 6 2
      cores/video/rtl/hdmi_phy_4x.v

+ 6 - 2
cores/video/rtl/hdmi_phy_4x.v

@@ -63,8 +63,6 @@ module hdmi_phy_4x #(
 
 	genvar i;
 
-	wire dummy;
-
 
 	// Clock
 	// -----
@@ -94,6 +92,9 @@ module hdmi_phy_4x #(
 
 	generate
 		for (i=0; i<3; i=i+1)
+		begin
+			wire dummy;
+
 			ice40_oserdes #(
 				.MODE("DATA"),
 				.SERDES_GRP(1024 + (i<<4))
@@ -104,6 +105,7 @@ module hdmi_phy_4x #(
 				.clk_1x(clk_1x),
 				.clk_4x(clk_4x)
 			);
+		end
 	endgenerate
 
 	SB_IO #(
@@ -129,6 +131,8 @@ module hdmi_phy_4x #(
 	generate
 		for (i=0; i<DW; i=i+1)
 		begin
+			wire dummy;
+
 			assign data_d[4*i+:4] = {
 				in_data0[i],
 				in_data1[i],