From: Michel Pollet Date: Wed, 10 Jun 2015 20:01:26 +0000 (+0100) Subject: vcd: Increased limits X-Git-Tag: v1.3~35 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=02257499e62b4b5b5eb7a1652489910caf166e7b;p=sx%2Fsimavr.git vcd: Increased limits Turns out it's easy to reach 32 if you try hard enough! Signed-off-by: Michel Pollet --- 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;