以最简单的Hello程序为例NIOSII开发的整个流程_第1页
以最简单的Hello程序为例NIOSII开发的整个流程_第2页
以最简单的Hello程序为例NIOSII开发的整个流程_第3页
以最简单的Hello程序为例NIOSII开发的整个流程_第4页
以最简单的Hello程序为例NIOSII开发的整个流程_第5页
已阅读5页,还剩40页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、 本实验以最简单的Hello程序为例,演示 Niosll开发的整个流程: ,双击 废话不多说,我们来开始最简单、最基本的Niosll程序,首先打开quartusll 9.1 即可 y ,打开如下界面: 点击 File t New Project Wizard如下图: 出现如图: 点击第一个后面的。 。将新 完成后如图: r New Project Wizard: Directory, Name. Top-leve Entity page 1 of 51 Whal is the working directory Joi thi project? EAnios_pnhello -J Whal i

2、s the name of this project7 J What is: the ria of the top-levsl design entity fcx this project? This name i: awacily match the entity nama in the design file. s:sensitive and must 1 -J Use Existing Rroject Settings . Back 帥毗、” Finish. | 取消 再第二个填入hello中即可,之后点击 next,出现如下图: 继续next,不要犹豫 Select the fanni

3、 and device you want to carget for ccmpilaion. T aget device 厂 Aub device selected the Filter f* Specific dicvitE ieletled in Avaiabls dtcVfcM11 list New Pr-Dject Wizard: Family Mumyy Initialization Fie 0 - Verifies to/Debugging File? In-System Souce? and Probes File -Logic Analyzer Infteifaoe File

4、:- SigrialTap II Logic Analyser File Vector Waveform File 白 Other Fist -AHDL Include Fie Block SymtDl File Chain Description Fie Synopsys Design 匚onstraints File T ckI File K匚mne Ann -叫 口 选择Block Diagram/Schematic File, 双击,出现如下界面 f -JSfcWB N - H r EE ” |lhDnnC| 1e 匕 flndev 邛 科 (海创n Z1 *事Q 存首书堂01 E粵尋

5、甘 fg ItadLM If |?T nt| Zh i- FiLvl| E- 叭iribcii T * 壬 . Tibrai* Tim 4 fcji Pk.Li r-矗 Caf-jLi DbeI*- 塞rrw 耳 R jI Ii KJ 在工具栏()中选择 SOPC ,单击,出现如下界面 卩L rrr X Nios II Pi 其中的 System Name 命名为 kernal , Target HDL 选为 VHDL End Lyclone ill GloQkSettriss Remowe 将时钟改为100M, Name也改为clk (改不改都行) 下一步选择CPU也就是nios的处理器,双

6、击 Fie Ed?it IMcmIijIc Sywtern Vtasw Tools Help Syatam Cantenta Sysfeem Gcnrnfinn m SL5 j Viaeo and imago Pracssaing LileNsme Desenptien ClockB朋 e Csyrnponeril Liiirary d _:M . Projecl Libra rv S) Avakji Vel-ilkldliQ 3uKe xi Bridgoa and Adaptcirtt a -mterfsce Protocofe tl Lcgocy Compone-nfs J MBmorlB

7、B andl MBmory CjontTDleri H Re wbcrala 由PLL lrl- Proces s.or AdkHions 白 ProcBBaors Bvnce 1-amiFy: Cyclone Description 口咻钿m 1. bwAfy Di vLiCyMO* 3 hfc ipecafy new i-wte-1 neme c 普 円 C-rwft- lUrw 知stem JJ Mr nr fcfflpeuiiewf Si - At. nton VeiIcBLnr SuAe- D*dt MiXlkiv SierkMi Vw TMn SySIftfT 新tens SSt=

8、t iiSc1ie, a.1i 2cit SedtuCT 选择完毕后,出现这样的对话框 对话框中可看到三种 nios核(从e核最简单,占用空间最小,第三个 f核是快速的,但是 占用空间最大的,中间的 S核是介于e和f之间的,性能和占用空间比较平衡的核。) 这里我们选择f核(方便以后开发使用) onsei. u別 尸 Offset: Reset Veddr. Mcnioy. Exception Vectcir: Memory: 这里Memory后面可选的部分暂时没有东西, 来选择即可? 接下来,点击next 暂且放一边,待我们建立好SDRAMfl EPCS再回 for 1/ | Ack-wcrd

