您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > 数据库 > SignalTapII_lab
SignalTapIILab(NiosDevelopmentBoard)ExercisesAcceleratingDesignCycleswithQuartusIICopyright©2005AlteraCorporationA-MNL-ADV-QUARTUSII-EX-042AcceleratingDesignCycleswithQuartusIIExercisesCopyright©2005AlteraCorporationA-MNL-ADV-QUARTUSII-EX-043PartI:InitialCompilationDescriptionThecircuit(seebelow)consistsoftwo4-bitcounters(CNT_ONEandCNT_TEN),cascadedtodriveapairofseven-segmentLEDsthatcountfrom0to99.Theoutputofeachcounterfeedsaseven-segmentdisplaydecoder.EachcounteroutputalsogoestoanANDgatethatresetsthecounterto0afterreaching9(NineorNinety).“Nine”isalsousedasthecarryoutputfromCNT_ONEtoincrementCNT_TENExercisesAcceleratingDesignCycleswithQuartusIICopyright©2005AlteraCorporationA-MNL-ADV-QUARTUSII-EX-044Step1:ConnectNiosDevelopmentBoard1.TakeoutyourNiosStratixorCyclonedevelopmentboardandconnectthepowersupply.2.ConnecttheUSBBlaster(USBport)orByteBlasterII(parallelport)toyourPCorlaptop.3.Connectthe10-pinfemaleconnectoroftheUSBBlasterorByteBlasterIIdownloadcabletothedevelopmentboard.Youwillfindthe10-pinheadernearthetopleftcorneroftheboard.Step2:OpenProject“counter”&CompileDesign1.FromtheQuartusIIFilemenu,selectOpenProject.Browsetoinstall_directory\AdvQII4_2\SignalTapII\Nios\Exercisesandselectcounter.qpf.2.IntheProjectmenu,selectRevisions.Inthedialogbox,highlightcounter_stratix,counter_stratix_esorcounter_cyclonebasedonyourNioskitanddevice.Ifyourrevisionisnotchecked,clicktheSetCurrentbuttontoplacethecheckmarknexttothecorrectrevision.ClickClose.Note:IfyouhaveaNiosStratixboard,beawareitmayhaveanEP1S10oranEP1S10-ESdevice.Lookattheendofthepartnumbertoverify.3.SelectStartCompilationfromtheProcessingmenuorpressthetoolbarbutton.ClickOKwhenfinished.Step3:ConfigureStratixdeviceusingQuartusIIprogrammer1.Opentheprogrammer.FromtheToolsmenu,selectProgrammerorclickthetoolbarbutton.Thisopensachaindescriptionfile(CDF).Thecorrectconfigurationfile(counter_stratix_es.sof,counter_stratix.soforcounter_cyclone.sof)anddeviceforyourselectedrevisionandNiosboardareautomaticallyselectedbyQuartusII.2.Setuphardware.AtthetopoftheCDFfile,theUSBBlasterorByteBlasterII(whicheveryouareusing)shouldbetheselectedhardware.Ifso,skipto#4.3.ClickontheHardwareSetupbuttontoopentheHardwareSetupdialogbox.HighlightUSB-BlasterorByteBlasterIIandclickontheSelectHardwarebutton.ClosetheHardwareSetupdialogbox.AcceleratingDesignCycleswithQuartusIIExercisesCopyright©2005AlteraCorporationA-MNL-ADV-QUARTUSII-EX-0454.SetJTAGmode.IntheCDFfile,settheModetoJTAG.5.EnabletheProgram/Configureoptioncheckboxforthesoffile.YourCDFshouldlookasabove.6.ClickontheStartProgrammingbutton.Step4:ExamineBehaviorObservetheLED’sonthedemoboard.Thedesignshouldcountsequentiallyfrom0to99.However,youwillnoticethatthe‘nine’doesnotshowup.WewilluseSignalTapIItoinvestigatethisproblemfurther.ExercisesAcceleratingDesignCycleswithQuartusIICopyright©2005AlteraCorporationA-MNL-ADV-QUARTUSII-EX-046PartII:UsingSignalTapIItoDebugtheDesignStep1:CompileExistingProjectwithSignalTapII1.CreateaNewSignalTapIIFilea.ChooseSignalTapIILogicAnalyzer(Toolsmenu)b.SaveFileascounter.stp(FileSaveAs)c.ClickOKthattheinputdataandtriggerareempty.d.AnswerYesthatyoudowanttoenablecounter.stpastheSignalTapIIfileforcurrentproject.2.CreateTwoInstancesa.IntheInstanceManagercreateanewinstance.(Right-mouseclickCreateInstance)Youwillnownoticetwoinstancesintheinstancemanager.ThefirstinstancewillbeusedtomanagethesignalsthatdrivetheONESdigitLED.ThesecondinstancewillbeusedtomanagetheTENSdigitLED.b.Right-clickoneachofthetwoSignalTapIIinstancesandRenamethemtoinstance_oneandinstance_ten,respectively.AcceleratingDesignCycleswithQuartusIIExercisesCopyright©2005AlteraCorporationA-MNL-ADV-QUARTUSII-EX-0473.ConfiguretheELA(embeddedlogicanalyzer)instance_onea.SelectNodesForAnalysisi.Doubleclickinstance_onetomakeittheactiveinstanceii.DoubleclickanywhereintheData/SetupwindowtoopentheNodeFinderiii.SettheNodeFinderfiltertoSignalTapII:pre-synthesisiv.ClickontheListbutton.v.Locatethe‘ONE_SEG’bus.Double-clickonittomoveittotheSelectedNodeswindowandclickOKThesesignalsallowustoexaminethedatadriventotheLEDs.Thiswillhelpusindeterminingwhythe‘nine’ismissing.b.ImportMnemonicTableWecancreateamnemonictabletohelpusinterpretthesevensegmentdisplayinputdata.Tosavesometimeinthisexercise,however,wewillimportapreviouslycreatedtablefromanexistingSignalTapfile.i.ChooseMnemonicTableSetup(Right-clickintheData/Setupwindow)ii.SelectImportTableiii.Choosethefilecounter_with_table.stpandclickOpen.iv.Selectthetablenamed‘Counter’toimport.ExercisesAcceleratingDesignCycleswithQuartusIICopyright©2005AlteraCorporationA-MNL-ADV-QUARTUSII-EX-048v.Afterimportyourwindowshouldasabove.(SelectOK.)c.SettheSignalConfigurationsettingsforinstance_onei.SettheAcquisitionClocktoCLOCK.UsethebrowsebuttontolaunchtheNodeFinder.Note:Makesuretodelete|counter|intheLookindrop-downfieldoftheNodeFinder.ii.SettheSampleDepthto1Kiii.LeavetheRamTypetoM4K.IfusingtheCycloneboard,thisshouldreadAuto.iv.SettheDataNodesAllocatedoptiontoAutov.SettheTriggerLevelsto10vi.SettheTriggerNodesAllocatedoptiontoAutoAccelerating
本文标题:SignalTapII_lab
链接地址:https://www.777doc.com/doc-3352875 .html