Xilinx SDK中内存值读法

对FPGA的IP核的控制说白了就是对寄存器的控制,而寄存器又是放在RAM中的,

所以调试时读RAM也是很重要的一步。

 

 

记得在某个手册中看到,我的Atyls的内存是little endian,

所以读内存的时候还要进行转换顺序。

 

摘抄一段Big/Little Endian的解释:

Big-endian and little-endian are terms that describe the order in which a sequence of bytes are stored in computer memory. Big-endian is an order in which the "big end" (most significant value in the sequence) is stored first (at the lowest storage address). Little-endian is an order in which the "little end" (least significant value in the sequence) is stored first. 

 

那么所谓Little Endian,就是小字节在前,大字节在后。

对于16bit,举个例子: 0x12 34,以Little Endian存储则是 34 12。

对于32bit,举个例子:0x12 34 56 78,以Little Endian存储则是 78 56 34 12。

 

 

转载于:https://www.cnblogs.com/elitezhe/p/little-endian-s6-fpga-memory.html

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值