JONATHAN ARMANDO PATIÑO
02/07/2024, 8:51 AMTim Edwards
02/07/2024, 1:20 PMJONATHAN ARMANDO PATIÑO
02/07/2024, 6:15 PMTim Edwards
02/07/2024, 7:24 PMTim Edwards
02/07/2024, 7:28 PM#define reg_user_config_0 (*(volatile uint8_t*)0x30000000)
and then read the value from it simply by reading the value at that address:
int i;
i = reg_user_config_0;
You can make the value appear on the caravan chip pins by doing:
while (1) {
reg_mprj_datal = reg_user_config_0;
}
although you probably would want to shift it up a bit to avoid the GPIOs being used by housekeeping.JONATHAN ARMANDO PATIÑO
02/08/2024, 9:20 PMTim Edwards
02/08/2024, 10:06 PMJONATHAN ARMANDO PATIÑO
02/13/2024, 11:52 AMTim Edwards
02/13/2024, 2:55 PMreg_wb_enable
to 1
in your C code. This is a change that was made after MPW-2 when I discovered that additional signals that were supposed to be protected from being open-circuits in the user project area were not, and fixed it. The result is that a register bit was added that enables/disables the wishbone bus for the user project (I thought you had mentioned this before, but it might have been in a different discussion that happened around the same time).JONATHAN ARMANDO PATIÑO
02/14/2024, 4:46 PMTim Edwards
02/18/2024, 7:26 PMJONATHAN ARMANDO PATIÑO
02/28/2024, 9:42 AMTim Edwards
02/28/2024, 2:15 PMuser_proj_example
, which in the digital project repository caravel_user_project
is the cell directly below user_project_wrapper
. Apparently the "make" recipe still expects this hierarchy even though that hieararchy is, in my opinion, completely arbitrary.