SimAVR
AVR Simulator
Value Change Dump

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_tavr_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...
 

Detailed Description

Implements a Value Change Dump file output to generate traces and display them in a wave viewer like gtkwave http://gtkwave.sourceforge.net.

Macro Definition Documentation

#define AVR_VCD_LOG_CHUNK_SIZE   (4096 / sizeof(avr_vcd_signal_t))
#define AVR_VCD_MAX_SIGNALS   32

Typedef Documentation

typedef struct avr_vcd_log_t * avr_vcd_log_p
typedef struct avr_vcd_log_t avr_vcd_log_t

This structure registers IRQ change hooks to various "source" IRQs and dumps their values (if changed) at certain intervals into the VCD file.

typedef struct avr_vcd_t avr_vcd_t

Function Documentation

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()

Here is the call graph for this function:

Here is the caller graph for this function:

void avr_vcd_close ( avr_vcd_t vcd)

Close a vcd file.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

int avr_vcd_start ( avr_vcd_t vcd)

Starts recording the signal value into the file.

Here is the call graph for this function:

Here is the caller graph for this function:

int avr_vcd_stop ( avr_vcd_t vcd)

Stops recording signal values into the file.

Here is the call graph for this function:

Here is the caller graph for this function: