lcs::Module Class Reference

#include <module.h>

Inheritance diagram for lcs::Module:

lcs::And< width > lcs::FullAdder lcs::Nand< width > lcs::Nor< width > lcs::Not lcs::Or< width > lcs::Tester< inBits, outBits > lcs::Xor< width > List of all members.

Detailed Description

Every circuit element (like an AND gate) which needs to be driven by lcs::InputBus objects has to be derived from this class Module. User of libLCS desirous of defining his/her own element should subclass this class and redefine the virtual function Module::propogate.


Public Member Functions

 Module (void)
virtual ~Module ()
virtual void propogate (void)


Constructor & Destructor Documentation

lcs::Module::Module ( void   )  [inline]

Default constructor.

virtual lcs::Module::~Module (  )  [inline, virtual]

Destructor.


Member Function Documentation

virtual void lcs::Module::propogate ( void   )  [inline, virtual]

Propogates the data line states of the inputs bus(ses) of the module to the output bus(ses) of this module. A subclass of the class Module should override this function to perform the real logic operations on input data lines.

Reimplemented in lcs::And< width >, lcs::FullAdder, lcs::Nand< width >, lcs::Nor< width >, lcs::Not, lcs::Or< width >, and lcs::Xor< width >.


Generated on Sat Oct 14 11:23:40 2006 for libLCS by  doxygen 1.4.7