Hello,
In verilog, it is possible to write test benches that set input ports to some values and print the output (to manually check modules are working correctly).
Is it possible to explicitly specify in the test bench what values you expect as output, and the test to fail if those values are not met ?
For example let's say I write a module that has A and B as inputs and C as output.
I would like to check that C is same as what is defined in the table below.
A B C
0 0 0
0 1 0
1 0 0
1 1 1
While searching info about GTKWave (and possible ways to do what I explain above) I have found this
screenshot which show some values in red. Are those values because of test that does not meet some requirements ?