Bitstream Interpretation Library (BIL)  0.1
Typedefs | Functions | Variables
bil::NetType Namespace Reference

Namespace for net type constants. More...

Typedefs

typedef unsigned char net_t
 Net type.

Functions

const char * toString (net_t type)
 Returns a string representation of given net type constant.
net_t fromString (const char *s)
 Returns net type of given string representation.

Variables

const net_t WIRE = 0x00
 Normal wiring.
const net_t VCC = 0x01
 Tied to a DC power source.
const net_t GND = 0x02
 Tied to ground.
const char *const WIRE_STRING = "wire"
const char *const VCC_STRING = "vcc"
const char *const VDD_STRING = "vdd"
const char *const POWER_STRING = "power"
const char *const GND_STRING = "gnd"
const char *const GROUND_STRING = "ground"

Detailed Description

Namespace for net type constants.

In XDL the net type denotes whether a net is normal wiring, or tied to a power source or to the ground.


Typedef Documentation

typedef unsigned char bil::NetType::net_t

Net type.

Definition at line 22 of file NetType.hpp.


Function Documentation

const char * bil::NetType::toString ( net_t  type)

Returns a string representation of given net type constant.

Parameters:
typeThe net type constant.
Returns:
The string representation.

Definition at line 20 of file NetType.cpp.

NetType::net_t bil::NetType::fromString ( const char *  s)

Returns net type of given string representation.

Parameters:
sThe string representation.
Returns:
The net type constant.
Exceptions:
.

Definition at line 32 of file NetType.cpp.


Variable Documentation

const net_t bil::NetType::WIRE = 0x00

Normal wiring.

Definition at line 26 of file NetType.hpp.

const net_t bil::NetType::VCC = 0x01

Tied to a DC power source.

Definition at line 29 of file NetType.hpp.

const net_t bil::NetType::GND = 0x02

Tied to ground.

Definition at line 32 of file NetType.hpp.

const char *const bil::NetType::WIRE_STRING = "wire"

Definition at line 12 of file NetType.cpp.

const char *const bil::NetType::VCC_STRING = "vcc"

Definition at line 13 of file NetType.cpp.

const char *const bil::NetType::VDD_STRING = "vdd"

Definition at line 14 of file NetType.cpp.

const char *const bil::NetType::POWER_STRING = "power"

Definition at line 15 of file NetType.cpp.

const char *const bil::NetType::GND_STRING = "gnd"

Definition at line 16 of file NetType.cpp.

const char *const bil::NetType::GROUND_STRING = "ground"

Definition at line 17 of file NetType.cpp.