<?xml version="1.0" ?>
<lsccip:ip xmlns:lsccip="http://www.latticesemi.com/XMLSchema/Radiant/ip" xmlns:xi="http://www.w3.org/2001/XInclude" version="1.0">
    <lsccip:general>
        <lsccip:vendor>latticesemi.com</lsccip:vendor>
        <lsccip:library>ip</lsccip:library>
        <lsccip:name>tse_mac</lsccip:name>
        <lsccip:display_name>Tri-speed Ethernet</lsccip:display_name>
        <lsccip:version>2.3.0</lsccip:version>
        <lsccip:category>Connectivity</lsccip:category>
        <lsccip:min_radiant_version>3.2</lsccip:min_radiant_version>
        <lsccip:min_esi_version>2.2</lsccip:min_esi_version>
        <lsccip:supported_products>
            <lsccip:supported_family name="LIFCL"/>
            <lsccip:supported_family name="LFD2NX">
              <lsccip:supported_device name="LFD2NX-9"/>
              <lsccip:supported_device name="LFD2NX-15"/>    
              <lsccip:supported_device name="LFD2NX-17"/>
              <lsccip:supported_device name="LFD2NX-25"/>
              <lsccip:supported_device name="LFD2NX-28"/>
              <lsccip:supported_device name="LFD2NX-35"/>
              <lsccip:supported_device name="LFD2NX-40"/>
              <lsccip:supported_device name="LFD2NX-65"/>
              <lsccip:supported_device name="LFD2NX-15P"/>
              <lsccip:supported_device name="LFD2NX-25P"/>
            </lsccip:supported_family>
            <lsccip:supported_family name="LFCPNX"/>
            <lsccip:supported_family name="LFMXO5"/>
            <lsccip:supported_family name="LAV-AT"/>
            <lsccip:supported_family name="LKH-CT"/>
            <lsccip:supported_family name="LKH-MH"/>
            <lsccip:supported_family name="LN2-CT"/>
            <lsccip:supported_family name="LN2-MH"/>
        </lsccip:supported_products>
        <lsccip:supported_platforms>
            <lsccip:supported_platform name="radiant"/>
            <lsccip:supported_platform name="esi"/>
        </lsccip:supported_platforms>
    </lsccip:general>

<lsccip:settings>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "N2_DEVICE_SEL"
                type               = "verilog_macro"
                macro_name         = "value"
                value_expr         = "'N2_DEVICE' if (
                                      DEVICE == 'LN2-CT-20ES1' or 
                                      DEVICE == 'LN2-CT-20ES' or 
                                      DEVICE == 'LN2-CT-16' or 
                                      DEVICE == 'LN2-CT-20' or 
                                      DEVICE == 'LN2-MH-20ES' or 
                                      DEVICE == 'LN2-MH-20ES1' or 
                                      DEVICE == 'LN2-MH-70ES1' or 
                                      DEVICE == 'LN2-MH-16' or 
                                      DEVICE == 'LN2-MH-20') 
                                      else 'NON_N2_DEVICE'"
                value_type         = "string"
                title              = "N2 Device"
                editable           = "False"
                hidden             = "True"
                group1             = "General"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "JEDI_PLUS"
                type               = "param"
                default            = "False"
                value_expr         = "True if (
                                      DEVICE == 'LFD2NX-15P' or
                                      DEVICE == 'LFD2NX-25P' or
                                      DEVICE == 'LFMXO5-15PD' or
                                      DEVICE == 'LFMXO5-25P') 
                                      else False"
                value_type         = "bool"
                title              = "Jedi+ Devices which Supporting LVDS"
                editable           = "False"
                hidden             = "True"
                group1             = "General"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "CPNX_SERDES"
                type               = "input"
                default            = "False"
                value_expr         = "True if (FAMILY == 'LFCPNX') else False"
                value_type         = "bool"
                title              = "Nexus Devices which Supporting SerDes, MPCS"
                editable           = "False"
                hidden             = "True"
                group1             = "General"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "AVANT_SERDES"
                type               = "input"
                default            = "False"
                value_expr         = "True if (
                                      DEVICE == 'LAV-AT-G70' or  
                                      DEVICE == 'LAV-AT-X70' or 
                                      DEVICE == 'LAV-AT-G50' or  
                                      DEVICE == 'LAV-AT-X50' or 
                                      DEVICE == 'LAV-AT-G30' or  
                                      DEVICE == 'LAV-AT-X30' or
                                      DEVICE == 'LN2-CT-20ES1' or
                                      DEVICE == 'LN2-CT-16' or 
                                      DEVICE == 'LN2-CT-20' or  
                                      DEVICE == 'LN2-MH-20ES1' or 
                                      DEVICE == 'LN2-MH-16' or 
                                      DEVICE == 'LN2-MH-20')
                                      else False"
                value_type         = "bool"
                title              = "Nexus Devices which Supporting SerDes, MPCS"
                editable           = "False"
                hidden             = "True"
                group1             = "General"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "AVANT_SGMII_PORTS"
                type               = "input"
                default            = "False"
                value_expr         = "True if (FAMILY == 'LAV-AT' and (IP_OPTION == 'MAC + SGMII(SerDes)' or IP_OPTION == 'SGMII(SerDes) only')) else False"
                value_type         = "bool"
                title              = "AVANT SGMII ports"
                editable           = "False"
                hidden             = "True"
                group1             = "General"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "CPNX_SGMII_PORTS"
                type               = "input"
                default            = "False"
                value_expr         = "True if ( CPNX_SERDES and (IP_OPTION == 'MAC + SGMII(SerDes)' or IP_OPTION == 'SGMII(SerDes) only'))  else False"
                value_type         = "bool"
                title              = "CPNX SGMII ports"
                editable           = "False"
                hidden             = "True"
                group1             = "General"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "LVDS_PORTS"
                type               = "input"
                default            = "False"
                value_expr         = "True if ( IP_OPTION == 'MAC + SGMII(LVDS)' or IP_OPTION == 'SGMII(LVDS) only')  else False"
                value_type         = "bool"
                title              = "LVDS ports"
                editable           = "False"
                hidden             = "True"
                group1             = "General"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "SGMII_ALONE_PORTS"
                type               = "input"
                default            = "False"
                value_expr         = "True if (IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only')  else False"
                value_type         = "bool"
                title              = "SGMII only ports"
                editable           = "False"
                hidden             = "True"
                group1             = "General"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "IP_OPTION"
                type               = "param"
                default            = "MAC + SGMII(LVDS)"
                value_expr         = "'MAC + SGMII(LVDS)' if (FAMILY == 'LAV-AT' or (JEDI_PLUS == 1)) else ('MAC + SGMII(SerDes)' if (CPNX_SERDES) else 'MAC only')"
                options            = "['MAC + SGMII(LVDS)','SGMII(LVDS) only', 'MAC + SGMII(SerDes)','SGMII(SerDes) only','MAC only'] if (FAMILY == 'LAV-AT' and AVANT_SERDES) else ( ['MAC + SGMII(LVDS)','SGMII(LVDS) only','MAC only'] if ((FAMILY == 'LAV-AT' and AVANT_SERDES == 0) or (JEDI_PLUS == 1) ) else (['MAC + SGMII(SerDes)', 'MAC only', 'SGMII(SerDes) only'] if (CPNX_SERDES) else ['MAC only']))"
                value_type         = "string"
                title              = "Select IP Option"
                editable           = "True"
                group1             = "General"
/>
<lsccip:setting     
                id                 = "SINGLE_CLK_SOL"
                type               = "param"
                conn_mod           = "mac_phy_top"
                value_type         = "bool"
                value_expr         = "True"
                title              = "Simplified Clock Scheme"
                default            = "True"
                editable           = "False"
                hidden             = "True"
                group1             = "Configuration"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "MAC_OPERATING_OPTION"
                type               = "input"
                default            = "4"
                value_expr         = "4 if (IP_OPTION == 'MAC only') else 4"
                value_type         = "int"
                title              = "Select MAC Operating Option"
                options            = "[('MII/GMII', 4), ('Gigabit MAC', 1), ('SGMII Easy Connect', 2), ('RGMII', 3), ('RMII', 5)]"
                editable           = "IP_OPTION == 'MAC only'"
                hidden             = "IP_OPTION != 'MAC only'"
                group1             = "Configuration"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "MAC_N_SGMII_OPERATING_OPTION"
                type               = "input"
                default            = "2"
                value_expr         = "2 if (IP_OPTION == 'MAC + SGMII(LVDS)') else 2"
                value_type         = "int"
                title              = "Select MAC + SGMII(LVDS) Operating Option"
                options            = "[('Multi-rate SGMII Ethernet', 2), ('Gigabit 1000BaseX Ethernet', 1)]"
                editable           = "IP_OPTION == 'MAC + SGMII(LVDS)'"
                hidden             = "IP_OPTION != 'MAC + SGMII(LVDS)'"
                group1             = "Configuration"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "INTERFACE"
                type               = "param"
                default            = "AXI4L"
                options            = "['APB', 'AHBL','AXI4L']"
                value_type         = "string"
                title              = "Host Interface"
                editable           = "True"
                hidden             = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"
                group1             = "Configuration"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "MIIM_OPTIONS"
                type               = "input"
                default            = "FALSE"
                value_type         = "bool"
                title              = "Include MIIM Module"
                bool_value_mapping = "['TRUE','FALSE']"
                value_expr         = "False if (IP_OPTION == 'MAC only') else False"
                editable           = "IP_OPTION == 'MAC only'"
                hidden             = "IP_OPTION != 'MAC only'"
                group1             = "Configuration"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "HALF_DUPLEX_EN"
                type               = "param"
                default            = "False"
                value_type         = "bool"
                title              = "Enable Half Duplex Module"
                value_expr         = "False if (IP_OPTION == 'MAC only') else False"
                editable           = "True"
                hidden             = "IP_OPTION != 'MAC only' and IP_OPTION != 'MAC + SGMII(LVDS)' and IP_OPTION != 'MAC + SGMII(SerDes)'"
                group1             = "Configuration"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "AXIS_FIFO_EN"
                type               = "param"
                default            = "True"
                value_type         = "bool"
                title              = "Enable AXIS FIFO Functionality"
                value_expr         = "True if (IP_OPTION == 'MAC only') else True"
                editable           = "True"
                hidden             = "IP_OPTION != 'MAC only' and IP_OPTION != 'MAC + SGMII(LVDS)' and IP_OPTION != 'MAC + SGMII(SerDes)'"
                group1             = "Configuration"
