###################################################################
# Copyright (c) 2015 Mango Communications
# All Rights Reserved
# This code is covered by the WARP license
# See http://warpproject.org/license/ for details
###################################################################

BEGIN w3_boot_io_mux

## 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 Mux for I/O at Boot"
OPTION IP_GROUP = USER
OPTION RUN_NGCBUILD = FALSE
OPTION STYLE = HDL

IO_INTERFACE IO_IF = IIC, IO_TYPE = W3_BOOTIOMUX_V1
IO_INTERFACE IO_IF = UART, IO_TYPE = W3_BOOTIOMUX_V1

PARAMETER C_FAMILY = virtex6, DT = STRING

PORT iic_scl = "", DIR = IO, THREE_STATE = FALSE, IO_IF = IIC, IO_IS = IIC_SCL
PORT iic_sda = "", DIR = IO, THREE_STATE = FALSE, IO_IF = IIC, IO_IS = IIC_SDA

PORT iic_scl_I_a = "", DIR = O, IO_IF = IIC, IO_IS = A_IIC_SCL_I
PORT iic_scl_O_a = "", DIR = I, IO_IF = IIC, IO_IS = A_IIC_SCL_O
PORT iic_scl_T_a = "", DIR = I, IO_IF = IIC, IO_IS = A_IIC_SCL_T

PORT iic_scl_I_b = "", DIR = O, IO_IF = IIC, IO_IS = B_IIC_SCL_I
PORT iic_scl_O_b = "", DIR = I, IO_IF = IIC, IO_IS = B_IIC_SCL_O
PORT iic_scl_T_b = "", DIR = I, IO_IF = IIC, IO_IS = B_IIC_SCL_T

PORT iic_sda_I_a = "", DIR = O, IO_IF = IIC, IO_IS = A_IIC_SDA_I
PORT iic_sda_O_a = "", DIR = I, IO_IF = IIC, IO_IS = A_IIC_SDA_O
PORT iic_sda_T_a = "", DIR = I, IO_IF = IIC, IO_IS = A_IIC_SDA_T

PORT iic_sda_I_b = "", DIR = O, IO_IF = IIC, IO_IS = B_IIC_SDA_I
PORT iic_sda_O_b = "", DIR = I, IO_IF = IIC, IO_IS = B_IIC_SDA_O
PORT iic_sda_T_b = "", DIR = I, IO_IF = IIC, IO_IS = B_IIC_SDA_T

PORT iic_sel_a = "", DIR = I, IO_IF = IIC, IO_IS = IIC_PORT_SEL


PORT uart_tx = "", DIR = O, IO_IF = UART, IO_IS = UART_TX

PORT uart_tx_a = "", DIR = I, IO_IF = UART, IO_IS = UART_TX_A
PORT uart_tx_b = "", DIR = I, IO_IF = UART, IO_IS = UART_TX_B

PORT uart_sel_a = "", DIR = I, IO_IF = UART, IO_IS = UART_PORT_SEL

END
