<?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>0001242567</rptOwnerCik>
            <rptOwnerName>GLASER STEVEN L</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>2207</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
    </nonDerivativeTable>

    <derivativeTable>
        <derivativeHolding>
            <securityTitle>
                <value>NQSO (Right to Buy)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>33.42</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <value>2012-02-10</value>
                <footnoteId id="F1"/>
            </exerciseDate>
            <expirationDate>
                <value>2018-02-10</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>XLNX COMMON STOCK</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>45000</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>2012-02-10</value>
                <footnoteId id="F3"/>
            </exerciseDate>
            <expirationDate>
                <value>2015-02-10</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>XLNX COMMON STOCK</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>3750</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>2000</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 25% exercisable after 1 year from the date of grant with 36 substantially equal monthly installments following the 1 year vesting anniversary. Total vesting period is over four years.</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>
    </footnotes>

    <ownerSignature>
        <signatureName>Steven L. Glaser</signatureName>
        <signatureDate>2012-05-18</signatureDate>
    </ownerSignature>
</ownershipDocument>