/>
<lsccip:setting     
                id                 = "STATS_CNTR"
                type               = "param"
                conn_mod           = "mac_phy_top"
                value_type         = "bool"
                value_expr         = "0 if (IP_OPTION == 'MAC only') else 0"
                title              = "Statistics Counter Registers"
                default            = "False"
                drc                = "ext_check_one_cntr_en(STATS_CNTR, TX_STATS_CNTR, RX_STATS_CNTR)"
                hidden             = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only' or (DEVICE == 'LFD2NX-9')"
                group1             = "Configuration"
/>
<lsccip:setting
                id                 = "STATS_WIDTH"
                type               = "param"
                conn_mod           = "mac_phy_top"
                value_type         = "int"
                title              = "Counter Width"
                default            = "32"
                options            = "[(32), (64)]" 
                editable           = "STATS_CNTR == 1"
                hidden             = "STATS_CNTR == 0"
                group1             = "Statistics Counter Configuration"
/>
<lsccip:setting
                id                 = "TX_STATS_CNTR"
                type               = "param"
                conn_mod           = "mac_phy_top"
                value_type         = "bool"
                title              = "TX Statistics"
                default            = "True"
                editable           = "STATS_CNTR == 1"
                hidden             = "STATS_CNTR == 0"
                drc                = "ext_check_one_cntr_en(STATS_CNTR, TX_STATS_CNTR, RX_STATS_CNTR)"
                group1             = "Statistics Counter Configuration"
/>
<lsccip:setting
                id                 = "RX_STATS_CNTR"
                type               = "param"
                conn_mod           = "mac_phy_top"
                value_type         = "bool"
                title              = "RX Statistics"
                default            = "True"
                editable           = "STATS_CNTR == 1"
                hidden             = "STATS_CNTR == 0"
                drc                = "ext_check_one_cntr_en(STATS_CNTR, TX_STATS_CNTR, RX_STATS_CNTR)"
                group1             = "Statistics Counter Configuration"
/>                    

<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "CLASSIC_TSMAC"
                type               = "param"
                default            = "0"
                value_type         = "int"
                value_expr         = "1 if (IP_OPTION == 'MAC only' and MAC_OPERATING_OPTION == 0) else 0"
                title              = "Classic TSMAC"
                editable           = "False"
                hidden             = "True"
                group1             = "TSE Ports"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "MII_GMII"
                type               = "param"
                default            = "0"
                value_type         = "int"
                value_expr         = "1 if (IP_OPTION == 'MAC only' and MAC_OPERATING_OPTION == 4) else 0"
                title              = "Standard MII/GMII"
                editable           = "False"
                hidden             = "True"
                group1             = "TSE Ports"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "MIIM_MODULE"
                type               = "param"
                default            = "0"
                value_type         = "int"
                value_expr         = "1 if (MIIM_OPTIONS and IP_OPTION == 'MAC only') else 0"
                title              = "MIIM module"
                editable           = "False"
                hidden             = "True"
                group1             = "TSE Ports"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "SGMII_TSMAC"
                type               = "param"
                default            = "0"
                value_type         = "int"
                value_expr         = "1 if ((IP_OPTION == 'MAC only' and MAC_OPERATING_OPTION == 2) or ((IP_OPTION == 'MAC + SGMII(LVDS)' and MAC_N_SGMII_OPERATING_OPTION == 2)) or (IP_OPTION == 'MAC + SGMII(SerDes)')) else 0"
                title              = "SGMII Easy Connect"
                editable           = "False"
                hidden             = "True"
                group1             = "TSE Ports"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "GBE_MAC"
                type               = "param"
                default            = "1"
                value_type         = "int"
                value_expr         = "1 if ((IP_OPTION == 'MAC only' and MAC_OPERATING_OPTION == 1) or ((IP_OPTION == 'MAC + SGMII(LVDS)' and MAC_N_SGMII_OPERATING_OPTION == 1))) else 0"
                title              = "Gigabit MAC"
                editable           = "False"
                hidden             = "True"
                group1             = "TSE Ports"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "RGMII"
                type               = "param"
                default            = "1"
                value_type         = "int"
                value_expr         = "1 if (IP_OPTION == 'MAC only' and MAC_OPERATING_OPTION == 3) else 0"
                title              = "RGMII"
                editable           = "False"
                hidden             = "True"
                group1             = "TSE Ports"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "RMII"
                type               = "param"
                default            = "1"
                value_type         = "int"
                value_expr         = "1 if (IP_OPTION == 'MAC only' and MAC_OPERATING_OPTION == 5) else 0"
                title              = "RMII"
                editable           = "False"
                hidden             = "True"
                group1             = "TSE Ports"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "DATA_WIDTH"
                type               = "param"
                default            = "8"
                value_type         = "int"
                title              = "Parameter for DATA_WIDTH"
                editable           = "False"
                hidden             = "True"
                group1             = "TSE Ports"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "IF_DATA_WIDTH"
                type               = "param"
                default            = "32"
                value_type         = "int"
                title              = "Parameter for IF_DATA_WIDTH"
                editable           = "False"
                hidden             = "True"
                group1             = "TSE Ports"
/>
<lsccip:setting conn_mod           = "mac_phy_top"
                id                 = "OFFSET_WIDTH"
                type               = "param"
                default            = "11"
                value_type         = "int"
                title              = "Parameter for OFFSET_WIDTH"
                editable           = "False"
                hidden             = "True"
                group1             = "TSE Ports"
/>
<lsccip:setting id                 = "FAMILY"
                conn_mod           = "mac_phy_top"
                value_type         = "string"
                type               = "param"
                title              = "Fam"
                value_expr         = "runtime_info.device_info.architecture(1)"
                editable           = "False"
                hidden             = "True"
                group1             = "TSE Ports"
/>
<lsccip:setting     id                 = "GMII_STYLE"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "int"
                    title              = "(G)MII Style"
                    value_expr         = "1 if (IP_OPTION == 'MAC + SGMII(LVDS)' or IP_OPTION == 'MAC + SGMII(SerDes)' or IP_OPTION == 'SGMII(SerDes) only') else 0"
                    options            = "[('Classic', 0), ('TSMAC Easy Connect', 1)]"
                    default            = "0"
                    editable           = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"
                    hidden             = "not SGMII_ALONE_PORTS"
                    group1             = "PHY Settings "
/>
<lsccip:setting     id                 = "RX_CTC_MODE"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "int"
                    title              = "RX CTC Mode"
                    options            = "[('Dynamic', 0), ('Static', 1), ('None', 2)]"
                    default            = "0"
                    hidden             = "IP_OPTION == 'MAC only'"
                    group1             = "PHY Settings "
/>
<lsccip:setting     id                 = "STATIC_LO_THR"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "int"
                    title              = "Static Low FIFO Threshold"
                    value_range        = "(1, 1016)"
                    default            = "16"
                    editable           = "RX_CTC_MODE == 1"
                    hidden             = "IP_OPTION == 'MAC only'"
                    group1             = "PHY Settings "
/>
<lsccip:setting     id                 = "STATIC_HI_THR"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "int"
                    title              = "Static High FIFO Threshold"
                    value_range        = "(4, 1020)"
                    default            = "32"
                    editable           = "RX_CTC_MODE == 1"
                    hidden             = "IP_OPTION == 'MAC only'"
                    group1             = "PHY Settings "
/>
<lsccip:setting     id                 = "USE_EXT_PLL"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "bool"
                    value_expr         = "0 if (IP_OPTION == 'MAC only') else 0"
                    title              = "Use External PLL (remove internal PLL instance)"
                    default            = "False"
                    editable           = "True if (FAMILY != 'LAV-AT' and (IP_OPTION == 'MAC + SGMII(LVDS)' or IP_OPTION == 'SGMII(LVDS) only')) else False"
                    hidden             = "False if (FAMILY != 'LAV-AT' and (IP_OPTION == 'MAC + SGMII(LVDS)' or IP_OPTION == 'SGMII(LVDS) only')) else True"
                    group1             = "Option Settings "
/>
<lsccip:setting     id                 = "USE_CDR_REFCLK_IN"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "bool"
                    value_expr         = "False"
                    title              = "Enable Port: CDR Reference clock (input)"
                    default            = "False"
                    editable           = "False"
                    hidden             = "True"
                    group1             = "Option Settings "
/>
<!-- old setting of USE_CDR_REFCLK_IN
<lsccip:setting     id                 = "USE_CDR_REFCLK_IN"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "bool"
                    value_expr         = "(JEDI_D6) or (USE_EXT_PLL)"
                    title              = "Enable Port: CDR Reference clock (input)"
                    default            = "False"
                    editable           = "(FAMILY != 'LAV-AT') and (IP_OPTION == 'SGMII(LVDS) only') and (not(JEDI_D6))"
                    hidden             = "False if (FAMILY != 'LAV-AT' and IP_OPTION == 'SGMII(LVDS) only') else True"
                    group1             = "Option Settings "
/>-->
<lsccip:setting     id                 = "USE_MDIO"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "int"
                    value_expr         = "0 if (IP_OPTION == 'MAC only') else 0"
                    title              = "SGMII Core Register Access"
                    default            = "0"
                    options            ="[('LMMI', 0), ('MDIO', 1)]"                                    
                    editable           = "False"
                    hidden             = "True"
                    group1             = "Option Settings "
/>
<lsccip:setting     id                 = "MPCS_PMA_CLK_SEL"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "int"
                    options            = "[('Manual Selection', 0), ('sdq_refclk', 1), ('sd_ext_0_refclk', 2), ('sd_ext_1_refclk', 3),  ('pll_0_refclk', 4), ('pll_1_refclk', 5), ('sd_pll_refclk', 6)]"
                    title              = "PMA Reference Clock"
                    default            = "0"
                    editable           = "CPNX_SGMII_PORTS"
                    hidden             = "not CPNX_SGMII_PORTS"
                    group1             = "PCS Settings "
/>
<lsccip:setting     id                 = "LANE_ID"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "string"
                    options            = "['0', '1', '2', '3', '4', '5', '6', '7'] if runtime_info.device_info.device(1) == 'LFCPNX-100' else ['0', '1', '2', '3'] if runtime_info.device_info.device(1) == 'LFCPNX-50' else ['0', '1', '2', '3', '4', '5', '6', '7']"
                    title              = "Select MPCS Lane"
                    default            = "0"
                    editable           = "CPNX_SGMII_PORTS"
                    hidden             = "not CPNX_SGMII_PORTS"
                    group1             = "PCS Settings "
