Testing Procedure
Devices
Devices need to be thoroughly tested to ensure they work correctly before
implementing them in a larger system. Small bugs which are implemented
repeatedly can produce disasterous results.
Since you build devices to your own specifications, you will also have to
determine what test procedure will be used to verify its operation. If the
circuit has 4 or less inputs, exhaustive testing should be used. For greater
than 4 inputs, you need to choose the inputs wisely such that the entire device
is checked. Remember, in addition to convincing yourself that the device
operates correctly, your documented test procedure also must convince
your TA that it functions according to your documented specification.
Circuits
One of your circuits has too many inputs to test
exhaustively. You therefore, need to choose inputs which demonstrate that all
parts of the circuit operate. For example, the one which
multiplies each digit by the appropriate weighting factor then adds the results,
is required to add the digits in any 2-digit product. If your test cases do not
include any samples which generate a 2-digit product, how can we know if your
circuit is capable of doing this? How do we know it works to specification?
For the mod-10 generator, since there are only 10 valid inputs you should show
that it produces the correct result for all 10 cases.