Commit 02257499e62b4b5b5eb7a1652489910caf166e7b
authorMichel Pollet <buserror@gmail.com>
Wed, 10 Jun 2015 20:01:26 +0000 (21:01 +0100)
committerMichel Pollet <buserror@gmail.com>
Thu, 2 Jul 2015 18:02:54 +0000 (19:02 +0100)
Turns out it's easy to reach 32 if you try hard enough!

Signed-off-by: Michel Pollet <buserror@gmail.com>
2 files changed:
simavr/sim/sim_vcd_file.c
simavr/sim/sim_vcd_file.h

index cbde10b0323130c8771ef4cdfd41d4c5fb701911..8b1862088f60955c428845d5cc7c604a1eb8bd72 100644 (file)
@@ -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;
index d3432719ce16a17f38ad515dea4a2b8d474ef96b..0c6b77e4e57b0c10c7d8b8385b700c30d53fedfc 100644 (file)
@@ -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;