common.h File Reference

Things common to all Ruby-VPI code. More...

#include <stddef.h>
#include "verilog.h"

Defines

#define common_printf(...)   vpi_printf("Ruby-VPI: "); vpi_printf(__VA_ARGS__); vpi_printf("\n");
 A wrapper for vpi_printf() which marks the given message as being emitted from Ruby-VPI and ends the message with a new line.
#define common_debug(...)
 A wrapper for common_printf() which marks the given message as being debugging output.
#define common_boolToStr(aBoolExpr)   ( (aBoolExpr) ? "true" : "false" )
 Returns the string "true" if the given boolean expression is true.

Enumerations

enum  bool { false = 0, true = 1 }
 A boolean variable with two possible values: true and false. More...


Detailed Description

Things common to all Ruby-VPI code.


Define Documentation

#define common_boolToStr ( aBoolExpr   )     ( (aBoolExpr) ? "true" : "false" )

Returns the string "true" if the given boolean expression is true.

Otherwise returns the string "false".

#define common_debug ( ...   ) 

A wrapper for common_printf() which marks the given message as being debugging output.

#define common_printf ( ...   )     vpi_printf("Ruby-VPI: "); vpi_printf(__VA_ARGS__); vpi_printf("\n");

A wrapper for vpi_printf() which marks the given message as being emitted from Ruby-VPI and ends the message with a new line.

Parameters:
... Arguments to vpi_printf()


Enumeration Type Documentation

enum bool

A boolean variable with two possible values: true and false.

Pass aroung this value instead of zero and non-zero integers.

Enumerator:
false 
true 


Generated on Sun Jul 22 17:47:50 2007 for Ruby-VPI by  doxygen 1.5.1