/>
<lsccip:setting     id                 = "MPCS_INST"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "int"
                    title              = "MPCS Lane Name"
                    options            = "[0,1,2,3,4,5,6,7]"
                    value_expr         = "0 if (LANE_ID == 'AUTO' or LANE_ID == '0') else 
                                         (1 if (LANE_ID == '1') else 
                                         (2 if (LANE_ID == '2') else 
                                         (3 if (LANE_ID == '3') else 
                                         (4 if (LANE_ID == '4') else 
                                         (5 if (LANE_ID == '5') else 
                                         (6 if (LANE_ID == '6') else 
                                          7 ))))))"
                    default            = "0"
                    editable           = "CPNX_SGMII_PORTS and (LANE_ID == 'AUTO')"
                    hidden             = "True"
                    group1             = "PCS Settings "
/>
<lsccip:setting     id                 = "LOOPBACK_MPCS"
                    type               = "input"
                    conn_mod           = "mac_phy_top"
                    value_type         = "bool"
                    title              = "MPCS PMA loopback"
                    default            = "False"
                    editable           = "CPNX_SGMII_PORTS"
                    hidden             = "not CPNX_SGMII_PORTS"
                    group1             = "PCS Settings "
/>
<lsccip:setting     id                 = "LOOPBACK_MODE"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "string"
                    value_expr         = "'DISABLED'if (LOOPBACK_MPCS == 0) else 'Near_End_Parallel_Loopback'"
                    title              = "MPCS PMA loopback"
                    default            = "DISABLED"
                    hidden             = "True"
                    group1             = "PCS Settings "
/>
<lsccip:setting     id                 = "MPPHY_LANE_ID"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "string"
                    options            = "['AUTO','0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27'] if (DEVICE == 'LAV-AT-X70' or DEVICE == 'LAV-AT-G70') else 
                                          ['AUTO','0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15'] if(DEVICE == 'LAV-AT-X50' or DEVICE == 'LAV-AT-G50') else  
                                          ['AUTO','0','1','2','3','4','5','6','7','8','9','10','11'] if (DEVICE == 'LAV-AT-X30' or DEVICE == 'LAV-AT-G30') else
                                          ['AUTO','0','1','2','3','4','5','6','7'] if (DEVICE == 'LN2-MH-20ES1' or DEVICE == 'LN2-MH-16' or DEVICE == 'LN2-MH-20' or DEVICE == 'LN2-CT-20ES1' or DEVICE == 'LN2-CT-16' or DEVICE == 'LN2-CT-20') else
                                          ['AUTO','0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27']
                                         "
                    title              = "Select MPPHY lane or channel"
                    default            = "AUTO"
                    editable           = "AVANT_SGMII_PORTS"
                    hidden             = "not AVANT_SGMII_PORTS"
                    group1             = "MPPHY Settings"
/>
<lsccip:setting     id                 = "MPPHY_LOOPBACK_MODE"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "string"
                    options            = "['Fabric Loopback', 'Near PMA Loopback', 'Disabled']"
                    title              = "Loopback Mode"
                    default            = "Disabled"
                    editable           = "AVANT_SGMII_PORTS"
                    hidden             = "not AVANT_SGMII_PORTS"
                    group1             = "MPPHY Settings"
/>
<lsccip:setting
                    id                 = "PHY_RX_TERM_ACDC_L0"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "string"
                    title              = "RX Coupling Mode"
                    options            = "[('AC Coupling', '0b1'),('DC Coupling', '0b0')]"
                    default            = "0b1"
                    editable           = "AVANT_SGMII_PORTS"
                    hidden             = "not AVANT_SGMII_PORTS"
                    group1             = "PMA Setup-Receiver Subgroup"
/>
<lsccip:setting
                     id                = "RX_LOSS_PORT_EN"
                     type              = "input"
                     conn_mod          = "mac_phy_top"
                     value_type        = "bool"
                     title             = "RX Loss of Sig port Enable"
                     default           = "True"
                     editable          = "AVANT_SGMII_PORTS"
                     hidden            = "not AVANT_SGMII_PORTS"
                     group1            = "PMA Setup-Receiver Subgroup"
/><!-- DFE and EQ inputs
<lsccip:setting
                    id                 = "PHY_RX_DFE_BYPASS_L0"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "string"
                    title              = "DFE Enable"
                    options            = "[('Enabled', 'DISABLED'), ('Disabled', 'ENABLED')]"
                    editable           = "AVANT_SGMII_PORTS"
                    hidden             = "not AVANT_SGMII_PORTS"
                    group1             = "PMA Setup-Receiver Subgroup"
/>
<lsccip:setting
                    id                 = "PHY_RX_EQ_DFE_TAP1_L0"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "string"
                    title              = "DFE Tap Configuration"                                      
                    editable           = "PHY_RX_DFE_BYPASS_L0 == 'DISABLED'"
                    options            = "[('All Taps', '0b00001111'), ('1-Tap', '0b00000000') ]"
                    hidden               = "not AVANT_SGMII_PORTS"
                    group1             = "PMA Setup-Receiver Subgroup"
/>
<lsccip:setting
                    id                 = "PHY_RX_EQ_ATT_LVL_L0"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "string"
                    title              = "RX Attenuation Block"
                    editable           = "RX_ADP_EQ_EN==False"
                    hidden               = "not AVANT_SGMII_PORTS"
                    options            = "[('-13dB', '0b000'), ('-2dB', '0b111')]"
                    group1             = "PMA Setup-Receiver Subgroup"
/> -->
<lsccip:setting     id                 ="DEVICE" 
                    conn_mod           ="mac_phy_top" 
                    value_type         ="string"
                    type               ="param" 
                    title              ="Dev" 
                    value_expr         ="runtime_info.device_info.device(1)" 
                    editable           ="False"
                    hidden             ="True" 
                    group1             ="General"
/>
<lsccip:setting     id                 ="PRIMITIVE" 
                    type               ="param" 
                    conn_mod           ="mac_phy_top" 
                    value_type         ="bool" 
                    title              ="Using Eval Board 01A" 
                    default            ="False" 
                    editable           ="DEVICE == 'LAV-AT-500E'" 
                    hidden             ="DEVICE != 'LAV-AT-500E'" 
                    group1             ="Eval Board"
/>
<lsccip:setting     id                 ="JEDI_D6" 
                    type               ="param" 
                    conn_mod           ="mac_phy_top" 
                    value_type         ="bool" 
                    title              ="Base device is Jedi-D1" 
                    default            ="False" 
                    value_expr         ="(DEVICE == 'LFMXO5-25') or (DEVICE == 'LFD2NX-15') or (DEVICE == 'LFD2NX-25') or (DEVICE == 'LFMXO5-15D')"
                    editable           ="False" 
                    hidden             ="True" 
                    group1             ="General"
/>
<lsccip:setting     id                 = "TX_FPGA_DELAY"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "bool"
                    title              = "Enable FPGA delay for TX"
                    default            = "False"
                    hidden             = "not RGMII"
                    group1             = "RGMII Timing Consideration "
/>
<lsccip:setting     id                 = "TX_DELAY_VALUE_GUI"
                    type               = "input"
                    conn_mod           = "mac_phy_top"
                    value_type         = "int"
                    title              = "FPGA delay steps for TX"
                    default            = "127"
                    value_range        = "(0, 511) if (FAMILY == 'LAV-AT') else (0, 127)"
                    editable           = "TX_FPGA_DELAY"
                    hidden             = "not TX_FPGA_DELAY or not RGMII"
                    group1             = "RGMII Timing Consideration "
/>
<lsccip:setting     id                 = "TX_DELAY_VALUE"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "string"
                    title              = "FPGA delay steps for TX"
                    default            = "127"
                    value_expr         = "TX_DELAY_VALUE_GUI"
                    hidden             = "True"
                    group1             = "RGMII Timing Consideration "
/>
<lsccip:setting     id                 = "RX_FPGA_DELAY"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "bool"
                    title              = "Enable FPGA delay for RX"
                    default            = "False"
                    hidden             = "not RGMII"
                    group1             = "RGMII Timing Consideration "
/>
<lsccip:setting     id                 = "RX_DELAY_VALUE_GUI"
                    type               = "input"
                    conn_mod           = "mac_phy_top"
                    value_type         = "int"
                    title              = "FPGA delay steps for RX"
                    default            = "127"
                    value_range        = "(0, 511) if (FAMILY == 'LAV-AT') else (0, 127)"
                    editable           = "RX_FPGA_DELAY"
                    hidden             = "not RX_FPGA_DELAY or not RGMII"
                    group1             = "RGMII Timing Consideration "
/>
<lsccip:setting     id                 = "RX_DELAY_VALUE"
                    type               = "param"
                    conn_mod           = "mac_phy_top"
                    value_type         = "string"
                    title              = "FPGA delay steps for RX"
                    default            = "127"
                    value_expr         = "RX_DELAY_VALUE_GUI"
                    hidden             = "True"
                    group1             = "RGMII Timing Consideration "
/>                    
</lsccip:settings>

<lsccip:ports>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "int_o"
             name          = "int_o"
             dir           = "out"
             dangling      = "False"                               
             bus_interface = "INTR"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "ahbl_hburst_i"
             name          = "ahbl_hburst_i"
             dir           = "in"
             range         = "(2, 0)"
             stick_low     = "INTERFACE != 'AHBL'"
             bus_interface = "AHBL_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "ignore_pkt_i"
             name          = "ignore_pkt_i"
             dir           = "in"
             stick_low     = "IP_OPTION =='SGMII(LVDS) only' or IP_OPTION =='SGMII(SerDes) only'"                                   
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "txd_pos_o"
             name          = "txd_pos_o"
             dir           = "out"
             range         = "(7, 0)"
             dangling      = "CLASSIC_TSMAC == 0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "reset_n_i"
             name          = "reset_n_i"
             dir           = "in"
             stick_low     = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                     
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "mdo_o"
             name          = "mdo_o"
             dir           = "out"
             dangling      = "MIIM_MODULE == 0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rx_error_o"
             name          = "rx_error_o"
             dir           = "out"
             dangling      = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                    
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "apb_pready_o"
             name          = "apb_pready_o"
             dir           = "out"
             dangling      = "INTERFACE != 'APB'"
             bus_interface = "APB_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axis_rx_tvalid_o"
             name          = "axis_rx_tvalid_o"
             dir           = "out"
             dangling      = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                   
             bus_interface = "AXIS_M0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rx_fifo_error_o"
             name          = "rx_fifo_error_o"
             dir           = "out"
             dangling      = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                   
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rx_dv_i"
             name          = "rx_dv_i"
             dir           = "in"
             stick_low     = "(GBE_MAC == 0 and SGMII_TSMAC == 0) or IP_OPTION != 'MAC only' or SINGLE_CLK_SOL == 1"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axis_rx_tready_i"
             name          = "axis_rx_tready_i"
             dir           = "in"
             stick_low     = "IP_OPTION == 'SGMII(LVDS) only'  or IP_OPTION == 'SGMII(SerDes) only'"                                     
             bus_interface = "AXIS_M0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "tx_discfrm_o"
             name          = "tx_discfrm_o"
             dir           = "out"
             dangling      = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                   
/>

<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "txd_neg_o"
             name          = "txd_neg_o"
             dir           = "out"
             range         = "(3, 0)"
             dangling      = "CLASSIC_TSMAC == 0 or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "ahbl_hwrite_i"
             name          = "ahbl_hwrite_i"
             dir           = "in"
             stick_low     = "INTERFACE != 'AHBL'"
             bus_interface = "AHBL_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rx_dv_pos_i"
             name          = "rx_dv_pos_i"
             dir           = "in"
             stick_low     = "CLASSIC_TSMAC == 0 or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "ahbl_hrdata_o"
             name          = "ahbl_hrdata_o"
             dir           = "out"
             range         = "(IF_DATA_WIDTH-1, 0)"
             dangling      = "INTERFACE != 'AHBL'"
             bus_interface = "AHBL_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "tx_sndpausreq_i"
             name          = "tx_sndpausreq_i"
             dir           = "in"
             stick_low     = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                    
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "tx_er_o"
             name          = "tx_er_o"
             dir           = "out"
             dangling      = "(GBE_MAC == 0 and SGMII_TSMAC == 0 and CLASSIC_TSMAC == 0) or IP_OPTION != 'MAC only' or SINGLE_CLK_SOL == 1"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rx_stat_vector_o"
             name          = "rx_stat_vector_o"
             dir           = "out"
             range         = "(31, 0)"
             dangling      = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                    
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rxmac_clk_en_i"
             name          = "rxmac_clk_en_i"
             dir           = "in"
             stick_high    = "(SGMII_TSMAC == 0) or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rxd_i"
             name          = "rxd_i"
             dir           = "in"
             range         = "(7, 0)"
             stick_low     = "(GBE_MAC == 0 and SGMII_TSMAC == 0) or IP_OPTION != 'MAC only' or SINGLE_CLK_SOL == 1"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rgmii_rxd_i"
             name          = "rgmii_rxd_i"
             dir           = "in"
             range         = "(3, 0)"
             stick_low     = "(RGMII == 0) or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rgmii_rx_ctl_i"
             name          = "rgmii_rx_ctl_i"
             dir           = "in"
             stick_low     = "(RGMII == 0) or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "apb_pslverr_o"
             name          = "apb_pslverr_o"
             dir           = "out"
             dangling      = "INTERFACE != 'APB'"
             bus_interface = "APB_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "clk_i"
             name          = "clk_i"
             dir           = "in"
             stick_low     = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                    
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rxmac_clk_i"
             name          = "rxmac_clk_i"
             dir           = "in"
             stick_high    = "IP_OPTION != 'MAC only' or SINGLE_CLK_SOL"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "txmac_clk_i"
             name          = "txmac_clk_i"
             dir           = "in"
             stick_high    = "IP_OPTION != 'MAC only' or SINGLE_CLK_SOL"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "tx_mii_clk_i"
             name          = "tx_mii_clk_i"
             dir           = "in"
             stick_high    = "IP_OPTION != 'MAC only' or SINGLE_CLK_SOL or (MII_GMII != 1 and RGMII != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rx_mii_clk_i"
             name          = "rx_mii_clk_i"
             dir           = "in"
             stick_high    = "IP_OPTION != 'MAC only' or SINGLE_CLK_SOL or (MII_GMII != 1 and RGMII != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rmii_ref_clk_i"
             name          = "rmii_ref_clk_i"
             dir           = "in"
             stick_high    = "IP_OPTION != 'MAC only' or RMII != 1"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "mii_gmii_gtx_clk_i"
             name          = "mii_gmii_gtx_clk_i"
             dir           = "in"
             stick_high    = "IP_OPTION != 'MAC only' or (MII_GMII != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "mii_gmii_tx_clk_i"
             name          = "mii_gmii_tx_clk_i"
             dir           = "in"
             stick_high    = "IP_OPTION != 'MAC only' or (MII_GMII != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "mii_gmii_rx_clk_i"
             name          = "mii_gmii_rx_clk_i"
             dir           = "in"
             stick_high    = "IP_OPTION != 'MAC only' or (MII_GMII != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "gmii_tx_clk_i"
             name          = "gmii_tx_clk_i"
             dir           = "in"
             stick_high    = "IP_OPTION != 'MAC only' or (GBE_MAC != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "gmii_rx_clk_i"
             name          = "gmii_rx_clk_i"
             dir           = "in"
             stick_high    = "IP_OPTION != 'MAC only' or (GBE_MAC != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "sgmii_tx_clk_i"
             name          = "sgmii_tx_clk_i"
             dir           = "in"
             stick_high    = "IP_OPTION != 'MAC only' or (SGMII_TSMAC != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "sgmii_rx_clk_i"
             name          = "sgmii_rx_clk_i"
             dir           = "in"
             stick_high    = "IP_OPTION != 'MAC only' or (SGMII_TSMAC != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rgmii_tx_clk_i"
             name          = "rgmii_tx_clk_i"
             dir           = "in"
             stick_high    = "IP_OPTION != 'MAC only' or (RGMII != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rgmii_rx_clk_i"
             name          = "rgmii_rx_clk_i"
             dir           = "in"
             stick_high    = "IP_OPTION != 'MAC only' or (RGMII != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rgmii_rxc_speed_o"
             name          = "rgmii_rxc_speed_o"
             dir           = "out"
             range         = "(2, 0)"
             dangling      = "IP_OPTION != 'MAC only' or (RGMII != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "mii_gmii_tx_clk_en_o"
             name          = "mii_gmii_tx_clk_en_o"
             dir           = "out"
             dangling      = "MII_GMII != 1 or SINGLE_CLK_SOL != 1"
             
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "mii_gmii_rx_clk_en_o"
             name          = "mii_gmii_rx_clk_en_o"
             dir           = "out"
             dangling      = "MII_GMII != 1 or SINGLE_CLK_SOL != 1"
             
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "gmii_tx_clk_en_o"
             name          = "gmii_tx_clk_en_o"
             dir           = "out"
             dangling      = "IP_OPTION != 'MAC only' or GBE_MAC != 1 or SINGLE_CLK_SOL != 1"
             
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "gmii_rx_clk_en_o"
             name          = "gmii_rx_clk_en_o"
             dir           = "out"
             dangling      = "IP_OPTION != 'MAC only' or GBE_MAC != 1 or SINGLE_CLK_SOL != 1"
             
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "sgmii_tx_clk_en_o"
             name          = "sgmii_tx_clk_en_o"
             dir           = "out"
             dangling      = "(SGMII_TSMAC != 1 or SINGLE_CLK_SOL != 1) or (IP_OPTION == 'MAC only' and (SGMII_TSMAC and SINGLE_CLK_SOL != 1))"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "sgmii_rx_clk_en_o"
             name          = "sgmii_rx_clk_en_o"
             dir           = "out"
             dangling      = "(SGMII_TSMAC != 1 or SINGLE_CLK_SOL != 1) or (IP_OPTION == 'MAC only' and (SGMII_TSMAC and SINGLE_CLK_SOL != 1))"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rgmii_tx_clk_en_o"
             name          = "rgmii_tx_clk_en_o"
             dir           = "out"
             dangling      = "IP_OPTION != 'MAC only' or (RGMII != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rgmii_rx_clk_en_o"
             name          = "rgmii_rx_clk_en_o"
             dir           = "out"
             dangling      = "IP_OPTION != 'MAC only' or (RGMII != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rmii_clk_en_o"
             name          = "rmii_clk_en_o"
             dir           = "out"
             dangling      = "RMII != 1 or SINGLE_CLK_SOL != 1"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "apb_paddr_i"
             name          = "apb_paddr_i"
             dir           = "in"
             range         = "(OFFSET_WIDTH-1, 0)"
             stick_low     = "INTERFACE != 'APB'"
             bus_interface = "APB_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "apb_prdata_o"
             name          = "apb_prdata_o"
             dir           = "out"
             range         = "(IF_DATA_WIDTH-1, 0)"
             dangling      = "INTERFACE != 'APB'"
             bus_interface = "APB_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "ahbl_hreadyout_o"
             name          = "ahbl_hreadyout_o"
             dir           = "out"
             dangling      = "INTERFACE != 'AHBL'"
             bus_interface = "AHBL_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "ahbl_hsel_i"
             name          = "ahbl_hsel_i"
             dir           = "in"
             stick_low     = "INTERFACE != 'AHBL'"
             bus_interface = "AHBL_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rx_eof_o"
             name          = "rx_eof_o"
             dir           = "out"
             dangling      = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                     
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "tx_sndpaustim_i"
             name          = "tx_sndpaustim_i"
             dir           = "in"
             range         = "(15, 0)"
             stick_low     = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                    
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rx_er_neg_i"
             name          = "rx_er_neg_i"
             dir           = "in"
             stick_low     = "CLASSIC_TSMAC == 0 or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "ahbl_hwdata_i"
             name          = "ahbl_hwdata_i"
             dir           = "in"
             range         = "(IF_DATA_WIDTH-1, 0)"
             stick_low     = "INTERFACE != 'AHBL'"
             bus_interface = "AHBL_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "ahbl_haddr_i"
             name          = "ahbl_haddr_i"
             dir           = "in"
             range         = "(OFFSET_WIDTH-1, 0)"
             stick_low     = "INTERFACE != 'AHBL'"
             bus_interface = "AHBL_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rx_er_pos_i"
             name          = "rx_er_pos_i"
             dir           = "in"
             stick_low     = "CLASSIC_TSMAC == 0 or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "tx_staten_o"
             name          = "tx_staten_o"
             dir           = "out"
             dangling      = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                     
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rx_staten_o"
             name          = "rx_staten_o"
             dir           = "out"
             dangling      = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                   
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "cpu_if_gbit_en_o"
             name          = "cpu_if_gbit_en_o"
             dir           = "out"
             dangling      = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                    
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "tx_macread_o"
             name          = "tx_macread_o"
             dir           = "out"
             dangling      = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"
/>
<lsccip:port name          ="mdio_io" 
             dir           ="inout" 
             conn_mod      ="mac_phy_top" 
             conn_port     ="mdio_io" 
             dangling      ="not USE_MDIO" 
             bus_interface ="MDIO"
/>  
<lsccip:port name          ="port_id_i" 
             dir           ="in" 
             conn_mod      ="mac_phy_top" 
             conn_port     ="port_id_i" 
             range         ="(4, 0)" 
             stick_low     ="not USE_MDIO" 
             bus_interface ="MDIO"
/>
<lsccip:port name          ="lmmi_clk_i" 
             dir           ="in" 
             conn_mod      ="mac_phy_top" 
             conn_port     ="lmmi_clk_i"
             stick_low     ="IP_OPTION != 'SGMII(LVDS) only'  and IP_OPTION != 'SGMII(SerDes) only'"
             bus_interface ="LMMI"
/>
<lsccip:port name          ="lmmi_resetn_i" 
             dir           ="in" 
             conn_mod      ="mac_phy_top" 
             conn_port     ="lmmi_resetn_i"
             stick_low     ="IP_OPTION != 'SGMII(LVDS) only'  and IP_OPTION != 'SGMII(SerDes) only'"
             bus_interface ="LMMI"
/>
<lsccip:port name          ="lmmi_request_i" 
             dir           ="in" 
             conn_mod      ="mac_phy_top" 
             conn_port     ="lmmi_request_i" 
             stick_low     ="IP_OPTION != 'SGMII(LVDS) only'  and IP_OPTION != 'SGMII(SerDes) only'"
             bus_interface ="LMMI"
/>
<lsccip:port name          ="lmmi_wr_rdn_i" 
             dir           ="in" 
             conn_mod      ="mac_phy_top" 
             conn_port     ="lmmi_wr_rdn_i" 
             stick_low     ="IP_OPTION != 'SGMII(LVDS) only'  and IP_OPTION != 'SGMII(SerDes) only'"
             bus_interface ="LMMI"
/>
<lsccip:port name          ="lmmi_offset_i" 
             dir           ="in" 
             conn_mod      ="mac_phy_top" 
             conn_port     ="lmmi_offset_i" 
             range         ="(5, 0)" 
             stick_low     ="IP_OPTION != 'SGMII(LVDS) only'  and IP_OPTION != 'SGMII(SerDes) only'"
             bus_interface ="LMMI"
/>
<lsccip:port name          ="lmmi_wdata_i" 
             dir           ="in" 
             conn_mod      ="mac_phy_top" 
             conn_port     ="lmmi_wdata_i" 
             range         ="(15, 0)" 
             stick_low     ="IP_OPTION != 'SGMII(LVDS) only'  and IP_OPTION != 'SGMII(SerDes) only'"
             bus_interface ="LMMI"
/>
<lsccip:port name          ="lmmi_rdata_o" 
             dir           ="out" 
             conn_mod      ="mac_phy_top" 
             conn_port     ="lmmi_rdata_o" 
             range         ="(15, 0)" 
             dangling      ="IP_OPTION != 'SGMII(LVDS) only'  and IP_OPTION != 'SGMII(SerDes) only'"
             bus_interface ="LMMI"
/>
<lsccip:port name          ="lmmi_rdata_valid_o" 
             dir           ="out" 
             conn_mod      ="mac_phy_top" 
             conn_port     ="lmmi_rdata_valid_o" 
             dangling      ="IP_OPTION != 'SGMII(LVDS) only'  and IP_OPTION != 'SGMII(SerDes) only'"
             bus_interface ="LMMI"
/>
<lsccip:port name          ="lmmi_ready_o" 
             dir           ="out" 
             conn_mod      ="mac_phy_top" 
             conn_port     ="lmmi_ready_o" 
             dangling      ="IP_OPTION != 'SGMII(LVDS) only'  and IP_OPTION != 'SGMII(SerDes) only'"
             bus_interface ="LMMI"
/>
<lsccip:port name          ="rst_n_i" 
             dir           ="in" 
             conn_mod      ="mac_phy_top" 
             conn_port     ="rst_n_i"
             stick_low     ="IP_OPTION != 'SGMII(LVDS) only'  and IP_OPTION != 'SGMII(SerDes) only'"
/>
<lsccip:port name          ="gbe_mode_i" 
             dir           ="in" 
             conn_mod      ="mac_phy_top" 
             conn_port     ="gbe_mode_i"
             stick_low     ="IP_OPTION == 'MAC+SGMII' or IP_OPTION == 'MAC only'"
/>
<lsccip:port name          ="sgmii_mode_i" 
             dir           ="in" 
             conn_mod      ="mac_phy_top" 
             conn_port     ="sgmii_mode_i"
             stick_low     ="IP_OPTION != 'SGMII(LVDS) only' and IP_OPTION != 'SGMII(SerDes) only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "mdc_i"
             name          = "mdc_i"
             dir           = "in"
             stick_low     = "not MIIM_MODULE and not USE_MDIO"
             bus_interface = "MDIO"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "mdi_i"
             name          = "mdi_i"
             dir           = "in"
             stick_low     = "not MIIM_MODULE"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "ahbl_hprot_i"
             name          = "ahbl_hprot_i"
             dir           = "in"
             range         = "(3, 0)"
             stick_low     = "1"
             bus_interface = "AHBL_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "crs_i"
             name          = "crs_i"
             dir           = "in"
             stick_low     = "GBE_MAC == 1 or IP_OPTION != 'MAC only' or RMII == 1 or (not HALF_DUPLEX_EN)"
/>
<lsccip:port name          ="eclk_oddr_o" 
             dir           ="out" 
             conn_mod      ="mac_phy_top" 
             conn_port     ="eclk_oddr_o" 
             dangling      ="(FAMILY != 'LAV-AT' or IP_OPTION != 'SGMII(LVDS) only') or PRIMITIVE == 1"
