首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

[转帖]nios + sram(自定义逻辑接口) 使用心得!

[转帖]nios + sram(自定义逻辑接口) 使用心得!

nios + sram(自定义逻辑接口)
1. 在自己的板子上,如果我们使用nios
2. 希望程序在外部sram中跑,可以选用已有的组件
3. 也可以自定义用户逻辑

5. 如下: 在此只添加一sram的接口(flash请自行添加

现有的硬件: sram 与 flash 的连接pin如下:
flash_ce , flash_oe,flash_we
sram_ce , sram_oe ,sram_we , sram_HB,sram_LB
公用 addr总线 ,data总线 ,

5.1 添加三态总线(sram 与 flash 共用)
5.2 添加 [Legacy Components ] - > [interface to user logic]
选择 "Bus Interface Type" 为 Avalon memory Slave

5.3 取消 “Import verilog,vhdl,edif,or....”那个checkbox的 勾
5.4 在"port information " 组中“Add port”

sram_data 16 inout share data
sram_addr 20 input share address
sram_ce 1 input chipselect_n
sram_oe 1 input read_n
sram-we 1 input write_n
sram_be 2 input byteenable_n
5.5 timing
setup 40 ns
wait 160 ns
hold 40 ns

好了,可以了

想看更多的东西?来我的博客,精彩多多! http://blog.eccn.com/u/bjxiong/index.htm

大家有心得体会得上来补充!

想看更多的东西?来我的博客,精彩多多! http://blog.eccn.com/u/bjxiong/index.htm
返回列表