LogicGate Class Reference

The Class LogicGate represents an abstract logic gate. More...

#include <LogicGate.h>

Inheritance diagram for LogicGate:
AbstractSimObject BaseLogicGate SimObject OneInputGate TwoInputGate Input Output

List of all members.

Public Types

typedef EventTy::Type EventKind

Public Member Functions

 LogicGate (size_t id, size_t numOutputs, size_t numInputs, SimTime delay)
 LogicGate (const LogicGate &that)
virtual size_t getInputIndex (const std::string &net) const =0
 Gets the index of the input whose name is matching the net.

Protected Member Functions

void netNameMismatch (const LogicUpdate &le) const
 Net name mismatch.
void sendEventsToFanout (Graph &graph, GNode &myNode, const EventTy &inputEvent, const EventKind &type, const LogicUpdate &msg)
 Send events to fanout, which are the out going neighbors in the circuit graph.

Detailed Description

The Class LogicGate represents an abstract logic gate.


Member Typedef Documentation


Constructor & Destructor Documentation

LogicGate::LogicGate ( size_t  id,
size_t  numOutputs,
size_t  numInputs,
SimTime  delay 
) [inline]
LogicGate::LogicGate ( const LogicGate that  )  [inline]

Member Function Documentation

virtual size_t LogicGate::getInputIndex ( const std::string &  net  )  const [pure virtual]

Gets the index of the input whose name is matching the net.

Parameters:
net name of the net an input of this gate is connected to
Returns:
index of that input

Implemented in OneInputGate, and TwoInputGate.

void LogicGate::netNameMismatch ( const LogicUpdate le  )  const [inline, protected]

Net name mismatch.

Parameters:
le the le
void LogicGate::sendEventsToFanout ( Graph graph,
GNode myNode,
const EventTy inputEvent,
const EventKind type,
const LogicUpdate msg 
) [inline, protected]

Send events to fanout, which are the out going neighbors in the circuit graph.

Parameters:
graph,: the circuit graph
myNode,: the my node
inputEvent,: the input event
type,: the type
msg,: the logic update

The documentation for this class was generated from the following file:
Generated on Tue Aug 2 11:51:27 2011 for Galois by  doxygen 1.6.3