打印

cortex M3 designstart

[复制链接]
126|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
小小的人呀|  楼主 | 2018-9-8 21:10 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
I  put two slaves on system AHB bus  , one is leds the other is switch .
I can write date to the leds\' register  to control the led on or off,  but I can\'t read date from the switch data register .
i don\'t know what\'s wrong
here is the slave\'s code
//Transfer Response
assign HREADYOUT = 1\'b1; //Single cycle Write & Read. Zero Wait state operations
//read
always @(*)
begin
if( rHADDR==(`SWITCH_BASE ))
HRDATA <= {22\'h0000_00,rSW};
end

使用特权

评论回复

相关帖子

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

本版积分规则

399

主题

399

帖子

0

粉丝