lcs::Not Class Reference

#include <not.h>

Inheritance diagram for lcs::Not:

lcs::Module List of all members.

Detailed Description

A class which encapsulates a logical NOT gate. Unlike most other gates in libLCS, the NOT gate can only take a single line input bus.


Public Member Functions

 Not (const Bus< 1 > &output, const InputBus< 1 > &input)
virtual ~Not ()
virtual void propogate (void)


Constructor & Destructor Documentation

lcs::Not::Not ( const Bus< 1 > &  output,
const InputBus< 1 > &  input 
)

The only meaningfull constructor for the class. A default constructor is not explicitly provided. Moreover, the one synthesized by the compiler is practically useless.

Parameters:
output The single line output bus of the gate.
input The multiline input bus to the gate.
width The number of lines in the input bus.

virtual lcs::Not::~Not (  )  [virtual]

Destructor.


Member Function Documentation

virtual void lcs::Not::propogate ( void   )  [virtual]

Propogates the input data line state to the output. Here, a NOT operation is performed on the line state of the data line of the input bus, and the result is propogated to the single line output bus.

Reimplemented from lcs::Module.


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