From 6623ceff28fd4993ac40077d4d243c6d66d0cc82 Mon Sep 17 00:00:00 2001 From: Patrick Dussud Date: Sat, 29 Mar 2025 17:23:02 -0700 Subject: [PATCH] Fix incompatibility with Lattice FPGA --- src/svf_jtag.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/svf_jtag.cpp b/src/svf_jtag.cpp index 3a830b0..2042e86 100644 --- a/src/svf_jtag.cpp +++ b/src/svf_jtag.cpp @@ -230,7 +230,9 @@ void SVF_jtag::parse_runtest(vector const &vstr) } _jtag->set_state(_run_state); _jtag->toggleClk(nb_iter); - if (min_duration > 0) { + _jtag->flush(); + if (min_duration > 0) + { usleep((useconds_t)(min_duration * 1.0E6)); } _jtag->set_state(_end_state);