SimAVR
AVR Simulator
sim_vcd_file.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include "sim_avr.h"
#include "sim_time.h"
#include "sim_vcd_file.h"
Include dependency graph for sim_vcd_file.c:

Functions

void _avr_vcd_notify (struct avr_irq_t *irq, uint32_t value, void *param)
 
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...
 
static char * _avr_vcd_get_float_signal_text (avr_vcd_signal_t *s, char *out)
 
static char * _avr_vcd_get_signal_text (avr_vcd_signal_t *s, char *out, uint32_t value)
 
static void avr_vcd_flush_log (avr_vcd_t *vcd)
 
static avr_cycle_count_t _avr_vcd_timer (struct avr_t *avr, avr_cycle_count_t when, void *param)
 
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...
 

Function Documentation

static char* _avr_vcd_get_float_signal_text ( avr_vcd_signal_t s,
char *  out 
)
static

Here is the caller graph for this function:

static char* _avr_vcd_get_signal_text ( avr_vcd_signal_t s,
char *  out,
uint32_t  value 
)
static

Here is the caller graph for this function:

void _avr_vcd_notify ( struct avr_irq_t irq,
uint32_t  value,
void *  param 
)

Here is the caller graph for this function:

static avr_cycle_count_t _avr_vcd_timer ( struct avr_t avr,
avr_cycle_count_t  when,
void *  param 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void avr_vcd_flush_log ( avr_vcd_t vcd)
static

Here is the call graph for this function:

Here is the caller graph for this function: