欢迎来到天天文库
浏览记录
ID:45757902
大小:131.21 KB
页数:24页
时间:2019-11-17
《SOPC实验指导书》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、SOPC实验3・1使用NiosIIIDE建立用户程序1.创建一个新的C/C++应用工程执行下而的步骤來创建一个新的C/C++应用工程:1.启动NiosIIIDE。选择【开始】>》【程序]>>[Altera]>>[QuartusII5.0]>>[NiosIIDevelopmentKits5.0]>>[NiosIIIDE】启动NiosIIIDE。也可以通过图1.1直接点击上竺怛竺」按钮来启动NiosIIIDEo图1启动NiosIIIDE2.如果出现WorkspaceLauncher对话框,单击一£rowse_—I设置工作空间为QuartusII
2、匚程的文件夹,如图2所示,这样便于管理。如果是第一-次进入工作区,NiosIIIDE会先弹出一个欢迎界面,此时点击右上角的Workbench图标,就可以进入NiosIIIDE编辑界面。图2设置IDE工作空间3.如图3所示,选择[File]>>[New]>>[C/C++Application]来打开新建C/C++工程向导,如图4所示。图3打开新建C/C++工程向导Nanie:lelloworld0ClC/C++ApplicationClickF1nishtocreatethisprojectwith&defaultsystemlibrary0
3、U”DefaultLocationLocation:IF:«x«rcis«led_te5tsoftv4r«^hello_worldSelectTargetHardwareSOPCBuildoi*CPUIF'««rci5«l«dteztXl«dnios2sy5te4、grows*.I5、cpvzJCountBinaryaDhrystoneHelloFr«axt6、rTightly.Coupled.MeffionesMicroC/OS-IIMossagoBoxMicroC/OS-IITutorialWebServerZipFilingSyztMiDescriptionSimplepro^ramthatprints?HellofromNiorIfDetailsThisexempliprintw'Hello£ronNiosU'totheaSTDOVTstreoa.ThizoxomplorunsonthoNiozII'standard*?'full-featured*,'f&sC,&nd'low_cosCe7、xanpledesigns.ItrunswithorwithouttheNicroC/OS-IIRTOSandroquir•:aSTDOUTdavic«inyoursystem*2hardwxe.Seethere&dni«.txtforv图4新建C/C++工程向导4.单击SelectTargetHardware右侧的-rowse-I按钮打开SelectTargetHardware窗口,选择led_nios2_system.ptf文件,即指向当前硬件设计系统,如图5所示。图5选择硬件目标文件5.选择SelectProjectTemplate列8、表中的hello_led<>Name栏中自动更新为hello_led_0,确认选中UseDefaultLocation栏,如图6所示,单击〔—岂竺一完成工程创建。C/C++ApplicationClickFinishtocrwat*thixprojectwithad«£exiltxyxttmlibraryT:[hello.led.O0UseDef&ultLocationion.uConntBinaryaDhryston©HJloFrgstandingKelloLEDHelloHicroC/OS-IIHelloVorldHelloVorldS9、mallMenoryTestSinpleSocketServerT1ghtly_Coupled_BeaonesHicroC/OS-IIMessageBoxMicroC/OS-IITutorialWebServerZipFilingSysteaDescriptionShiftsLEDzb・ckandforthDetailsThisisasimplefreest&ndiapplicatxonth^tawillrunongyNiosIIsystemwithLEDPIOnamedzled_pio?suchasthestind&rdorfull-fe10、aturedh«rdatr•axenp1・dezi^xxs.Itdoesnotusem・inOtz•ntrypoint.Instead,ituz«z*1t—main0?
4、grows*.I
5、cpvzJCountBinaryaDhrystoneHelloFr«axt6、rTightly.Coupled.MeffionesMicroC/OS-IIMossagoBoxMicroC/OS-IITutorialWebServerZipFilingSyztMiDescriptionSimplepro^ramthatprints?HellofromNiorIfDetailsThisexempliprintw'Hello£ronNiosU'totheaSTDOVTstreoa.ThizoxomplorunsonthoNiozII'standard*?'full-featured*,'f&sC,&nd'low_cosCe7、xanpledesigns.ItrunswithorwithouttheNicroC/OS-IIRTOSandroquir•:aSTDOUTdavic«inyoursystem*2hardwxe.Seethere&dni«.txtforv图4新建C/C++工程向导4.单击SelectTargetHardware右侧的-rowse-I按钮打开SelectTargetHardware窗口,选择led_nios2_system.ptf文件,即指向当前硬件设计系统,如图5所示。图5选择硬件目标文件5.选择SelectProjectTemplate列8、表中的hello_led<>Name栏中自动更新为hello_led_0,确认选中UseDefaultLocation栏,如图6所示,单击〔—岂竺一完成工程创建。C/C++ApplicationClickFinishtocrwat*thixprojectwithad«£exiltxyxttmlibraryT:[hello.led.O0UseDef&ultLocationion.uConntBinaryaDhryston©HJloFrgstandingKelloLEDHelloHicroC/OS-IIHelloVorldHelloVorldS9、mallMenoryTestSinpleSocketServerT1ghtly_Coupled_BeaonesHicroC/OS-IIMessageBoxMicroC/OS-IITutorialWebServerZipFilingSysteaDescriptionShiftsLEDzb・ckandforthDetailsThisisasimplefreest&ndiapplicatxonth^tawillrunongyNiosIIsystemwithLEDPIOnamedzled_pio?suchasthestind&rdorfull-fe10、aturedh«rdatr•axenp1・dezi^xxs.Itdoesnotusem・inOtz•ntrypoint.Instead,ituz«z*1t—main0?
6、rTightly.Coupled.MeffionesMicroC/OS-IIMossagoBoxMicroC/OS-IITutorialWebServerZipFilingSyztMiDescriptionSimplepro^ramthatprints?HellofromNiorIfDetailsThisexempliprintw'Hello£ronNiosU'totheaSTDOVTstreoa.ThizoxomplorunsonthoNiozII'standard*?'full-featured*,'f&sC,&nd'low_cosCe
7、xanpledesigns.ItrunswithorwithouttheNicroC/OS-IIRTOSandroquir•:aSTDOUTdavic«inyoursystem*2hardwxe.Seethere&dni«.txtforv图4新建C/C++工程向导4.单击SelectTargetHardware右侧的-rowse-I按钮打开SelectTargetHardware窗口,选择led_nios2_system.ptf文件,即指向当前硬件设计系统,如图5所示。图5选择硬件目标文件5.选择SelectProjectTemplate列
8、表中的hello_led<>Name栏中自动更新为hello_led_0,确认选中UseDefaultLocation栏,如图6所示,单击〔—岂竺一完成工程创建。C/C++ApplicationClickFinishtocrwat*thixprojectwithad«£exiltxyxttmlibraryT:[hello.led.O0UseDef&ultLocationion.uConntBinaryaDhryston©HJloFrgstandingKelloLEDHelloHicroC/OS-IIHelloVorldHelloVorldS
9、mallMenoryTestSinpleSocketServerT1ghtly_Coupled_BeaonesHicroC/OS-IIMessageBoxMicroC/OS-IITutorialWebServerZipFilingSysteaDescriptionShiftsLEDzb・ckandforthDetailsThisisasimplefreest&ndiapplicatxonth^tawillrunongyNiosIIsystemwithLEDPIOnamedzled_pio?suchasthestind&rdorfull-fe
10、aturedh«rdatr•axenp1・dezi^xxs.Itdoesnotusem・inOtz•ntrypoint.Instead,ituz«z*1t—main0?
此文档下载收益归作者所有