From: Luke Kenneth Casson Leighton Date: Fri, 21 Jan 2022 21:01:02 +0000 (+0000) Subject: save interval too short, also normalise it X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ec51bd5287ba61a2b1f8895942c6b9dee0052ba;p=microwatt.git save interval too short, also normalise it --- diff --git a/verilator/microwatt-verilator.cpp b/verilator/microwatt-verilator.cpp index 45aa336..9e39055 100644 --- a/verilator/microwatt-verilator.cpp +++ b/verilator/microwatt-verilator.cpp @@ -108,8 +108,8 @@ int memdump(vluint64_t time, unsigned char *mem, size_t sz) } // save-trigger offsets -vluint64_t save_offset = 500000; -vluint64_t save_countdown = save_offset; +vluint64_t save_offset = 1000000; +vluint64_t save_countdown = save_offset-10; // write (masked by sel) to internal mem offset by bram_addr line static void mem_write(unsigned char *mem, @@ -272,7 +272,7 @@ int main(int argc, char **argv) if (mem != NULL) { memdump(main_time, mem, sz); } - save_countdown = save_offset; // loop for next snapshot + save_countdown = save_offset-1; // loop for next snapshot } else { --save_countdown; }