ad_axis_inf_rx: Delete redundant local paramter

All verilog file are using the Verilog-2001 standard to define
and/or declare ports. Definin a port width with a local parameter
is a bad practive, when this standard is used. Some simulators
will crash. Try to avoid it.
main
Istvan Csomortani 2017-07-06 09:37:54 +01:00
parent cfa22f36bc
commit 866d79dee2
1 changed files with 30 additions and 32 deletions

View File

@ -41,47 +41,45 @@ module ad_axis_inf_rx #(
// adi interface
input clk,
input rst,
input valid,
input last,
input [DW:0] data,
input clk,
input rst,
input valid,
input last,
input [(DATA_WIDTH-1):0] data,
// xilinx interface
output reg inf_valid,
output reg inf_last,
output reg [DW:0] inf_data,
input inf_ready);
localparam DW = DATA_WIDTH - 1;
output reg inf_valid,
output reg inf_last,
output reg [(DATA_WIDTH-1):0] inf_data,
input inf_ready);
// internal registers
reg [ 2:0] wcnt = 'd0;
reg wlast_0 = 'd0;
reg [DW:0] wdata_0 = 'd0;
reg wlast_1 = 'd0;
reg [DW:0] wdata_1 = 'd0;
reg wlast_2 = 'd0;
reg [DW:0] wdata_2 = 'd0;
reg wlast_3 = 'd0;
reg [DW:0] wdata_3 = 'd0;
reg wlast_4 = 'd0;
reg [DW:0] wdata_4 = 'd0;
reg wlast_5 = 'd0;
reg [DW:0] wdata_5 = 'd0;
reg wlast_6 = 'd0;
reg [DW:0] wdata_6 = 'd0;
reg wlast_7 = 'd0;
reg [DW:0] wdata_7 = 'd0;
reg [ 2:0] rcnt = 'd0;
reg [ 2:0] wcnt = 'd0;
reg wlast_0 = 'd0;
reg [(DATA_WIDTH-1):0] wdata_0 = 'd0;
reg wlast_1 = 'd0;
reg [(DATA_WIDTH-1):0] wdata_1 = 'd0;
reg wlast_2 = 'd0;
reg [(DATA_WIDTH-1):0] wdata_2 = 'd0;
reg wlast_3 = 'd0;
reg [(DATA_WIDTH-1):0] wdata_3 = 'd0;
reg wlast_4 = 'd0;
reg [(DATA_WIDTH-1):0] wdata_4 = 'd0;
reg wlast_5 = 'd0;
reg [(DATA_WIDTH-1):0] wdata_5 = 'd0;
reg wlast_6 = 'd0;
reg [(DATA_WIDTH-1):0] wdata_6 = 'd0;
reg wlast_7 = 'd0;
reg [(DATA_WIDTH-1):0] wdata_7 = 'd0;
reg [ 2:0] rcnt = 'd0;
// internal signals
wire inf_ready_s;
reg inf_last_s;
reg [DW:0] inf_data_s;
wire inf_ready_s;
reg inf_last_s;
reg [(DATA_WIDTH-1):0] inf_data_s;
// write interface