/>
<lsccip:port name          ="sclk_oddr_o" 
             dir           ="out"
             conn_mod      ="mac_phy_top" 
             conn_port     ="sclk_oddr_o" 
             dangling      ="(FAMILY != 'LAV-AT' or IP_OPTION != 'SGMII(LVDS) only') or PRIMITIVE == 1"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rx_er_i"
             name          = "rx_er_i"
             dir           = "in"
             stick_low     = "(GBE_MAC == 0 and SGMII_TSMAC == 0) or IP_OPTION != 'MAC only' or SINGLE_CLK_SOL == 1"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axis_rx_tdata_o"
             name          = "axis_rx_tdata_o"
             dir           = "out"
             range         = "(DATA_WIDTH-1, 0)"
             dangling      = "IP_OPTION == 'SGMII(LVDS) only'  or IP_OPTION == 'SGMII(SerDes) only'"                                     
             bus_interface = "AXIS_M0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rxd_pos_i"
             name          = "rxd_pos_i"
             dir           = "in"
             range         = "(7, 0)"
             stick_low     = "CLASSIC_TSMAC == 0 or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "tx_fifoctrl_i"
             name          = "tx_fifoctrl_i"
             dir           = "in"
             stick_low     = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                     
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rxd_neg_i"
             name          = "rxd_neg_i"
             dir           = "in"
             range         = "(3, 0)"
             stick_low     = "CLASSIC_TSMAC == 0 or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "tx_en_o"
             name          = "tx_en_o"
             dir           = "out"
             dangling      = "(GBE_MAC == 0 and SGMII_TSMAC == 0 and CLASSIC_TSMAC == 0) or IP_OPTION != 'MAC only' or SINGLE_CLK_SOL == 1"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axis_rx_tlast_o"
             name          = "axis_rx_tlast_o"
             dir           = "out"
             dangling      = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                     
             bus_interface = "AXIS_M0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axis_rx_tuser_o"
             name          = "axis_rx_tuser_o"
             dir           = "out"
             dangling      = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                     
             bus_interface = "AXIS_M0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axis_rx_tkeep_o"
             name          = "axis_rx_tkeep_o"
             dir           = "out"
             dangling      = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                     
             bus_interface = "AXIS_M0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "ahbl_hsize_i"
             name          = "ahbl_hsize_i"
             dir           = "in"
             range         = "(2, 0)"
             stick_low     = "INTERFACE != 'AHBL'"
             bus_interface = "AHBL_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "apb_pwdata_i"
             name          = "apb_pwdata_i"
             dir           = "in"
             range         = "(IF_DATA_WIDTH-1, 0)"
             stick_low     = "INTERFACE != 'APB'"
             bus_interface = "APB_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axis_tx_tdata_i"
             name          = "axis_tx_tdata_i"
             dir           = "in"
             range         = "(7, 0)"
             stick_low     = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                     
             bus_interface = "AXIS_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axis_tx_tready_o"
             name          = "axis_tx_tready_o"
             dir           = "out"
             dangling      = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                    
             bus_interface = "AXIS_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "apb_pwrite_i"
             name          = "apb_pwrite_i"
             dir           = "in"
             stick_low     = "INTERFACE != 'APB'"
             bus_interface = "APB_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "txmac_clk_en_i"
             name          = "txmac_clk_en_i"
             dir           = "in"
             stick_high    = "SGMII_TSMAC == 0 or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "apb_psel_i"
             name          = "apb_psel_i"
             dir           = "in"
             stick_low     = "INTERFACE != 'APB'"
             bus_interface = "APB_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "ahbl_hmastlock_i"
             name          = "ahbl_hmastlock_i"
             dir           = "in"
             stick_low     = "1"
             bus_interface = "AHBL_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "apb_penable_i"
             name          = "apb_penable_i"
             dir           = "in"
             stick_low     = "INTERFACE != 'APB'"
             bus_interface = "APB_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "col_i"
             name          = "col_i"
             dir           = "in"
             stick_low     = "GBE_MAC == 1 or IP_OPTION != 'MAC only' or RMII == 1 or (not HALF_DUPLEX_EN)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "ahbl_hresp_o"
             name          = "ahbl_hresp_o"
             dir           = "out"
             dangling      = "INTERFACE != 'AHBL'"
             bus_interface = "AHBL_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rx_dv_neg_i"
             name          = "rx_dv_neg_i"
             dir           = "in"
             stick_low     = "CLASSIC_TSMAC == 0 or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "ahbl_htrans_i"
             name          = "ahbl_htrans_i"
             dir           = "in"
             range         = "(1, 0)"
             stick_low     = "INTERFACE != 'AHBL'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "tx_statvec_o"
             name          = "tx_statvec_o"
             dir           = "out"
             range         = "(31, 0)"
             dangling      = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                     
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "mdio_en_o"
             name          = "mdio_en_o"
             dir           = "out"
             dangling      = "not MIIM_MODULE"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axis_tx_tvalid_i"
             name          = "axis_tx_tvalid_i"
             dir           = "in"
             stick_low     = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                     
             bus_interface = "AXIS_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axis_tx_tlast_i"
             name          = "axis_tx_tlast_i"
             dir           = "in"
             stick_low     = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                     
             bus_interface = "AXIS_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axis_tx_tkeep_i"
             name          = "axis_tx_tkeep_i"
             dir           = "in"
             stick_low     = "IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"                                     
             bus_interface = "AXIS_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "txd_o"
             name          = "txd_o"
             dir           = "out"
             range         = "(7, 0)"
             dangling      = "(GBE_MAC == 0 and SGMII_TSMAC == 0) or IP_OPTION != 'MAC only' or SINGLE_CLK_SOL == 1"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rgmii_txd_o"
             name          = "rgmii_txd_o"
             dir           = "out"
             range         = "(3, 0)"
             dangling      = "(RGMII == 0) or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rgmii_tx_ctl_o"
             name          = "rgmii_tx_ctl_o"
             dir           = "out"
             dangling      = "(RGMII == 0) or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "tx_done_o"
             name          = "tx_done_o"
             dir           = "out"
             dangling      = "IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "ahbl_hready_i"
             name          = "ahbl_hready_i"
             dir           = "in"
             stick_low     = "INTERFACE != 'AHBL'"
             bus_interface = "AHBL_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axi_awvalid_i"
             name          = "axi_awvalid_i"
             dir           = "in"
             stick_low     = "INTERFACE != 'AXI4L' or IP_OPTION == 'SGMII(LVDS) only'  or IP_OPTION == 'SGMII(SerDes) only'"
             bus_interface = "AXI4L_S0"             
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axi_awready_o"
             name          = "axi_awready_o"
             dir           = "out"
             dangling      = "INTERFACE != 'AXI4L' or IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"
             bus_interface = "AXI4L_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axi_awaddr_i"
             name          = "axi_awaddr_i"
             dir           = "in"
             range         = "(OFFSET_WIDTH-1, 0)"
             stick_low     = "INTERFACE != 'AXI4L' or IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"
             bus_interface = "AXI4L_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axi_awprot_i"
             name          = "axi_awprot_i"
             dir           = "in"
             range         = "(2, 0)"
             stick_low     = "1"
             bus_interface = "AXI4L_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axi_wvalid_i"
             name          = "axi_wvalid_i"
             dir           = "in"
             stick_low     = "INTERFACE != 'AXI4L' or IP_OPTION == 'SGMII(LVDS) only'  or IP_OPTION == 'SGMII(SerDes) only'"
             bus_interface = "AXI4L_S0"             
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axi_wready_o"
             name          = "axi_wready_o"
             dir           = "out"
             dangling      = "INTERFACE != 'AXI4L' or IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"
             bus_interface = "AXI4L_S0"             
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axi_wdata_i"
             name          = "axi_wdata_i"
             dir           = "in"
             range         = "(IF_DATA_WIDTH-1, 0)"
             stick_low     = "INTERFACE != 'AXI4L' or IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"
             bus_interface = "AXI4L_S0"             
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axi_wstrb_i"
             name          = "axi_wstrb_i"
             dir           = "in"
             range         = "(3, 0)"
             stick_low     = "INTERFACE != 'AXI4L' or IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"
             bus_interface = "AXI4L_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axi_bvalid_o"
             name          = "axi_bvalid_o"
             dir           = "out"
             dangling      = "INTERFACE != 'AXI4L' or IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"
             bus_interface = "AXI4L_S0"             
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axi_bready_i"
             name          = "axi_bready_i"
             dir           = "in"
             stick_low     = "INTERFACE != 'AXI4L' or IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"
             bus_interface = "AXI4L_S0"             
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axi_bresp_o"
             name          = "axi_bresp_o"
             dir           = "out"
             range         = "(1, 0)"
             dangling      = "INTERFACE != 'AXI4L' or IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"
             bus_interface = "AXI4L_S0"             
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axi_arvalid_i"
             name          = "axi_arvalid_i"
             dir           = "in"
             stick_low     = "INTERFACE != 'AXI4L' or IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"
             bus_interface = "AXI4L_S0"             
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axi_arready_o"
             name          = "axi_arready_o"
             dir           = "out"
             dangling      = "INTERFACE != 'AXI4L' or IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"
             bus_interface = "AXI4L_S0"             
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axi_araddr_i"
             name          = "axi_araddr_i"
             dir           = "in"
             range         = "(OFFSET_WIDTH-1, 0)"
             stick_low     = "INTERFACE != 'AXI4L' or IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"
             bus_interface = "AXI4L_S0"             
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axi_arprot_i"
             name          = "axi_arprot_i"
             dir           = "in"
             range         = "(2, 0)"
             stick_low     = "1"
             bus_interface = "AXI4L_S0"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axi_rvalid_o"
             name          = "axi_rvalid_o"
             dir           = "out"
             dangling      = "INTERFACE != 'AXI4L' or IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"
             bus_interface = "AXI4L_S0"             
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axi_rready_i"
             name          = "axi_rready_i"
             dir           = "in"
             stick_low     = "INTERFACE != 'AXI4L' or IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"
             bus_interface = "AXI4L_S0"             
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axi_rdata_o"
             name          = "axi_rdata_o"
             dir           = "out"
             range         = "(IF_DATA_WIDTH-1, 0)"
             dangling      = "INTERFACE != 'AXI4L' or IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"
             bus_interface = "AXI4L_S0"             
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "axi_rresp_o"
             name          = "axi_rresp_o"
             dir           = "out"
             range         = "(1, 0)"
             dangling      = "INTERFACE != 'AXI4L' or IP_OPTION == 'SGMII(LVDS) only' or IP_OPTION == 'SGMII(SerDes) only'"
             bus_interface = "AXI4L_S0"             
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "mii_gmii_rxd_i"
             name          = "mii_gmii_rxd_i"
             dir           = "in"
             range         = "(7, 0)"
             stick_low     = "(MII_GMII == 0) or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "mii_gmii_rx_dv_i"
             name          = "mii_gmii_rx_dv_i"
             dir           = "in"
             stick_low     = "(MII_GMII == 0) or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "mii_gmii_rx_er_i"
             name          = "mii_gmii_rx_er_i"
             dir           = "in"
             stick_low     = "(MII_GMII == 0) or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "mii_gmii_txd_o"
             name          = "mii_gmii_txd_o"
             dir           = "out"
             range         = "(7, 0)"
             dangling      = "(MII_GMII == 0) or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "mii_gmii_tx_en_o"
             name          = "mii_gmii_tx_en_o"
             dir           = "out"
             dangling      = "(MII_GMII == 0) or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "mii_gmii_tx_er_o"
             name          = "mii_gmii_tx_er_o"
             dir           = "out"
             dangling      = "(MII_GMII == 0) or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "gmii_txd_o"
             name          = "gmii_txd_o"
             dir           = "out"
             range         = "(7, 0)"
             dangling      = "IP_OPTION != 'MAC only' or (GBE_MAC != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "gmii_tx_en_o"
             name          = "gmii_tx_en_o"
             dir           = "out"
             dangling      = "IP_OPTION != 'MAC only' or (GBE_MAC != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "gmii_tx_er_o"
             name          = "gmii_tx_er_o"
             dir           = "out"
             dangling      = "IP_OPTION != 'MAC only' or (GBE_MAC != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "gmii_rxd_i"
             name          = "gmii_rxd_i"
             dir           = "in"
             range         = "(7, 0)"
             stick_low     = "IP_OPTION != 'MAC only' or (GBE_MAC != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "gmii_rx_dv_i"
             name          = "gmii_rx_dv_i"
             dir           = "in"
             stick_low     = "IP_OPTION != 'MAC only' or (GBE_MAC != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "gmii_rx_er_i"
             name          = "gmii_rx_er_i"
             dir           = "in"
             stick_low     = "IP_OPTION != 'MAC only' or (GBE_MAC != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "sgmii_txd_o"
             name          = "sgmii_txd_o"
             dir           = "out"
             range         = "(7, 0)"
             dangling      = "IP_OPTION != 'MAC only' or (SGMII_TSMAC != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "sgmii_tx_en_o"
             name          = "sgmii_tx_en_o"
             dir           = "out"
             dangling      = "IP_OPTION != 'MAC only' or (SGMII_TSMAC != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "sgmii_tx_er_o"
             name          = "sgmii_tx_er_o"
             dir           = "out"
             dangling      = "IP_OPTION != 'MAC only' or (SGMII_TSMAC != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "sgmii_rxd_i"
             name          = "sgmii_rxd_i"
             dir           = "in"
             range         = "(7, 0)"
             stick_low     = "IP_OPTION != 'MAC only' or (SGMII_TSMAC != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "sgmii_rx_dv_i"
             name          = "sgmii_rx_dv_i"
             dir           = "in"
             stick_low     = "IP_OPTION != 'MAC only' or (SGMII_TSMAC != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "sgmii_rx_er_i"
             name          = "sgmii_rx_er_i"
             dir           = "in"
             stick_low     = "IP_OPTION != 'MAC only' or (SGMII_TSMAC != 1 or SINGLE_CLK_SOL != 1)"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rmii_rxd_i"
             name          = "rmii_rxd_i"
             dir           = "in"
             range         = "(1, 0)"
             stick_low     = "(RMII == 0) or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rmii_rx_er_i"
             name          = "rmii_rx_er_i"
             dir           = "in"
             stick_low     = "(RMII == 0) or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rmii_rx_crs_dv_i"
             name          = "rmii_rx_crs_dv_i"
             dir           = "in"
             stick_low     = "(RMII == 0) or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rmii_txd_o"
             name          = "rmii_txd_o"
             dir           = "out"
             range         = "(1, 0)"
             dangling      = "(RMII == 0) or IP_OPTION != 'MAC only'"
/>
<lsccip:port conn_mod      = "mac_phy_top"
             conn_port     = "rmii_tx_en_o"
             name          = "rmii_tx_en_o"
             dir           = "out"
             dangling      = "(RMII == 0) or IP_OPTION != 'MAC only'"
/>
<!-- SGMII inputs -->
    <lsccip:port name      = "debug_link_timer_short_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "debug_link_timer_short_i"
                 stick_low = "IP_OPTION == 'MAC only'"
    />
    <lsccip:port name      = "mr_adv_ability_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "mr_adv_ability_i"
                 range     = "(15, 0)"
                 stick_low = "IP_OPTION == 'MAC only'"
    />
    <lsccip:port name      = "mr_an_enable_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "mr_an_enable_i"
                 stick_low = "IP_OPTION == 'MAC only'"
    />
    <lsccip:port name      = "mr_main_reset_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "mr_main_reset_i"
                 stick_low = "IP_OPTION == 'MAC only'"
    />
    <lsccip:port name      = "mr_restart_an_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "mr_restart_an_i"
                 stick_low = "IP_OPTION == 'MAC only'"
    />
    <lsccip:port name      = "force_isolate_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "force_isolate_i"
                 stick_low = "IP_OPTION == 'MAC only'"
    />
    <lsccip:port name      = "force_loopback_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "force_loopback_i"
                 stick_low = "IP_OPTION == 'MAC only'"
    />
    <lsccip:port name      = "operational_rate_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "operational_rate_i"
                 range     = "(1, 0)"
                 stick_low = "IP_OPTION == 'MAC only'"
    />
    <lsccip:port name      = "force_unidir_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "force_unidir_i"
                 stick_low = "IP_OPTION == 'MAC only'" 
    />
    <lsccip:port name      = "cdr_refclk_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "cdr_refclk_i"
                 stick_low = "not USE_CDR_REFCLK_IN"
                 
    />
    
    <!-- SGMII outputs -->
    <lsccip:port name      = "pll_refclk_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "pll_refclk_i"
                 stick_low = "USE_EXT_PLL or not LVDS_PORTS"
    />   
    <lsccip:port name      = "an_link_ok_o"
                 dir       = "out"
                 conn_mod  = "mac_phy_top"
                 conn_port = "an_link_ok_o"
                 dangling  = "IP_OPTION == 'MAC only'"
    />
    <lsccip:port name      = "tx_an_link_ok_o"
                 dir       = "out"
                 conn_mod  = "mac_phy_top"
                 conn_port = "tx_an_link_ok_o"
                 dangling  = "IP_OPTION == 'MAC only'"
    />
    <lsccip:port name      = "mr_an_complete_o"
                 dir       = "out"
                 conn_mod  = "mac_phy_top"
                 conn_port = "mr_an_complete_o"
                 dangling  = "IP_OPTION == 'MAC only'"
    />
    <lsccip:port name      = "mr_page_rx_o"
                 dir       = "out"
                 conn_mod  = "mac_phy_top"
                 conn_port = "mr_page_rx_o"
                 dangling  = "IP_OPTION == 'MAC only'"
    />
    <lsccip:port name      = "mr_lp_adv_ability_o"
                 dir       = "out"
                 conn_mod  = "mac_phy_top"
                 conn_port = "mr_lp_adv_ability_o"
                 range     = "(15, 0)"
                 dangling  = "IP_OPTION == 'MAC only'"
    />
    <lsccip:port name      = "pcs_usr_clk_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "pcs_usr_clk_i"
                 stick_low = "not AVANT_SGMII_PORTS"
    />
    <lsccip:port name      = "usr_clk_o"
                 dir       = "out"
                 conn_mod  = "mac_phy_top"
                 conn_port = "usr_clk_o"
                 dangling  = "IP_OPTION == 'MAC only'"
    />
    <lsccip:port name      = "usr_clk_ready_o"
                 dir       = "out"
                 conn_mod  = "mac_phy_top"
                 conn_port = "usr_clk_ready_o"
                 dangling  = "IP_OPTION == 'MAC only'"
    />
    <lsccip:port name      = "clk_125m_pll_o"
                 dir       = "out"
                 conn_mod  = "mac_phy_top"
                 conn_port = "clk_125m_pll_o"
                 dangling  = "USE_CDR_REFCLK_IN == 0 or USE_EXT_PLL or IP_OPTION == 'SGMII(SerDes) only'"
    />
    <!-- Serial inputs -->
    <lsccip:port name      = "ser_rx_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "ser_rx_i"
                 stick_low = "not LVDS_PORTS"
    />
    <!-- Serial outputs -->
    <lsccip:port name      = "clk_gddr_o"
                 dir       = "out"
                 conn_mod  = "mac_phy_top"
                 conn_port = "clk_gddr_o"
                 dangling  = "not LVDS_PORTS"
    />
    <lsccip:port name      = "ser_tx_o"
                 dir       = "out"
                 conn_mod  = "mac_phy_top"
                 conn_port = "ser_tx_o"
                 dangling  = "not LVDS_PORTS"
    />

    <lsccip:port name      = "clk_125m_pll_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "clk_125m_pll_i"
                 stick_low = "not USE_EXT_PLL or IP_OPTION == 'SGMII(SerDes) only'"
    />
    <lsccip:port name      = "clk_625m_pll_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "clk_625m_pll_i"
                 stick_low = "not USE_EXT_PLL or IP_OPTION == 'SGMII(SerDes) only'"
    />
    <lsccip:port name      = "clk_625m_90_pll_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "clk_625m_90_pll_i"
                 stick_low = "not USE_EXT_PLL or IP_OPTION == 'SGMII(SerDes) only'"
    />
    <lsccip:port name      = "pll_lock_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "pll_lock_i"
                 stick_low = "not USE_EXT_PLL or IP_OPTION == 'SGMII(SerDes) only'"
    />
    <lsccip:port name      = "epcs_clkin_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "epcs_clkin_i"
                 stick_low = "not CPNX_SGMII_PORTS"
    />
    <lsccip:port name      = "sdq_refclkp_q0_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "sdq_refclkp_q0_i"
                 stick_low = "not (MPCS_PMA_CLK_SEL == 0 or MPCS_PMA_CLK_SEL == 1) or (not CPNX_SGMII_PORTS)"
    />
    <lsccip:port name      = "sdq_refclkn_q0_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "sdq_refclkn_q0_i"
                 stick_low = "not (MPCS_PMA_CLK_SEL == 0 or MPCS_PMA_CLK_SEL == 1) or (not CPNX_SGMII_PORTS)"
    />
    <lsccip:port name      = "sdq_refclkp_q1_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "sdq_refclkp_q1_i"
                 stick_low = "not (MPCS_PMA_CLK_SEL == 0 or MPCS_PMA_CLK_SEL == 1) or (not CPNX_SGMII_PORTS)"
    />
    <lsccip:port name      = "sdq_refclkn_q1_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "sdq_refclkn_q1_i"
                 stick_low = "not (MPCS_PMA_CLK_SEL == 0 or MPCS_PMA_CLK_SEL == 1) or (not CPNX_SGMII_PORTS)"
    />
    <lsccip:port name      = "sd0rxp_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "sd0rxp_i"
                 stick_low = "not CPNX_SGMII_PORTS"
    />
    <lsccip:port name      = "sd0rxn_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "sd0rxn_i"
                 stick_low = "not CPNX_SGMII_PORTS"
    />
    <lsccip:port name      = "sd0txp_o"
                 dir       = "out"
                 conn_mod  = "mac_phy_top"
                 conn_port = "sd0txp_o"
                 dangling  = "not CPNX_SGMII_PORTS"
    />    
    <lsccip:port name      = "sd0txn_o"
                 dir       = "out"
                 conn_mod  = "mac_phy_top"
                 conn_port = "sd0txn_o"
                 dangling  = "not CPNX_SGMII_PORTS"
    />
    <lsccip:port name        = "use_refmux_i"
                 dir         = "in"
                 conn_mod    = "mac_phy_top"
                 conn_port   = "use_refmux_i"
                 stick_low   = "(MPCS_PMA_CLK_SEL == 1) or 
                                (not (MPCS_PMA_CLK_SEL in {0,2,3,4,5,6})) or 
                                (not CPNX_SGMII_PORTS)"
                 stick_high  = "(MPCS_PMA_CLK_SEL in {2,3,4,5,6})"
    />
    <lsccip:port name        = "diffioclksel_i"
                 dir         = "in"
                 conn_mod    = "mac_phy_top"
                 conn_port   = "diffioclksel_i"
                 stick_low   = "(MPCS_PMA_CLK_SEL in {1,2,4,5,6}) or 
                                (not (MPCS_PMA_CLK_SEL in {0,3})) or 
                                (not CPNX_SGMII_PORTS)"
                 stick_high  = "(MPCS_PMA_CLK_SEL == 3)"
    />
    <lsccip:port name        = "clksel_i"
                 dir         = "in"
                 conn_mod    = "mac_phy_top"
                 conn_port   = "clksel_i"
                 range       = "(1, 0)"
                 stick_value  = "get_pcsrefclk_value(MPCS_PMA_CLK_SEL,CPNX_SGMII_PORTS)"
    />
    <lsccip:port name      = "sd_ext_0_refclk_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "sd_ext_0_refclk_i"
                 stick_low = "not (MPCS_PMA_CLK_SEL == 0 or MPCS_PMA_CLK_SEL == 2) or (not CPNX_SGMII_PORTS)"
    />
    <lsccip:port name      = "sd_ext_1_refclk_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "sd_ext_1_refclk_i"
                 stick_low = "not (MPCS_PMA_CLK_SEL == 0 or MPCS_PMA_CLK_SEL == 3) or (not CPNX_SGMII_PORTS)"
    />
    <lsccip:port name      = "pll_0_refclk_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "pll_0_refclk_i"
                 stick_low = "not (MPCS_PMA_CLK_SEL == 0 or MPCS_PMA_CLK_SEL == 4) or (not CPNX_SGMII_PORTS)"
    />
    <lsccip:port name      = "pll_1_refclk_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "pll_1_refclk_i"
                 stick_low = "not (MPCS_PMA_CLK_SEL == 0 or MPCS_PMA_CLK_SEL == 5) or (not CPNX_SGMII_PORTS)"
    />
    <lsccip:port name      = "sd_pll_refclk_i"
                 dir       = "in"
                 conn_mod  = "mac_phy_top"
                 conn_port = "sd_pll_refclk_i"
                 stick_low = "not (MPCS_PMA_CLK_SEL == 0 or MPCS_PMA_CLK_SEL == 6) or (not CPNX_SGMII_PORTS)"
    />
    <lsccip:port name          = "mpcs_lmmi_request_i"
                 dir           = "in"
                 conn_mod      = "mac_phy_top"
                 conn_port     = "mpcs_lmmi_request_i"
                 stick_low     = "not CPNX_SGMII_PORTS"
                 bus_interface = "MPCS_LMMI_S0"
    />
    <lsccip:port name          = "mpcs_lmmi_wr_rdn_i"
                 dir           = "in"
                 conn_mod      = "mac_phy_top"
                 conn_port     = "mpcs_lmmi_wr_rdn_i"
                 stick_low     = "not CPNX_SGMII_PORTS"
                 bus_interface = "MPCS_LMMI_S0"
    />
    <lsccip:port name          = "mpcs_lmmi_offset_i"
                 dir           = "in"
                 conn_mod      = "mac_phy_top"
                 conn_port     = "mpcs_lmmi_offset_i"
                 range         = "(8, 0)"
                 stick_low     = "not CPNX_SGMII_PORTS"
                 bus_interface = "MPCS_LMMI_S0"
    />
    <lsccip:port name          = "mpcs_lmmi_wdata_i"
                 dir           = "in"
                 conn_mod      = "mac_phy_top"
                 conn_port     = "mpcs_lmmi_wdata_i"
                 range         = "(7, 0)"
                 stick_low     = "not CPNX_SGMII_PORTS"
                 bus_interface = "MPCS_LMMI_S0"
    />
    <lsccip:port name          = "mpcs_lmmi_rdata_o"
                 dir           = "out"
                 conn_mod      = "mac_phy_top"
                 conn_port     = "mpcs_lmmi_rdata_o"
                 range         = "(7, 0)"
                 dangling      = "not CPNX_SGMII_PORTS"
                 bus_interface = "MPCS_LMMI_S0"
    />
    <lsccip:port name          = "mpcs_lmmi_rdata_valid_o"
                 dir           = "out"
                 conn_mod      = "mac_phy_top"
                 conn_port     = "mpcs_lmmi_rdata_valid_o"
                 dangling      = "not CPNX_SGMII_PORTS"
                 bus_interface = "MPCS_LMMI_S0"
    />
    <lsccip:port name          = "mpcs_lmmi_ready_o"
                 dir           = "out"
                 conn_mod      = "mac_phy_top"
                 conn_port     = "mpcs_lmmi_ready_o"
                 dangling      = "not CPNX_SGMII_PORTS"
                 bus_interface = "MPCS_LMMI_S0"
    />
    <lsccip:port name          ="tx_clk_mii_i" 
                 dir           ="in" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="tx_clk_mii_i"
                 stick_low     ="not SGMII_ALONE_PORTS"    
    />
    <lsccip:port name          ="tx_d_i" 
                 dir           ="in" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="tx_d_i" 
                 range         ="(7, 0)"
                 stick_low     ="not SGMII_ALONE_PORTS"
    />
    <lsccip:port name          ="tx_en_i" 
                 dir           ="in" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="tx_en_i"
                 stick_low     ="not SGMII_ALONE_PORTS"
    />
    
    <lsccip:port name          ="tx_er_i" 
                 dir           ="in" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="tx_er_i"
                 stick_low     ="not SGMII_ALONE_PORTS"
    />
    
    <lsccip:port name          ="rx_clk_mii_i" 
                 dir           ="in" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="rx_clk_mii_i"
                 stick_low     ="not SGMII_ALONE_PORTS"
    />
    
    <lsccip:port name          ="rx_d_o" 
                 dir           ="out" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="rx_d_o" 
                 range         ="(7, 0)"
                 dangling      ="not SGMII_ALONE_PORTS"
    />
    
    <lsccip:port name          ="rx_dv_o" 
                 dir           ="out" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="rx_dv_o"
                 dangling      ="not SGMII_ALONE_PORTS"
    />
    
    <lsccip:port name          ="rx_er_o" 
                 dir           ="out" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="rx_er_o"
                 dangling      ="not SGMII_ALONE_PORTS"
    />
    <lsccip:port name          ="col_o" 
                 dir           ="out" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="col_o"
                 dangling      ="not SGMII_ALONE_PORTS"
    />
    
    <lsccip:port name          ="crs_o" 
                 dir           ="out" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="crs_o" 
                 dangling      ="not SGMII_ALONE_PORTS"
    />
    
    <lsccip:port name          ="tx_clock_enable_sink_i" 
                 dir           ="in" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="tx_clock_enable_sink_i" 
                 stick_low     ="(GMII_STYLE == 0) or (not SGMII_ALONE_PORTS)"
    />
    
    <lsccip:port name          ="tx_clock_enable_source_o"
                 dir           ="out"
                 conn_mod      ="mac_phy_top"
                 conn_port     ="tx_clock_enable_source_o"
                 dangling      ="(GMII_STYLE == 0) or (not SGMII_ALONE_PORTS)"
    />
    
    <lsccip:port name          ="rx_clock_enable_sink_i" 
                 dir           ="in" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="rx_clock_enable_sink_i" 
                 stick_low     ="(GMII_STYLE == 0) or (not SGMII_ALONE_PORTS)"
    />
    
    <lsccip:port name          ="rx_clock_enable_source_o" 
                 dir           ="out" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="rx_clock_enable_source_o" 
                 dangling      ="(GMII_STYLE == 0) or (not SGMII_ALONE_PORTS)"
    />
    
    <lsccip:port name          = "mpphy_lmmi_request_i"
                 dir           = "in"
                 conn_mod      = "mac_phy_top"
                 conn_port     = "mpphy_lmmi_request_i"
                 stick_low     = "not AVANT_SGMII_PORTS"
                 bus_interface = "MPPHY_LMMI_S0"
    />
    <lsccip:port name          = "mpphy_lmmi_wr_rdn_i"
                 dir           = "in"
                 conn_mod      = "mac_phy_top"
                 conn_port     = "mpphy_lmmi_wr_rdn_i"
                 stick_low     = "not AVANT_SGMII_PORTS"
                 bus_interface = "MPPHY_LMMI_S0"
    />
    <lsccip:port name          = "mpphy_lmmi_offset_i"
                 dir           = "in"
                 conn_mod      = "mac_phy_top"
                 conn_port     = "mpphy_lmmi_offset_i"
                 range         = "(15, 0)"
                 stick_low     = "not AVANT_SGMII_PORTS"
                 bus_interface = "MPPHY_LMMI_S0"
    />
    <lsccip:port name          = "mpphy_lmmi_wdata_i"
                 dir           = "in"
                 conn_mod      = "mac_phy_top"
                 conn_port     = "mpphy_lmmi_wdata_i"
                 range         = "(15, 0)"
                 stick_low     = "not AVANT_SGMII_PORTS"
                 bus_interface = "MPPHY_LMMI_S0"
    />
    <lsccip:port name          = "mpphy_lmmi_rdata_o"
                 dir           = "out"
                 conn_mod      = "mac_phy_top"
                 conn_port     = "mpphy_lmmi_rdata_o"
                 range         = "(15, 0)"
                 dangling      = "not AVANT_SGMII_PORTS"
                 bus_interface = "MPPHY_LMMI_S0"
    />
    <lsccip:port name          = "mpphy_lmmi_rdata_valid_o"
                 dir           = "out"
                 conn_mod      = "mac_phy_top"
                 conn_port     = "mpphy_lmmi_rdata_valid_o"
                 dangling      = "not AVANT_SGMII_PORTS"
                 bus_interface = "MPPHY_LMMI_S0"
    />
    <lsccip:port name          = "mpphy_lmmi_ready_o"
                 dir           = "out"
                 conn_mod      = "mac_phy_top"
                 conn_port     = "mpphy_lmmi_ready_o"
                 dangling      = "not AVANT_SGMII_PORTS"
                 bus_interface = "MPPHY_LMMI_S0"
    />
    <lsccip:port name          ="tx_pma_rdy_o" 
                 dir           ="out" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="tx_pma_rdy_o" 
                 dangling      ="not AVANT_SGMII_PORTS"
    />
    <lsccip:port name          ="rx_pma_rdy_o" 
                 dir           ="out" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="rx_pma_rdy_o" 
                 dangling      ="not AVANT_SGMII_PORTS"
    />
    <lsccip:port name          ="mpphy_rx_gclk_o" 
                 dir           ="out" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="mpphy_rx_gclk_o" 
                 dangling      ="not AVANT_SGMII_PORTS"
    />
    <lsccip:port name          ="mpphy_tx_gclk_o" 
                 dir           ="out" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="mpphy_tx_gclk_o" 
                 range         = "(1, 0)"
                 dangling      ="not AVANT_SGMII_PORTS"
    />
    <lsccip:port name          ="pad_refclkp_i" 
                 dir           ="in" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="pad_refclkp_i" 
                 stick_low     ="not AVANT_SGMII_PORTS"
    />
    <lsccip:port name          ="pad_refclkn_i" 
                 dir           ="in" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="pad_refclkn_i" 
                 stick_low     ="not AVANT_SGMII_PORTS"
    />
    <lsccip:port name          ="pad_txp_o" 
                 dir           ="out" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="pad_txp_o" 
                 dangling      ="not AVANT_SGMII_PORTS"
    />
    <lsccip:port name          ="pad_txn_o" 
                 dir           ="out" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="pad_txn_o" 
                 dangling      ="not AVANT_SGMII_PORTS"
    />
    <lsccip:port name          ="pad_rxp_i" 
                 dir           ="in" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="pad_rxp_i" 
                 stick_low     ="not AVANT_SGMII_PORTS"
    />
    <lsccip:port name          ="pad_rxn_i" 
                 dir           ="in" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="pad_rxn_i" 
                 stick_low     ="not AVANT_SGMII_PORTS"
    />
    <lsccip:port name          ="mpphy_pma_rx0_sigdet_hf_o" 
                 dir           ="out" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="mpphy_pma_rx0_sigdet_hf_o" 
                 dangling      ="not (AVANT_SGMII_PORTS and RX_LOSS_PORT_EN)"
    />
    <lsccip:port name          ="mpphy_pma_rx0_sigdet_lf_o" 
                 dir           ="out" 
                 conn_mod      ="mac_phy_top" 
                 conn_port     ="mpphy_pma_rx0_sigdet_lf_o" 
                 dangling      ="not (AVANT_SGMII_PORTS and RX_LOSS_PORT_EN)"
    />
    
    
    <!-- External PLL inputs -->
</lsccip:ports>
  <lsccip:outFileConfigs>
    <lsccip:fileConfig name="wrapper" file_suffix="sv" file_description="top_level_system_verilog"></lsccip:fileConfig>
  </lsccip:outFileConfigs> 
<xi:include href="bus_interface.xml" parse="xml" />
<xi:include href="memory_map.xml" parse="xml" />
    <lsccip:componentGenerators>
        <lsccip:componentGenerator>
            <lsccip:name>sgmii_sim_setup</lsccip:name>
            <lsccip:generatorExe>eval/sgmii_eval/sgmii_sim_setup.py</lsccip:generatorExe>
        </lsccip:componentGenerator>
		<lsccip:componentGenerator>
            <lsccip:name>tse_constraint_setup</lsccip:name>
            <lsccip:generatorExe>eval/tse_constraint_setup.py</lsccip:generatorExe>
        </lsccip:componentGenerator>
		<lsccip:componentGenerator>
            <lsccip:name>tse_constraint_extra10percent_setup</lsccip:name>
            <lsccip:generatorExe>eval/constraint/tse_constraint_extra10percent_setup.py</lsccip:generatorExe>
        </lsccip:componentGenerator>
    </lsccip:componentGenerators>                             
</lsccip:ip>

