I've typed a design code and a testbench code for inverter circuit. The input is of 4 bits, and so is the output. I've tried to display the waveform using:
$dumpfile("dump.vcd");
$dumpvars(1);
However, it keeps giving me the message:
Warning: Only a single slice of data found. Did you specify valid 'From/To' times?
Can anybody help me?
Link for my code: https://edaplayground.com/x/EYku
Since no time elapses in your simulation, it is no wonder you get a warning on EDA Playground when you instruct it to display waveforms.
To avoid the warning, uncomment at least one of your delays. Also, you should call
$dumpvars
at time 0:This runs without warnings: edaplayground