samarth jain
10/10/2024, 3:36 PMAnton Maurovic (efabless support)
10/10/2024, 6:01 PMAnton Maurovic (efabless support)
10/10/2024, 6:52 PMwb_rst_i
signal (@Tim Edwards do you know?) despite what the documentation implies:
*(volatile uint32_t*)CSR_CTRL_RESET_ADDR = 1;
Tim Edwards
10/10/2024, 7:45 PMreg_reset
register you cited has something to do with the processor's debug function. It does not reset the wishbone. The wishbone reset is connected to the digital reset; you can theoretically do this from inside a program by setting the reg_hkspi_reset
register to 1. But that is not a self-resetting bit, so it will just raise reset and halt the processor, leaving reset applied.
It can be done from outside the processor by setting (and clearing) the same reset bit through the housekeeping SPI.
The recommended way to have an independent reset for the user project is to set up a logic analyer bit as the user project reset signal.Anton Maurovic (efabless support)
10/10/2024, 8:53 PMwb_rst_i
(unless you were to, say, design an external circuit that your firmware can trigger via GPIO to the external RESETb pin). For an upcoming chip design needing this capability, using an LA pin (as Tim suggested) would be a good idea.