From: Jakob Gruber Date: Tue, 28 Aug 2012 13:46:59 +0000 (+0200) Subject: vcd_file: Update comment to reflect correct time units X-Git-Tag: v1.0~13 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=ebc09ae499f9abdabc1809c2e66385c14d6a5517;p=sx%2Fsimavr.git vcd_file: Update comment to reflect correct time units --- diff --git a/simavr/sim/sim_vcd_file.c b/simavr/sim/sim_vcd_file.c index 2584643..8d71e6b 100644 --- a/simavr/sim/sim_vcd_file.c +++ b/simavr/sim/sim_vcd_file.c @@ -101,8 +101,8 @@ static void avr_vcd_flush_log(avr_vcd_t * vcd) avr_vcd_log_t *l = &vcd->log[li]; uint64_t base = avr_cycles_to_nsec(vcd->avr, l->when - vcd->start); // 1ns base - // if that trace was seen in this usec already, we fudge the base time - // to make sure the new value is offset by one usec, to make sure we get + // if that trace was seen in this nsec already, we fudge the base time + // to make sure the new value is offset by one nsec, to make sure we get // at least a small pulse on the waveform // This is a bit of a fudge, but it is the only way to represent very // short"pulses" that are still visible on the waveform.