100 struct avr_vcd_log_t avr_vcd_log_t
char name[32]
full human name
Definition: sim_vcd_file.h:49
avr_irq_t irq
receiving IRQ
Definition: sim_vcd_file.h:46
struct avr_t * avr
AVR we are attaching timers to.
Definition: sim_vcd_file.h:63
avr_vcd_signal_t * signal
Definition: sim_vcd_file.h:55
void avr_vcd_close(avr_vcd_t *vcd)
Close a vcd file.
Definition: sim_vcd_file.c:48
struct avr_vcd_signal_t avr_vcd_signal_t
This structure registers IRQ change hooks to various "source" IRQs and dumps their values (if changed...
int signal_count
Definition: sim_vcd_file.h:68
size_t logsize
Definition: sim_vcd_file.h:74
uint64_t period
Definition: sim_vcd_file.h:71
char alias
vcd one character alias
Definition: sim_vcd_file.h:47
avr_t * avr
Definition: run_avr.c:54
Definition: sim_vcd_file.h:52
int avr_vcd_start(avr_vcd_t *vcd)
Starts recording the signal value into the file.
Definition: sim_vcd_file.c:199
int size
in bits
Definition: sim_vcd_file.h:48
uint32_t value
Definition: sim_vcd_file.h:56
avr_vcd_signal_t signal[AVR_VCD_MAX_SIGNALS]
Definition: sim_vcd_file.h:69
uint64_t start
Definition: sim_vcd_file.h:72
struct avr_vcd_t avr_vcd_t
int avr_vcd_add_signal(avr_vcd_t *vcd, avr_irq_t *signal_irq, int signal_bit_size, const char *name)
Add a trace signal to the vcd file.
Definition: sim_vcd_file.c:171
#define AVR_VCD_MAX_SIGNALS
Definition: sim_vcd_file.h:40
uint32_t logindex
Definition: sim_vcd_file.h:75
This structure registers IRQ change hooks to various "source" IRQs and dumps their values (if changed...
Definition: sim_vcd_file.h:44
avr_vcd_log_p log
Definition: sim_vcd_file.h:76
struct avr_vcd_log_t * avr_vcd_log_p
struct avr_vcd_t * vcd
Value Change Dump file (waveforms) This is the VCD file that gets allocated if the firmware that is l...
Definition: sim_avr.h:285
Main AVR instance.
Definition: sim_avr.h:142
int avr_vcd_stop(avr_vcd_t *vcd)
Stops recording signal values into the file.
Definition: sim_vcd_file.c:238
Public IRQ structure.
Definition: sim_irq.h:76
int avr_vcd_init(struct avr_t *avr, const char *filename, avr_vcd_t *vcd, uint32_t period)
Initializes a new VCD trace file, and returns zero if all is well.
Definition: sim_vcd_file.c:35
uint64_t when
Definition: sim_vcd_file.h:54
FILE * output
Definition: sim_vcd_file.h:66
Definition: sim_vcd_file.h:61
char filename[74]
output filename
Definition: sim_vcd_file.h:65