sopc入门-Hello from nios II

本文详细介绍了使用Quartus进行硬件设计及Nios II软核处理器的软件开发流程,包括工程建立、系统组件配置、原理图设计、引脚分配、编译与下载等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、Quartus部分。

1、新建工程。

    注意,工程名不能和Quartus关键字和宏功能块名字相同,否则会出问题(**** is too large)。

2、启动sopc builder,创建一个系统,包含如下组建

2011022821075766.jpg

自动分配地址,配置reset和exception的地址,然后点击generate。等到生产完毕,OK,next。

3、file->new->block design/schimatic file.

    双击原理图空白处,project,添加刚才生成的系统。

    ctrl+A全选文件,右键选中的文件,自动添加引脚,更改引脚名称为csv格式引脚分配文件中的名称(方便使用引脚分配文件)。

    保存。

4、添加管脚分配文件。assignments->import assignment file,添加csv格式的引脚分配文件。

5、编译工程。

二、Nios软件部分。

1、sopc builder system file:选择刚才生成的ptf文件

     select builder system template:选择Hello World模板文件

     finish。

2、右键左侧窗口中的hello_world文件夹图标,选择preperties,选中C/C++ Build,对Configuration选择Release.

     右键左侧窗口中的hello_world文件夹图标,选择System Library preperties,选中C/C++ Build,对Configuration选择Release.

     System Library,勾选Program never exits,Clean exit,Reduced device driver,Lightweight device driver API,Small C library.其他不选。

     OK。

3、右键左侧窗口中的Hello_world文件夹图标,build project。

4、用Quartus将生成的sof文件下载到fpga中,或者用Nios IDE的tools->Quartus programmer下载。

5、右键左侧窗口中的Hello_world文件夹图标,run as->Nios hardware。

you will see "Hello from nios II" in the Console window which is in the down-middle of your screen.

转载于:https://www.cnblogs.com/derhuisir/archive/2011/02/28/1967452.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值