###################################################################
# Copyright (c) 2012 Mango Communications
# All Rights Reserved
# This code is covered by the Rice-WARP license
# See http://warp.rice.edu/license/ for details
###################################################################

BEGIN w3_w2_radio_io_shim

## Peripheral Options
OPTION IPTYPE = PERIPHERAL
OPTION IMP_NETLIST = TRUE
OPTION HDL = VERILOG
OPTION ARCH_SUPPORT_MAP = (virtex6=DEVELOPMENT)
OPTION USAGE_LEVEL = BASE_USER
OPTION DESC = WARP v3 to WARP v2 Radio IO Shim
OPTION IP_GROUP = USER
OPTION RUN_NGCBUILD = FALSE
OPTION STYLE = HDL

IO_INTERFACE IO_IF = warpv3_12_bit_ports, IO_TYPE = W3_W2_RADIO_SHIM
IO_INTERFACE IO_IF = warpv2_14_16_bit_ports, IO_TYPE = W3_W2_RADIO_SHIM

PARAMETER C_FAMILY = virtex6, DT = STRING

PORT RFA_RXD_I_12b_i = "", DIR = I, VEC = [11:0], IO_IF = warpv3_12_bit_ports, IO_IS = RFA_RXD_I_12b_i
PORT RFA_RXD_Q_12b_i = "", DIR = I, VEC = [11:0], IO_IF = warpv3_12_bit_ports, IO_IS = RFA_RXD_Q_12b_i
PORT RFA_RXD_I_14b_o = "", DIR = O, VEC = [13:0], IO_IF = warpv2_14_16_bit_ports, IO_IS = RFA_RXD_I_14b_o
PORT RFA_RXD_Q_14b_o = "", DIR = O, VEC = [13:0], IO_IF = warpv2_14_16_bit_ports, IO_IS = RFA_RXD_Q_14b_o

PORT RFA_TXD_I_12b_o = "", DIR = O, VEC = [11:0], IO_IF = warpv3_12_bit_ports, IO_IS = RFA_TXD_I_12b_o
PORT RFA_TXD_Q_12b_o = "", DIR = O, VEC = [11:0], IO_IF = warpv3_12_bit_ports, IO_IS = RFA_TXD_Q_12b_o
PORT RFA_TXD_I_16b_i = "", DIR = I, VEC = [15:0], IO_IF = warpv2_14_16_bit_ports, IO_IS = RFA_TXD_I_16b_i
PORT RFA_TXD_Q_16b_i = "", DIR = I, VEC = [15:0], IO_IF = warpv2_14_16_bit_ports, IO_IS = RFA_TXD_Q_16b_Q

PORT RFB_RXD_I_12b_i = "", DIR = I, VEC = [11:0], IO_IF = warpv3_12_bit_ports, IO_IS = RFB_RXD_I_12b_i
PORT RFB_RXD_Q_12b_i = "", DIR = I, VEC = [11:0], IO_IF = warpv3_12_bit_ports, IO_IS = RFB_RXD_Q_12b_i
PORT RFB_RXD_I_14b_o = "", DIR = O, VEC = [13:0], IO_IF = warpv2_14_16_bit_ports, IO_IS = RFB_RXD_I_14b_o
PORT RFB_RXD_Q_14b_o = "", DIR = O, VEC = [13:0], IO_IF = warpv2_14_16_bit_ports, IO_IS = RFB_RXD_Q_14b_o

PORT RFB_TXD_I_12b_o = "", DIR = O, VEC = [11:0], IO_IF = warpv3_12_bit_ports, IO_IS = RFB_TXD_I_12b_o
PORT RFB_TXD_Q_12b_o = "", DIR = O, VEC = [11:0], IO_IF = warpv3_12_bit_ports, IO_IS = RFB_TXD_Q_12b_o
PORT RFB_TXD_I_16b_i = "", DIR = I, VEC = [15:0], IO_IF = warpv2_14_16_bit_ports, IO_IS = RFB_TXD_I_16b_i
PORT RFB_TXD_Q_16b_i = "", DIR = I, VEC = [15:0], IO_IF = warpv2_14_16_bit_ports, IO_IS = RFB_TXD_Q_16b_o

END
