///////////////////////////////////////////////////////////////////////////////////////////////////
// Company: MICROSEMI
//
// File: IQ_packer.v
//
// Description: This file rearrage DUC/DDC format to CPRI AXC data format with 
//              option to swap IQ
//
// Targeted device: Family         Die             Package
//                  PolarFire      MPF300TS_ES     FCG1152 
//
// Author: India Solutions Team
//
// SVN Revision Information:
// SVN $Revision: 
// SVN $Date:  $
// 
// COPYRIGHT 2018 BY MICROSEMI 
// THE INFORMATION CONTAINED IN THIS DOCUMENT IS SUBJECT TO LICENSING RESTRICTIONS 
// FROM MICROSEMI CORP.  IF YOU ARE NOT IN POSSESSION OF WRITTEN AUTHORIZATION FROM 
// MICROSEMI FOR USE OF THIS FILE, THEN THE FILE SHOULD BE IMMEDIATELY DESTROYED AND 
// NO BACK-UP OF THE FILE SHOULD BE MADE. 
//
/////////////////////////////////////////////////////////////////////////////////////////////////// 

//`timescale <time_units> / <precision>

module IQ_packer( 
output  [31:0] iq_data_o,   //Output IQ data signal
input         iq_swap,      //Input IQswap enable signal
input   [15:0] I_data_i,    //Input I data signal
input   [15:0] Q_data_i     //Input Q data signal
);

assign iq_data_o = (iq_swap)?  {1'b0,I_data_i[15:1],1'b0,Q_data_i[15:1]} : {1'b0,Q_data_i[15:1],1'b0,I_data_i[15:1]} ;


//<statements>

endmodule

