mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-05-02 22:25:00 -04:00
FPGA: Add system reset API
Add API address to trigger system reset. When written to will send system_reset signal to the reset generator, which then perform a complete reset cycle of the FPGA system. Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
parent
b5ba21148d
commit
00599549e3
6 changed files with 69 additions and 4 deletions
|
@ -148,6 +148,7 @@ module application_fpga(
|
|||
wire force_trap;
|
||||
wire [14 : 0] ram_addr_rand;
|
||||
wire [31 : 0] ram_data_rand;
|
||||
wire tk1_system_reset;
|
||||
/* verilator lint_on UNOPTFLAT */
|
||||
|
||||
|
||||
|
@ -155,7 +156,11 @@ module application_fpga(
|
|||
// Module instantiations.
|
||||
//----------------------------------------------------------------
|
||||
clk_reset_gen #(.RESET_CYCLES(200))
|
||||
reset_gen_inst(.clk(clk), .rst_n(reset_n));
|
||||
reset_gen_inst(
|
||||
.sys_reset(tk1_system_reset),
|
||||
.clk(clk),
|
||||
.rst_n(reset_n)
|
||||
);
|
||||
|
||||
|
||||
picorv32 #(
|
||||
|
@ -321,6 +326,8 @@ module application_fpga(
|
|||
.cpu_trap(cpu_trap),
|
||||
.force_trap(force_trap),
|
||||
|
||||
.system_reset(tk1_system_reset),
|
||||
|
||||
.ram_addr_rand(ram_addr_rand),
|
||||
.ram_data_rand(ram_data_rand),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue