From e03651d035934b2617fa7b1ef490fd4380f5d9cb Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Wed, 10 Jun 2015 21:01:26 +0100 Subject: [PATCH] vcd: Increased limits Turns out it's easy to reach 32 if you try hard enough! Signed-off-by: Michel Pollet --- simavr/sim/sim_vcd_file.c | 1 + simavr/sim/sim_vcd_file.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/simavr/sim/sim_vcd_file.c b/simavr/sim/sim_vcd_file.c index cbde10b..8b18620 100644 --- a/simavr/sim/sim_vcd_file.c +++ b/simavr/sim/sim_vcd_file.c @@ -219,6 +219,7 @@ int avr_vcd_start(avr_vcd_t * vcd) fprintf(vcd->output, "%s\n", _avr_vcd_get_float_signal_text(s, out)); } fprintf(vcd->output, "$end\n"); + vcd->logindex = 0; vcd->start = vcd->avr->cycle; avr_cycle_timer_register(vcd->avr, vcd->period, _avr_vcd_timer, vcd); return 0; diff --git a/simavr/sim/sim_vcd_file.h b/simavr/sim/sim_vcd_file.h index d343271..0c6b77e 100644 --- a/simavr/sim/sim_vcd_file.h +++ b/simavr/sim/sim_vcd_file.h @@ -39,7 +39,7 @@ extern "C" { * and dumps their values (if changed) at certain intervals into the VCD file */ -#define AVR_VCD_MAX_SIGNALS 32 +#define AVR_VCD_MAX_SIGNALS 64 typedef struct avr_vcd_signal_t { avr_irq_t irq; // receiving IRQ @@ -63,7 +63,7 @@ typedef struct avr_vcd_t { FILE * output; int signal_count; - avr_vcd_signal_t signal [AVR_VCD_MAX_SIGNALS]; + avr_vcd_signal_t signal[AVR_VCD_MAX_SIGNALS]; uint64_t period; uint64_t start; -- 2.39.5