Re:Verilog waveform question
I did simulation using your testbench code itself and also it runs after 15 time units also in Modelsim 6.3c. Set tour run length as 5 time units.
Nope, 0-15 is as it should be. You are monitoring changes. And the last change occurs at t=15. The simulator may run for 20 time units, but if you don't perform a change in the time interval 15-20, then you are not going to see a change during that interval. As an example say you add another #100; at the end, the simulator would now run for a total of 120 time units. But you would still only see actual changes between t=0 and t=15. If you want to see more changes, then you'll have to actually change t_a or t_b somewhere after t = 15.