common/ad_ss_422to444.v: Fix warning

Using a localparam in a port declaration, causes the following warning:
"identifier 'DW' is used before its declaration".
main
AndreiGrozav 2020-09-09 08:34:25 +03:00 committed by AndreiGrozav
parent 0152b645a6
commit f0a29a682f
1 changed files with 6 additions and 6 deletions

View File

@ -45,13 +45,13 @@ module ad_ss_422to444 #(
input clk, input clk,
input s422_de, input s422_de,
input [DW:0] s422_sync, input [DELAY_DATA_WIDTH-1:0] s422_sync,
input [15:0] s422_data, input [ 15:0] s422_data,
// 444 outputs // 444 outputs
output reg [DW:0] s444_sync, output reg [DELAY_DATA_WIDTH-1:0] s444_sync,
output reg [23:0] s444_data); output reg [ 23:0] s444_data);
localparam DW = DELAY_DATA_WIDTH - 1; localparam DW = DELAY_DATA_WIDTH - 1;