打印

Partial Word Access to Altera Avalon Memory-Mapped Slave

[复制链接]
229|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
博斯|  楼主 | 2018-9-9 11:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
when I say partial word access, I mean 16-bit (two byte) or 8-bit (byte) read/write.
Background:
In one of our recent projects, Cyclone V SoC is used to replace 386 CPU in an existing product.
I am responsible for the board and FPGA design. Another software engineer is developing software under DS5 environment.
Avalon MM Slave interface is use on FPGA side.
Problem description:
Everything works fine on Altera System Console. However, it behaves differently when the software engineer debug his code on DS5.
He has problem to read data out from an address that is not multiple of 4.
For example, he can read a word (32-bit), or a half-word (16-bit), or a byte from address 0x800, but he cannot read anything from address 0x802 (always returned zeros).
Troubleshooting being conducted:
I thought it relates to where the data should be put on the 32bit data bus.  So I revised FPGA code to duplicate the data on the 32-bit bus,
but DS5 still reads all zeros.
Also tried to run SignalTap to capture waveforms, but DS5 and SignalTap
cannot be run at the same time through the same JTAG connector.
anybody know what could be the problem?

使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

412

主题

412

帖子

0

粉丝