Sha256: b35e8a7d1727b94a284d0c50555f3e9e13556ecfe50f92cf27480edc7241c667

Contents?: true

Size: 704 Bytes

Versions: 18

Compression:

Stored size: 704 Bytes

Contents

#ifndef COMMON_H
#define COMMON_H

#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include "vpi_user.h"
#include <stdbool.h>
#include <stdint.h>
#define UNUSED(x) (void)(x)

#define ENABLE_DEBUG

/// Prepends the testbench name to the signal.
/// e.g.: TESTBENCH_CAT(pins) => TESTBENCH_NAME.pins => origen.pins
#define ORIGEN_SIM_TESTBENCH_CAT(signal) ORIGEN_SIM_TESTBENCH_NAME "." signal

#ifdef ENABLE_DEBUG
/* #define DEBUG(fmt, args...) fprintf(stderr, "DEBUG: %s:%d:%s(): " fmt, \
    __FILE__, __LINE__, __func__, ##args) */
 #define DEBUG(fmt, args...) fprintf(stderr, "[DEBUG] " fmt, ##args)
#else
 #define DEBUG(fmt, args...) /* Don't do anything in release builds */
#endif

#endif

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
origen_sim-0.20.7 ext/common.h
origen_sim-0.20.6 ext/common.h
origen_sim-0.20.5 ext/common.h
origen_sim-0.20.4 ext/common.h
origen_sim-0.20.3 ext/common.h
origen_sim-0.20.2 ext/common.h
origen_sim-0.20.1 ext/common.h
origen_sim-0.20.0 ext/common.h
origen_sim-0.16.1 ext/common.h
origen_sim-0.16.0 ext/common.h
origen_sim-0.15.0 ext/common.h
origen_sim-0.14.0 ext/common.h
origen_sim-0.13.0 ext/common.h
origen_sim-0.12.0 ext/common.h
origen_sim-0.11.1 ext/common.h
origen_sim-0.11.0 ext/common.h
origen_sim-0.10.0 ext/common.h
origen_sim-0.9.0 ext/common.h