How to write testbench for digital circuits that output video/audio signal

verification

As far as I have seen, a testbench will provide some stimulus to a DUT and the output shall be compared with expected values. This is one way to verify.

Many digial circuits however, may produce more complex outputs for example if they output a video or audio signal. How to people write a testbench that is able to verify such a signal.

In other words, audio/video signal may be have a lot of data in it. Do we need to look at it from a higher level when we simulate?

Best Answer

Testbenches can take stimulus from files and write the result to files.

store the input audio/video data in a file (without compression) and use this as the stimuli. store the results in another file . you may have to verify the result manually by playing/reading the output file.

Implementing and testing on an FPGA would be better as the simulation can take time.