lcs::Tester< inBits, outBits > Class Template Reference

#include <tester.h>

Inheritance diagram for lcs::Tester< inBits, outBits >:

lcs::Module List of all members.

Detailed Description

template<int inBits, int outBits>
class lcs::Tester< inBits, outBits >

A utility class to test a logic circuit. This class is designed under the assumption that every logic circuit has a well defined set of input data lines encaspulated into a data bus, and a well defined set of out lines encapsulated into another data bus. All possible input data combinations are fed into the circuit and the corresponding outpit bus bits are displayed on the standard output (or display) device.

Parameters:
inBits The number of lines in the input bus.
inBits The number of lines in the output bus.


Public Member Functions

 Tester (const Bus< inBits > &inBus, const Bus< outBits > &outBus)
 ~Tester ()
void run (void)


Constructor & Destructor Documentation

template<int inBits, int outBits>
lcs::Tester< inBits, outBits >::Tester ( const Bus< inBits > &  inBus,
const Bus< outBits > &  outBus 
)

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:
outBus The output bus of the circuit to be tested.
inBus The input bus to the circuit to be tested.
inBits The number of lines in the input bus.
outBits The number of lines in the output bus.

template<int inBits, int outBits>
lcs::Tester< inBits, outBits >::~Tester (  ) 

Destructor.


Member Function Documentation

template<int inBits, int outBits>
void lcs::Tester< inBits, outBits >::run ( void   ) 

Runs the test and displays the results on the stdout device.


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