A semiconductor device that includes a module under test that is
integrated with the semiconductor device, that receives an input signal
from a test module, and that provides an output signal to at least one
output terminal based on the input signal. An error detecting module is
integrated with the semiconductor device, samples values of the output
signal, and outputs the sampled values to the test module.