SimAVR
AVR Simulator
|
Implements a Value Change Dump file output to generate traces and display them in a wave viewer like gtkwave http://gtkwave.sourceforge.net. More...
Data Structures | |
struct | avr_vcd_signal_t |
This structure registers IRQ change hooks to various "source" IRQs and dumps their values (if changed) at certain intervals into the VCD file. More... | |
struct | avr_vcd_log_t |
struct | avr_vcd_t |
Macros | |
#define | AVR_VCD_MAX_SIGNALS 32 |
#define | AVR_VCD_LOG_CHUNK_SIZE (4096 / sizeof(avr_vcd_signal_t)) |
Typedefs | |
typedef 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) at certain intervals into the VCD file. More... | |
typedef struct avr_vcd_log_t | avr_vcd_log_t |
typedef struct avr_vcd_log_t * | avr_vcd_log_p |
typedef struct avr_vcd_t | avr_vcd_t |
Functions | |
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. More... | |
void | avr_vcd_close (avr_vcd_t *vcd) |
Close a vcd file. More... | |
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. More... | |
int | avr_vcd_start (avr_vcd_t *vcd) |
Starts recording the signal value into the file. More... | |
int | avr_vcd_stop (avr_vcd_t *vcd) |
Stops recording signal values into the file. More... | |
Implements a Value Change Dump file output to generate traces and display them in a wave viewer like gtkwave http://gtkwave.sourceforge.net.
#define AVR_VCD_LOG_CHUNK_SIZE (4096 / sizeof(avr_vcd_signal_t)) |
#define AVR_VCD_MAX_SIGNALS 32 |
typedef struct avr_vcd_log_t * avr_vcd_log_p |
typedef struct avr_vcd_log_t avr_vcd_log_t |
typedef 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) at certain intervals into the VCD file.
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.
Must be called before avr_vcd_start()
void avr_vcd_close | ( | avr_vcd_t * | vcd | ) |
Close a vcd file.
Initializes a new VCD trace file, and returns zero if all is well.
int avr_vcd_start | ( | avr_vcd_t * | vcd | ) |
Starts recording the signal value into the file.
int avr_vcd_stop | ( | avr_vcd_t * | vcd | ) |
Stops recording signal values into the file.