Cerata
A library to generate structural hardware designs
cerata::Term Class Reference

A terminator structure to enable terminator sanity checks. More...

#include <port.h>

+ Inheritance diagram for cerata::Term:

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.
 

Detailed Description

A terminator structure to enable terminator sanity checks.

Definition at line 27 of file port.h.


The documentation for this class was generated from the following files: