#include <not.h>
Inheritance diagram for lcs::Not:
Public Member Functions | |
Not (const Bus< 1 > &output, const InputBus< 1 > &input) | |
virtual | ~Not () |
virtual void | propogate (void) |
The only meaningfull constructor for the class. A default constructor is not explicitly provided. Moreover, the one synthesized by the compiler is practically useless.
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.
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.