- A Logic Circuit Simulation Library in C++ |
#include <tester.h>
Inheritance diagram for lcs::Tester< inBits >:
lcs::Tester
object will feed a different input to a bus (the bus with which it was instantiated) at every clock pulse. The values it feeds range from 0 to 2w-1, where w is the width of the bus with which the lcs::Tester
object was instantiated.
inBits | The number of lines in the input bus. |
Public Member Functions | |
Tester (const Bus< inBits > &inBus) | |
~Tester () | |
virtual void | onTick (void) |
lcs::Tester< inBits >::Tester | ( | const Bus< inBits > & | inBus | ) |
The only meaningfull constructor for the class. A default constructor is not explicitly provided. Moreover, the one synthesized by the compiler is practically useless.
inBus | The input bus to the circuit to be tested. | |
inBits | The number of lines in the input bus. |
lcs::Tester< inBits >::~Tester | ( | ) |
Destructor.
void lcs::Tester< inBits >::onTick | ( | void | ) | [virtual] |
The function which is used by the lcs::Clock
object to notify a lcs::Tester
object about an occurance of a clock pulse.
Implements lcs::TickListener.