devmem2 vs wb_utils results

I'm running a the wishbone interface with the picoblaze inside the FPGA. Within the code is a FIFO that outputs to a port at address 0x0010. At 0x0000 I can read 0xdead and 0x0001 0Xbeef. Everything is wonderful! Of course when I run devmem2 with an address of 0x5000_0000 which according to the TDM matches up with the GPMC I get 0x60? What's most confusing is that when I look at the source the two programs look almost identical. What am I missing? Even more at issues is why can I run wb_util I read at address 0x0000_0000 which should match up with 0x5000_0000 according to the TDM. I don't find a reference to the GPMC address anywhere in the source code. How and where is the address of the GPMC passed?

What the hell is going on? What am I missing?


Comments

  • Hi @cybin , @jpiat should be able to help you out.
  • Do you know if dev2mem takes byte addressing or word (16-bits) addressing ? You could try to test with addresses 0xA000_0000 or 0x2800_0000. The address used to address the FPGA in the beagle mem-space is :
    0x01000000 (in generic.h file of the logibone_mem driver code).
Sign In or Register to comment.