Which address space should I use?
How do I read/write into memory of CPLD?
Below is example for CPLD reading on the LS1043ARDB board under Linux:
root@TinyLinux:~# devmem
BusyBox v1.31.0 (2020-09-17 08:00:32 UTC) multi-call binary.
Usage: devmem ADDRESS [WIDTH [VALUE]]
root@TinyLinux:~# devmem 0x7fb00000 8
0x01
root@TinyLinux:~# devmem 0x7fb00001 8
0x04
root@TinyLinux:~# devmem 0x7fb00002 8
0x02
root@TinyLinux:~# devmem 0x7fb00003 8
0x00
root@TinyLinux:~# devmem 0x7fb0000f 8
0x01
root@TinyLinux:~#
How do I read version number from CPLD?
NXP offers the LS1043ARDB board:
There is the LS1043ARDB Reference Manual:
https://www.nxp.com/webapp/Download?colCode=LS1043ARDBRM
There is the LS1043ARDB schematic:
https://www.nxp.com/downloads/en/printed-circuit-boards/LS1043ARDB_PD-39019-DF.zip
Use this board as example for FPGA connection to the LS1043a.