Forum Discussion
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- Thanks sanmao, I just rewrote these three attached modules which shows the behaviour. one module should write to the other which will then produce final data. If I connect final data out of toplevel then data is ok. If I keep it internal all is dead. However, the internal connection across the two modules fails to drive. Regards --- Quote End --- Hi kaz, maybe I wrong, but I would say your simulation is running forever. There is no condition for stopping the simulation like "$finish". I would add this : //generate reset initial begin reset = 1'b1; reset =# 1000 1'b0; #1000; $finish; end You can define the length of the simulation with the value above "$finish". I don't know modelsim, but for other simulators you need to add something like this in case you want to use a waveform viever: initial begin $dumpfile("test.vcd"); $dumpvars(0,NTSC_frame_tb); end I assume that you would like to define some kind of default value with this assignment ? wire [7:0] eav = 8'h0; wire [7:0] sav = 8'h0; In Verilog this means that you will drive the wire to ground all the time. After removing this your simulation should run. wire [7:0] eav; wire [7:0] sav; Kind regards GPK