1. 首页
  2. 编程语言
  3. 硬件开发
  4. 使用QUARTUS II做FPGA开发全流程,傻瓜式详细教程

使用QUARTUS II做FPGA开发全流程,傻瓜式详细教程

上传者: 2018-12-25 21:10:21上传 PDF文件 2.27MB 热度 37次
使用QUARTUS II做FPGA开发全流程,傻瓜式详细教程ALBRAContentsHow to Contact alteraTypographic ConventionsIntroductionDesign FlowBefore You begin1-2What You will learn1-2Get started……gn1-6Add a Pll megafunction1-14Add a multiplexerAssign cycloIII Dend pirCompile your projectProgram the deviceVerify in hard1-43Next StepsAltera CorporationiContentsAltera CorporationMy First FPGA Design TutorialALBRAAbout this tutorialThis tutorial provides comprehensive information that will help youunderstand how to create an Altera FPGa design and run it on yourdevelopment boardHow to contact For the most up-to-date information about Altera products, refer to theAlterafollowing tableInformation TypeContact (1)Technical supportwww.altera.com/mysupport/Technical trainingwww.altera.com/training/custrain altera comProduct literaturewww.alteracom/literature/Altera literature servicesliterature altera comFTP siteftp. altera. comNote to table(1) You can also contact your local Altera sales office or sales representativeTypographicThis document uses the typographic conventions shown belowConventionsVisual cueMeaningBold Type with InitialCommand names, dialog box titles, checkbox options and dialog box options areCapital Lettersshown in bold, initial capital letters. EXample: Save As dialog boxbold typeExternal timing parameters, directory names, project names, disk drive names,filenames, filename extensions and software utility names are shown in boldtype. EXamples: fMAX, \designs directory, d: drive, chiptrip gdf fileItalic Type with Initial Capital Document titles are shown in italic type with initial capital letters. Example: ANLetters75: High-Speed Board DesignItalic typeInternal timing parameters and variables are shown in italic typeExamples: tpia, n+1Variable names are enclosed in angle brackets(< >)and shown in italic typeEXample: , . pof fileAltera CorporationTypographic ConventionsMy First FPGA Design TutorialVisual cueMeaningInitial Capital LettersKeyboard keys and menu names are shown with initial capital letters. EXamplesDelete key, the Options menu“ Subheading TitleReferences to sections within a document and titles of on-line help topics areshown in quotation marks. EXample: Typographic ConventionsCourier typeSignal and port names are shown in lowercase Courier type. Examples: dataltdi, input. Active-low signals are denoted by suffix n, e.g., resetAnything that must be typed exactly as it appears is shown in Courier type. Forexample:c:\designs\tutorial\chiptrip gdf Also, sections of anactual file, such as a Report File, references to parts of files(e.g, the AHDLkeyword SUBDESIGN), as well as logic function names(e.g, TRI)are shown inCourie1..2.3.andNumbered steps are used in a list of items when the sequence of the items isa, b, c, etcimportant, such as the steps listed in a procedureBullets are used in a list of items when the sequence of the items is not importantThe checkmark indicates a procedure that consists of one step onlyThe hand points to information that requires special attentionThe caution indicates required information that needs special consideration andunderstanding and should be read prior to starting or continuing with theCAUTIONprocedure or processThe warning indicates information that should be read prior to starting orARNINGcontinuing the procedure or processesThe angled arrow indicates you should press the Enter keyThe feet direct you to more information on a particular topicAltera CorporationALBRA1. My First FPGA DesignMay 2007IntroductionWelcome to Altera and the world of programmable logic! This tutorialwill teach you how to create a simple FpGa design and run it on yourdevelopment board. The tutorial takes less than an hour to complete Thefollowing sections provide a quick overview of the design flow, explainwhat you need to get started, and describe what you will learnDesign FlowThe standard FPGa design flow starts with design entry usingschematics or a hardware description language(HDL), such asVerilog hDL or VHDL. In this step, you create the digital circuit that isimplemented inside the FPGA. The flow then proceeds throughcompilation, simulation, and programming and verification in the FPGAhardware(see Figure 1-1Figure 1-1. Design FlowDesignD CompileSimulateProgramardwareVerifyThis tutorial guides you through all of the steps except for simulationAlthough it is not covered in this document, simulation is very importantdesigns There are two types of simulation, RIL and timing. RTL(or reto learn, and there are entire applications devoted to simulating hardwfunctional) simulation allows you to verify that your code ismanipulating the inputs and outputs appropriately Timing(or postplace-and-route) simulation verifies that the design meets timing andfunctions appropriately in the deviceIg See"Next Steps"on page 1-43 for links to further informationabout simulationAltera CorporationIntroductionBefore You beginThis tutorial assumes the following prerequisitesYou generally know what an FPGA is. This tutorial does not explainthe basic concepts of programmable logicYou are somewhat familiar with digital circuit design and electronicdesign automation (eda) toolsYou have installed the Altera Quartus@ Ii software on yourcomputer. If you do not have the Quartus II software, you candownloaditfromtheAlterawebsiteatwww.altera.com/downloadYou have an Altera Cyclone( Ill Starter Board (or equivalent)onwhich you will test your project. Using a development board helpsyou to verify whether your design is really workinYou have gone through the quick start guide and or the gettingstarted user guide for your development kit. These documentsensure that you haveInstalled the required softwaree Determined that the development board functions properly andis connected to your computerInstalled the uSB-BlasterTM driver, which allows you to programthe fpga on the development board with your own designWhat You will learnIn this tutorial, you will perform the following tasksCreate a design that causes leds on the development board to blink at aspeed that is controlled by an input button--This design is easy to createand gives you visual feedback that the design works. Of course, youcan use your Cyclone Ill board to run other designs as well. For theled design, you will write verilog hdl code for a simple 32-bitcounter,add a phase-locked loop(PLl) megafunction as the clocksource, and add a 2-input multiplexer megafunction when thedesign is running on the board, you can press an input switch tomultiplex the counter bits that drive 4 output ledsAltera CorporationMy First FPGA Design TutorialMy First FPGA Designconcepts about Quartus II projects, such as entering a design using aschematic editor and HDL, compiling your design, anddownloading it into the fpga on your development boardDevelop a foundation to learn more about FPGas--For example, you cancreate and download digital signal processing(Dsp)functions ontoa single chip, or build a multi-processor system, or create anythingelse you can imagine all on the same chip You don t have to scourdata books to find the perfect logic device or create your own asicAll you need is your computer, your imagination, and the Cyclone IllStarter boardFor information about Altera training classes(both on-line and inperson), go to the Altera web site at mysupport. altera. com/etraining/orcontact your local Altera sales representativeGet startedYou begin this tutorial by creating a new Quartus ll project. A project is aset of files that maintain information about your fpga design thQuartus II Settings File(. qsf)and Quartus II Project File(. qpf) files are theprimary files in a Quartus ll project. To compile a design or make pinassignments, you must first create a project1. In the Quartus II software, select File> New Project Wizard. TheIntroduction page opens. See Figure 1-2Altera CorporationMy First FPGA Design TutoriaGet StartedFigure 1-2. New Project Wizard: Introductionew Project Wizard: Introductionluding theName of the top-level desigPrethe selles of the Settings dialog bo2. Click Next3. Enter the following information about your project:a. What is the working directory for this project? Enter adirectory in which you will store your quartus Ii project filesfor this design, for example, c: altera\my first fpgaFile names, project names, and directories in the Quartus IIsoftware cannot contain spacesb. What is the name of this project? Type my first fpgaproject? Type my first fpga top. See Figure 1-3.C. What is the name of the top-level design entity for thisAltera CorporationMy First FPGA Design Tutorial
下载地址
用户评论