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
//readalways @(*) begin if( rHADDR==(`SWITCH_BASE )) HRDATA <= {22'h0000_00,rSW}; end
Hi
thanks for your replay ,I catch the waveform ,find that the value of the kernel's RDATA bus is always fixed as 0xdeabbeef . so when time to write ,the output date doesn't be the data which is read at the time of read
This is useful information. HRDATA is an input from your interconnect into Cortex-M3 Integration, you should check why it's fixed by your interconnect or other slaves.
thanks, i will check
Your above snapshot shows the programming to the LED and you may need to check your hardware design why HRDATAS is fixed.
Thanks for your replay ,I find the bug and resolve it.
thank you very mach
thank you very much