mirror of
https://github.com/olofk/serv.git
synced 2026-04-29 05:25:07 +00:00
Add reset_strategy parameter
The reset_strategy parameter controls how much reset to apply to SERV. It can be set to MINI for the default behaviour, or NONE to only apply reset where absolutely needed and rely on POR to clear FFs
This commit is contained in:
@@ -34,6 +34,7 @@ module serving
|
||||
|
||||
parameter memfile = "";
|
||||
parameter memsize = 8192;
|
||||
parameter RESET_STRATEGY = "NONE";
|
||||
parameter WITH_CSR = 1;
|
||||
localparam regs = 32+WITH_CSR*4;
|
||||
|
||||
@@ -104,7 +105,7 @@ module serving
|
||||
|
||||
serving_mux mux
|
||||
(.i_clk (i_clk),
|
||||
.i_rst (i_rst),
|
||||
.i_rst (i_rst & (RESET_STRATEGY != "NONE")),
|
||||
|
||||
.i_wb_cpu_adr (wb_dbus_adr),
|
||||
.i_wb_cpu_dat (wb_dbus_dat),
|
||||
@@ -168,6 +169,7 @@ module serving
|
||||
|
||||
serv_rf_ram_if
|
||||
#(.width (rf_width),
|
||||
.reset_strategy (RESET_STRATEGY),
|
||||
.csr_regs (WITH_CSR*4))
|
||||
rf_ram_if
|
||||
(.i_clk (i_clk),
|
||||
@@ -193,6 +195,7 @@ module serving
|
||||
|
||||
serv_top
|
||||
#(.RESET_PC (32'h0000_0000),
|
||||
.RESET_STRATEGY (RESET_STRATEGY),
|
||||
.WITH_CSR (WITH_CSR))
|
||||
cpu
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user