`timescale 1 ns / 1 ps module stim_event_collect# ( parameter CHIPSET_QTY = 4 ) ( input clk , input rst_n , input [32*CHIPSET_QTY-1:0] event_in_arrary , output [32-1:0] event_out ); //***************************************************************************** // localparam definition //***************************************************************************** localparam HOLD_CLKS = CHIPSET_QTY ; //***************************************************************************** // Internal register and wire declarations //***************************************************************************** wire [32-1:0] event_in[0:CHIPSET_QTY-1]; reg [32-1:0] event_in_r[0:CHIPSET_QTY-1]; reg update[0:CHIPSET_QTY-1]; reg [ 4-1:0] cnt[0:CHIPSET_QTY-1]; reg [32-1:0] event_r; reg [ 4-1:0] n; genvar i; //***************************************************************************** generate for(i=0;i