Yatharth Agarwal
02/10/2023, 3:24 PMreg_mprj_datal
and reg_mprj_datah
are mapped to the user IO's. Also some register definitions found in defs.h
seem to be missing in the https://caravel-harness.readthedocs.io/en/latest/gpio.html page or have different addresses as documented.Tim Edwards
02/10/2023, 4:34 PMreg_mprj_datal
(32 bits) is the value of GPIO[31] to GPIO[0], respectively. The bit position matches the GPIO channel. Since there are more than 32 GPIO channels, the rest of them go into another register:
reg_mprj_datah
(32 bits, only the low 6 bits are used) is the value of GPIO[37] to GPIO[32]. Everything above the 6th bit reads zero.Tim Edwards
02/10/2023, 4:37 PMdefs.h
are correct. I don't know who put the description into readthedocs. @jeffdi ---Who's responsible for the validity of the information in readthedocs.io?Yatharth Agarwal
02/11/2023, 5:35 AM