Closed secworks closed 1 month ago
Note that this implementation does not look at the mode. This means that both a device app and FW could trigger reset. Not sure if that is something want. It made the implementation less complex.
Also, this function dropped the clock frequency somewhat. We could try an add a register to cut combinational logic.
Are we missing a define in tk1_mem.h
?
Should it be defined like this in tk1_mem.h
?
Are we missing a define in
tk1_mem.h
?Should it be defined like this in
tk1_mem.h
? #define TK1_MMIO_TK1_SYSTEM_RESET 0xff0001C0
Ah! Yes. And Yes.
Did a quick test and from what I can see it works as how I expected it to.
I'd like to see an update to hw/application_fpga/core/tk1/README.md
describing the API to do a system reset, hopefully also describing exactly what is being reset.
Added description of system reset API in README. Including what is reset and what happens after a reset has been triggered.
Rebased, squashed, verified.