Cerata
A library to generate structural hardware designs
|
A terminator structure to enable terminator sanity checks. More...
#include <port.h>
Public Types | |
enum | Dir { IN, OUT } |
Terminator direction. | |
Public Member Functions | |
Dir | dir () const |
Return the direction of this terminator. | |
Term (Dir dir) | |
Construct a new Term. | |
bool | IsInput () |
Return true if this Term is an input, false otherwise. | |
bool | IsOutput () |
Return true if this Term is an output, false otherwise. | |
Static Public Member Functions | |
static Dir | Reverse (Dir dir) |
Return the inverse of a direction. | |
static std::string | str (Dir dir) |
Convert a Dir to a human-readable string. | |
Protected Attributes | |
Dir | dir_ |
The direction of this terminator. | |