9、 Fhm 叶IJ hri 呻甘 ptiinA Data with : 16,其他的都不变。继续next M 5DRAM Controller - sdram 0 Paiarret er Settings Memory Profile SDRAM Controller About D斡|加甘 s We 4Fr 1 (rts F A 2. $ 弗戈 Ck4耳丄* 輒3卑 f f il jJF* 片电n1 在空白的地方双击: Symbol 选择 project 中的 kernal 还需要自己建时钟,在空白处继续双击,建立一个锁相环,在这里 Insett symtiol as blocL 厂 L un

10、ci hegaWijard Fluc-lr: 时 egaM/i zmrd Fl ug-1 门 M一. OK |Cancel |- : | 选择 MegaWizard Plug-In Manager 点击next Mega Wizard Pllug-In Manager page 2a Which megafunction would you like to customize? Select a megafunction from the list below Which device bmily will ou be using7 | Cjiclone III Whal riame da y

11、ou want for the output hl T 0 corn pile project successfijll/ in the Quartan II wft*?areH ur design files rnu$t be in the pvoict directory, in the global user libraries specified in the Options dialog box (Tools rnenu, or a user libiarv specified in lhe User Libraries page of line Settings dialog bo

12、x (AssignfrientE menii). 日凹 惟tailed Plug-Ins / | Altera SOPC Builder -|+.副 AritFimetic |+ 融 CcmnmunKaAior !庄斟DSP F 鏈 Gates $ 1 I/O 应室 Interfacts J TAG-accessible ENtensions MemMp Compiler 国T* I Storage l+l *1 IP MEgaStoie Which type of output file da pou 冲酮t 帕亡reate? C AHDL 金 VHDL 广 Verilog HDL ? ?下

13、面选择VHDL 在 I/O 中选择 ALTPLL,在 What name do you want for the output file 在 之后填入 PLL, Which type of output file do you want to create (你要是用的Verilog,就选择第三个) 之后点击 next PLL : u A : o 牙 -T ! ! 1 i ib 齐 i i .J 耳府 r irrprtn吒 I.ILL 翠凤*- 氏 Fn-kh PE眞 Ld世 l WF; ast Dr m uH.ng? Uv d-ltlryJJIPPrnHrr _,.JS- dcMQ a_ w

14、rl于IIhEuepcv 7+ rj indodkO npuP 3b ! $ wrGh M_L gp* 弋二 uc be* S-JOU o Erhonced PJ. 呵5血曲口赛 AX-71S-ll匸 taninlziLK ger 亡吿 05?二牙僧 FLL EKR7 bll;ge-mILirrdF *Use ruhsdlc path _j pll -sZDik Jsdnj ” .-5K,fi STSJSSXPH- cy号 口 孑F P*T hodlB pmpr ths slns.c tHin-rsniJ ISlhrKJ J3n-pw3e!non o ? AbrT5F1 hr ar eKErn

15、* 布彷!“9-峻障 fa- KMdb shKh ailpLd:nIKk %=Umn口 mpen 卅 led 聲Yi 55肆霁淞 50mssw-hvnnwanexf M?qji2Md Plug-In 阳遷rusg即pap 4 j1 14 I . I Pzf rr t:e- bEttncE ALTPLL / Bfljnd/rdthSS / CkskaiitdiDL日 AHc tomeFill Ottfional rwte 0*4 jvi pjlfn* ifT型 1 対中尸门趕门1骨 tHf- P|. I 盲 Cjcd fcr ji: Crejte a dtbdr input to dynjmai

16、l? tuggift betwtw mput dods LI Perfernri the inout sboc sitdxer after j rpjt dock cycles 口 CrsaLe mhMcdudCuuLjjL tv ihdiuite: I*crpj.dtxkbeinggcH (0 inckD K berc used/ I indkl is teing use fl Create adkaatf outut 治 esdn rp_t dock (0 input cfcZK iE tngding 1 rpj: -zcxk ts nt togging 点击next,看不到下面的next就直接点回车 Next 我们需要100M的时钟,只需将图中第一个框中的1改为2即可得到100M的, 如图 我们还需要一个时钟,注意此部分 点击elk cl,同样改为100M的时钟,同时让两个时钟有一定的相移,左面第三个框改为-75 如图 IISC匸阳話耳 llsc匸WMMK1X uM AA工JsbrS3J GzoucrIPMca 百主 LK 丄 d 菁 L

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论