LatticeDiamondTutorialJune2012CopyrightCopyright?2012LatticeSemiconductorCorporation.Thisdocumentmaynot,inwholeorpart,becopied,photocopied,reproduced,translated,orreducedtoanyelectronicmediumormachine-readableformwithoutpriorwrittenconsentfromLatticeSemiconductorCorporation.TrademarksLatticeSemiconductorCorporation,LLatticeSemiconductorCorporation(logo),L(stylized),L(design),Lattice(design),LSC,CleanClock,CustomMovileDevice,DiePlus,E2CMOS,ExtremePerformance,FlashBAK,FlexiClock,flexiFLASH,flexiMAC,flexiPCS,FreedomChip,GAL,GDX,GenericArrayLogic,HDLExplorer,iCEDice,iCE40,iCE65,iCEcable,iCEchip,iCEcube,iCEcube2,iCEman,iCEprog,iCEsab,iCEsocket,IPexpress,ISP,ispATE,ispClock,ispDOWNLOAD,ispGAL,ispGDS,ispGDX,ispGDX2,ispGDXV,ispGENERATOR,ispJTAG,ispLEVER,ispLeverCORE,ispLSI,ispMACH,ispPAC,ispTRACY,ispTURBO,ispVIRTUALMACHINE,ispVM,ispXP,ispXPGA,ispXPLD,LatticeDiamond,LatticeCORE,LatticeEC,LatticeECP,LatticeECP-DSP,LatticeECP2,LatticeECP2M,LatticeECP3,LatticeECP4,LatticeMico,LatticeMico8,LatticeMico32,LatticeSC,LatticeSCM,LatticeXP,LatticeXP2,MACH,MachXO,MachXO2,MACO,mobileFPGA,ORCA,PAC,PAC-Designer,PAL,PerformanceAnalyst,PlatformManager,ProcessorPM,PURESPEED,Reveal,SiliconBlue,SiliconForest,Speedlocked,SpeedLocking,SuperBIG,SuperCOOL,SuperFAST,SuperWIDE,sysCLOCK,sysCONFIG,sysDSP,sysHSI,sysI/O,sysMEM,TheSimpleMachineforComplexDesign,TraceID,TransFR,UltraMOS,andspecificproductdesignationsareeitherregisteredtrademarksortrademarksofLatticeSemiconductorCorporationoritssubsidiariesintheUnitedStatesand/orothercountries.ISP,BringingtheBestTogether,andMoreoftheBestareservicemarksofLatticeSemiconductorCorporation.Otherproductnamesusedinthispublicationareforidentificationpurposesonlyandmaybetrademarksoftheirrespectivecompanies.DisclaimersNOWARRANTIES:THEINFORMATIONPROVIDEDINTHISDOCUMENTIS“ASISWITHOUTANYEXPRESSORIMPLIEDWARRANTYOFANYKINDINCLUDINGWARRANTIESOFACCURACY,COMPLETENESS,MERCHANTABILITY,NONINFRINGEMENTOFINTELLECTUALPROPERTY,ORFITNESSFORANYPARTICULARPURPOSE.INNOEVENTWILLLATTICESEMICONDUCTORCORPORATION(LSC)ORITSSUPPLIERSBELIABLEFORANYDAMAGESWHATSOEVER(WHETHERDIRECT,INDIRECT,SPECIAL,INCIDENTAL,ORCONSEQUENTIAL,INCLUDING,WITHOUTLIMITATION,DAMAGESFORLOSSOFPROFITS,BUSINESSINTERRUPTION,ORLOSSOFINFORMATION)ARISINGOUTOFTHEUSEOFORINABILITYTOUSETHEINFORMATIONPROVIDEDINTHISDOCUMENT,EVENIFLSCHASBEENADVISEDOFTHEPOSSIBILITYOFSUCHDAMAGES.BECAUSESOMEJURISDICTIONSPROHIBITTHEEXCLUSIONORLIMITATIONOFCERTAINLIABILITY,SOMEOFTHEABOVELIMITATIONSMAYNOTAPPLYTOYOU.LSCmaymakechangestothesematerials,specifications,orinformation,ortotheproductsdescribedherein,atanytimewithoutnotice.LSCmakesnocommitmenttoupdatethisdocumentation.LSCreservestherighttodiscontinueanyproductorservicewithoutnoticeandassumesnoobligationtocorrectanyerrorscontainedhereinortoadviseanyuserofthisdocumentofanycorrectionifsuchbemade.LSCrecommendsitscustomersobtainthelatestversionoftherelevantinformationtoestablish,beforeordering,thattheinformationbeingrelieduponiscurrent.iiLatticeDiamondTutorialTypeConventionsUsedinThisDocumentConventionMeaningorUseBoldItemsintheuserinterfacethatyouselectorclick.Textthatyoutypeintotheuserinterface.Variablesincommands,codesyntax,andpathnames.Ctrl+LPressthetwokeysatthesametime.CourierCodeexamples.Messages,reports,andpromptsfromthesoftware....Omittedmaterialinalineofcode..Omittedlinesincodeandreportexamples.[]Optionalitemsinsyntaxdescriptions.Inbusspecifications,thebracketsarerequired.()Groupeditemsinsyntaxdescriptions.{}Repeatableitemsinsyntaxdescriptions.|Achoicebetweenitemsinsyntaxdescriptions.ivLatticeDiamondTutorialContentsLatticeDiamondTutorial1LearningObjectives1TimetoCompleteThisTutorial2TOC\o"1-5"\h\zSystemRequirements2AccessingOnlineHelp2AbouttheTutorialDesign2AbouttheTutorialDataFlow2Task1:CreateaNewProject4Task2:RunningAnalysisTools8Task3:InspectStrategySettings10Task4:ExamineResources11Task5:SetTimingandLocationAssignments13Task6:RunningPlaceandRoute17Task7:ExaminePostPlaceandRouteResults18Task8:AdjustStaticTimingConstraintsandReviewResults20Task9:ComparingMultiplePlaceandRouteRuns21Task10:RunningExportUtilityPrograms23Task11:DownloadaBitstreamtoanFPGA24Task12:ConvertaFileUsingDeploymentTool26