ExerciseManualforQuartus®IISoftwareDesignSeries:FoundationSoftwareRequirementstocompleteallexercisesQuartusIIsoftwareversion11.1ExercisesQuartusIISoftwareDesignSeries:FoundationCopyright©2012AlteraCorporation2Exercise1QuartusIISoftwareDesignSeries:FoundationExercisesCopyright©2012AlteraCorporation3Exercise1Objectives:CreateaprojectusingtheNewProjectWizardNametheprojectPickadeviceNote:Intheseexercises,you’llcreateabrandnewprojectandcompleteanexistingdesign.You’llhavethechoiceofcreatingthedesignusingthreedifferenttypesofdesignentry:Verilog,VHDL,orasaQuartusIIschematic.Wherenoted,besuretoonlyfollowtheinstructionsappropriateforyourchoiceofdesignentrymethod.Bytheendoftheclass,you’llhaveafinal,optimizeddesign,readyforprogrammingintoaCyclone®IIIFPGAdevice.Besuretocompletelyreadtheinstructionsforeachstepandsub-stepinthislabmanual.Eachstepfirstsummarizeswhatyou’llbedoinginthatstepbeforeprovidingcompleteinstructions.Usethelinesnexttoeachstep(____)tokeeptrackofyourprogressortocheckoffcompletedstepsintheexercises.Ifyouhaveanyquestionsorproblems,pleaseasktheinstructorforassistance.ExercisesQuartusIISoftwareDesignSeries:FoundationCopyright©2012AlteraCorporation4Step1:Createnewprojectforuseinthelabexercises____1.Unzipthelabprojectfiles.Double-clicktheexecutablefilefoundinthe.zipfileyoudownloaded.IntheWinZipdialogbox,clickUnziptoautomaticallyextractthefilesinplacetoanewfoldernamedC:\altera_trn\Quartus_II_Software_Design_Series_Foundation\QIIF11_1_OLT.CloseWinZip.____2.StarttheQuartusIIsoftware.IntheWindowsStartmenufromtheAllProgramslist,gototheAlterafolderandthentheQuartusII11.1folder.ClickQuartusII11.1tostarttheprogram.Theremayalsobeashortcutonthedesktop.____3.StarttheNewProjectWizard.YoucanopenitfromtheGettingStartedWithQuartusIISoftwarewelcomedialogthatappears.Ifyou’veclosedthiswindow,intheTaskswindowontheleftsideoftheQuartusIIinterface,expandtheStartProjectfolderanddouble-clickOpenNewProjectWizard.YoucanalsoselectNewProjectWizard…fromtheFilemenu.TheNewProjectWizardappears.IftheIntroductionscreenappears,readitandclickNext.____4.CompletetheNewProjectWizardtocreatetheproject.SelectoneoftheworkingdirectoriesshowninTable1dependingonthetypeofdesignentryyouwanttouse.Nametheprojectpipemultandleavethetoplevelentitynamepipemult.Table1.Settingsforpage1ofNewProjectWizard____5.ClickNexttoadvancetopage2.workingdirectorylab_install_directory\QIIF11_1_OLT\Ex1\VHDLlab_install_directory\QIIF11_1_OLT\Ex1\Veriloglab_install_directory\QIIF11_1_OLT\Ex1\Schematicnameofprojectpipemulttop-leveldesignentitypipemultQuartusIISoftwareDesignSeries:FoundationExercisesCopyright©2012AlteraCorporation5____6.Onpage2,clickthebrowsebuttonandselectthetop-levelfilepipemult(.v,.vhd,or.bdf,dependingonthedesignentrymethodyouchosein#4).Itshouldalreadybelocatedintheprojectdirectory,ifnot,navigatetotheprojectdirectory.AfterclickingOpen,clickAddtoaddthefiletotheproject.ClickNext.Notethatthisstepisn’treallynecessarysincethedesignfileisalreadylocatedintheprojectworkingdirectory.Thenewprojectwouldautomaticallyincludethedesignfileaspartoftheproject.Filesorfiledirectories(libraries)onlyneedtobeaddedonpage2oftheNewProjectWizardiftheyarenotlocatedintheprojectdirectory.Addingthefiletotheprojectremovesthewarningthatthefilehasnotbeenadded.____7.Onpage3,selectCycloneIIIastheFamily.IntheShowin‘Availabledevice’listsection,setPackagetoFBGA,Pincountto256,andSpeedgradetoFastest.Thisfiltersthelistofavailabledevices.SelecttheEP3C5F256C6devicefromtheAvailabledevices:window.ClickNext.ExercisesQuartusIISoftwareDesignSeries:FoundationCopyright©2012AlteraCorporation6____8.Onpage4(above),youcanspecifythird-partyEDAtoolsyoumaybeusing.SincetheseexerciseswillbedoneentirelywithintheQuartusIIsoftwarewithoutanyothertools,clickNexttoskipthisstep.____9.Thesummaryscreenappearsasshown.ClickFinish.Theprojectisnowcreated.Keeptheprojectopenasyoucontinuethroughtheexercises.Thereisnoneedtoclosetheproject.Ifyoudoclosetheprojectforsomereason,besuretoselectOpenProjectinsteadofjustOpenfromtheFilemenu(orOpenExistingProjectfromtheTaskswindow).TheOpencommandisusedtosimplyopenasinglefileinsteadofaproject,preventingtheabilitytoperformmanyproject-basedoperations,suchascompilation.ExerciseSummaryCreatedaprojectusingtheNewProjectWizard–Namedtheproject–PickedadeviceENDOFEXERCISE1QuartusIISoftwareDesignSeries:FoundationExercisesCopyright©2012AlteraCorporation7Exercise2ExercisesQuartusIISoftwareDesignSeries:FoundationCopyright©2012AlteraCorporation8Exercise2Objectives:CreateamultiplierandRAMblockusingtheMegaWizardPlug-inManagertocompletethedesignCreateaHEXfiletoinitializetheRAMblockusingtheMemoryEditorAnalyzeandelaboratethedesigntocheckforerrorsPipelinedMultiplierDesignFigure1showsaschematicrepresentationofthetop-leveldesignfileyouwillbeusingtoday.ItconsistsofamultiplierandaRAMblock.DataisfedtothemultiplierfromanexternalsourceandstoredintheRAMblock,whichisalsocontrolledexternally.ThedataisthenreadoutoftheRAMblockbyaseparateaddresscontrol.Figure1QuartusIISoftwareDesignSeries:FoundationExercisesCopyright©2