Added corew.start calls after NDM reset and PoR

This commit is contained in:
Niraj Sharma
2020-02-06 17:16:34 +05:30
parent d8a3c3d754
commit 454b83fe9a

View File

@@ -181,6 +181,8 @@ module mkP3_Core (P3_Core_IFC);
rule rl_ndm_reset_wait (rg_ndm_reset_delay != 0);
if (rg_ndm_reset_delay == 1) begin
Bool is_running = True;
// Restart the corew
corew.start (0, 0);
corew.ndm_reset_client.response.put (is_running);
$display ("%0d: %m.rl_ndm_reset_wait: sent NDM reset ack (for non-DebugModule) to Debug Module",
cur_cycle);
@@ -188,6 +190,17 @@ module mkP3_Core (P3_Core_IFC);
rg_ndm_reset_delay <= rg_ndm_reset_delay - 1;
endrule
// ================================================================
// Start the corew after a PoR
Reg #(Bool) rg_corew_start_after_por <- mkReg(False);
rule rl_step_0 (!rg_corew_start_after_por);
corew.start (0, 0);
rg_corew_start_after_por <= True;
endrule
// ================================================================
// ================================================================
// Instantiate JTAG TAP controller,
// connect to corew.dmi;