<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0205</schemaVersion>

    <documentType>3</documentType>

    <periodOfReport>2012-05-09</periodOfReport>

    <noSecuritiesOwned>0</noSecuritiesOwned>

    <issuer>
        <issuerCik>0000743988</issuerCik>
        <issuerName>XILINX INC</issuerName>
        <issuerTradingSymbol>XLNX</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001550174</rptOwnerCik>
            <rptOwnerName>Rangasayee Krishna</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>2100 LOGIC DRIVE</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>SAN JOSE</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>95124</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>false</isDirector>
            <isOfficer>true</isOfficer>
            <isTenPercentOwner>false</isTenPercentOwner>
            <isOther>false</isOther>
            <officerTitle>Sr. Vice President</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeHolding>
            <securityTitle>
                <value>XLNX COMMON STOCK</value>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>2893</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
    </nonDerivativeTable>

    <derivativeTable>
        <derivativeHolding>
            <securityTitle>
                <value>NQSO (Right to Buy)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>40.11</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <value>2004-05-05</value>
                <footnoteId id="F1"/>
            </exerciseDate>
            <expirationDate>
                <value>2014-04-05</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>XLNX COMMON STOCK</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>7500</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>NQSO (Right to Buy)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>35.56</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <value>2004-07-15</value>
                <footnoteId id="F1"/>
            </exerciseDate>
            <expirationDate>
                <value>2014-06-15</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>XLNX COMMON STOCK</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>1000</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>NQSO (Right to Buy)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>28.35</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <value>2005-05-15</value>
                <footnoteId id="F1"/>
            </exerciseDate>
            <expirationDate>
                <value>2015-04-15</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>XLNX COMMON STOCK</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>1500</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>NQSO (Right to Buy)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>24.29</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <value>2008-08-01</value>
                <footnoteId id="F1"/>
            </exerciseDate>
            <expirationDate>
                <value>2015-07-01</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>XLNX COMMON STOCK</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>18000</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>Restricted Stock Unit</value>
                <footnoteId id="F2"/>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>0</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <value>2009-07-01</value>
                <footnoteId id="F3"/>
            </exerciseDate>
            <expirationDate>
                <value>2012-07-01</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>XLNX COMMON STOCK</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>500</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>NQSO (Right to Buy)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>16.5</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <value>2008-12-10</value>
                <footnoteId id="F1"/>
            </exerciseDate>
            <expirationDate>
                <value>2015-11-10</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>XLNX COMMON STOCK</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>10000</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>NQSO (Right to Buy)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>20.57</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <value>2009-08-01</value>
                <footnoteId id="F1"/>
            </exerciseDate>
            <expirationDate>
                <value>2016-07-01</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>XLNX COMMON STOCK</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>30000</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>NQSO (Right to Buy)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>24.74</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <value>2010-02-11</value>
                <footnoteId id="F1"/>
            </exerciseDate>
            <expirationDate>
                <value>2017-01-11</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>XLNX COMMON STOCK</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>15000</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>NQSO (Right to Buy)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>25.39</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <value>2010-08-06</value>
                <footnoteId id="F1"/>
            </exerciseDate>
            <expirationDate>
                <value>2017-07-06</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>XLNX COMMON STOCK</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>50000</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>NQSO (Right to Buy)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>27.42</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <value>2010-12-10</value>
                <footnoteId id="F1"/>
            </exerciseDate>
            <expirationDate>
                <value>2017-11-10</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>XLNX COMMON STOCK</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>10000</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>Restricted Stock Unit</value>
                <footnoteId id="F2"/>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>0</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <value>2014-07-05</value>
                <footnoteId id="F4"/>
            </exerciseDate>
            <expirationDate>
                <value>2014-07-05</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>XLNX COMMON STOCK</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>6000</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>Restricted Stock Unit</value>
                <footnoteId id="F2"/>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>0</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <value>2013-01-10</value>
                <footnoteId id="F3"/>
            </exerciseDate>
            <expirationDate>
                <value>2016-01-10</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>XLNX COMMON STOCK</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>5000</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">Subject to the continued employment of the reporting person through the applicable vesting date, this option is exercisable in 48 substantially equal installments beginning on the grant date. Total vesting period is over four years. Date Exercisable refers to the initial grant vesting date.</footnote>
        <footnote id="F2">Each restricted stock unit represents a contingent right to receive one share of XLNX common stock.</footnote>
        <footnote id="F3">Subject to the continued employment of the reporting person through the applicable vesting date, the restricted stock units will vest in equal installments and be settled on each of the first four anniversaries of the date of grant through the expiration date indicated. Date Exercisable refers to the initial grant vesting date.</footnote>
        <footnote id="F4">Subject to the reporting person's continued employment, the RSUs will vest on the stated date, and shares of common stock will be issued in settlement of the RSUs on the stated date.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>Krishna Rangasayee</signatureName>
        <signatureDate>2012-05-18</signatureDate>
    </ownerSignature>
</ownershipDocument>
