#include <xor.h>
Inheritance diagram for lcs::Xor< width >:
width
denotes the number of lines in the input data bus. In other words, the template parameter width
denotes the number of inputs to the XOR gate. Hence, one can instantiate an N-input XOR gate by setting the template parameter value to N.
Public Member Functions | |
Xor (const Bus< 1 > &output, const InputBus< width > &input) | |
virtual | ~Xor () |
virtual void | propogate (void) |
lcs::Xor< width >::Xor | ( | const Bus< 1 > & | output, | |
const InputBus< width > & | 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.
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. |
void lcs::Xor< width >::propogate | ( | void | ) | [virtual] |
Propogates the input data line states to the output. Here, an XOR operation is performed on the line states of the data lines of the input bus, and the result is propogated to the single line output bus.
Reimplemented from lcs::Module.