- A Logic Circuit Simulation Library in C++ |
#include <module.h>
Inheritance diagram for lcs::Module:
Public Member Functions | |
Module (void) | |
virtual | ~Module () |
virtual void | onStateChange (int portId) |
virtual void | onPosEdge (int portId) |
virtual void | onNegEdge (int portId) |
lcs::Module::Module | ( | void | ) | [inline] |
Default constructor.
virtual lcs::Module::~Module | ( | ) | [inline, virtual] |
Destructor.
virtual void lcs::Module::onNegEdge | ( | int | portId | ) | [inline, virtual] |
A subclass of the class Module should override this function so that it can be notified of a negetive edge on its input busses. If a lcs::LINE_NEG_EDGE event occurs on an input bus, the bus will call this function on the corresponding module object as a notification of the occurance of the event.
Reimplemented in lcs::DFlipFlop< type, delay >, and lcs::JKFlipFlop< type, delay >.
virtual void lcs::Module::onPosEdge | ( | int | portId | ) | [inline, virtual] |
A subclass of the class Module should override this function so that it can be notified of a positive edge on its input busses. If a lcs::LINE_POS_EDGE event occurs on an input bus, the bus will call this function on the corresponding module object as a notification of the occurance of the event.
Reimplemented in lcs::DFlipFlop< type, delay >, and lcs::JKFlipFlop< type, delay >.
virtual void lcs::Module::onStateChange | ( | int | portId | ) | [inline, virtual] |
A subclass of the class Module should override this function so that it can be notified of a state change on its input busses. If a lcs::LINE_STATE_CHANGE event occurs on an input bus, the bus will call this function on the corresponding module object as a notification of the occurance of the event.
Reimplemented in lcs::And< width, delay >, lcs::FullAdder, lcs::Nand< width, delay >, lcs::Nor< width, delay >, lcs::Not< delay >, lcs::Or< width, delay >, and lcs::Xor< width, delay >.