From 19eabb672897e4f07683bdc2966f4242ebdd84f9 Mon Sep 17 00:00:00 2001 From: Megan Wachs Date: Wed, 6 Sep 2017 18:13:04 -0700 Subject: [PATCH] jtag_vpi: add some hysterisis for waiting for init_done --- vsrc/jtag_vpi.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vsrc/jtag_vpi.v b/vsrc/jtag_vpi.v index c2d83438..c9b53aef 100644 --- a/vsrc/jtag_vpi.v +++ b/vsrc/jtag_vpi.v @@ -87,10 +87,10 @@ begin data_out <= 32'h0; data_in <= 32'h0; - // Insert a #delay here because we need to - // wait until the PC isn't pointing to flash anymore - // (this is around 20k ns if the flash_crash boot code - // is being booted from, else much bigger, around 10mil ns) + // Small delay to get past reset instability + // before checking for init_done + #200 + wait(init_done) if($test$plusargs("jtag_vpi_enable")) main; end