Download digital logic simulation and synthesis using modelsim, precision rtl
Transcript
17 hundreds of clock cycles... there are far easier ways of doing this as shown in 2(b). 2(b) A DO file which makes use of another DO file. Create the following two DO files called clock.do and count3b.do respectively: clock.do: # toggle to clock between 1 and 0 force clk 1 run 2 force clk 0 run 2 count3b.do: # This .do file reads in another .do file which # toggles the clock signal for 9 cycles # add all signals to the Waveform window add wave * # apply a reset to the counter force resetn 0 force clk 0 force count_en 1 run 2 # unassert the reset signal and clock # for several cycles force resetn 1 run 2 do do do do do do do do do clock.do clock.do clock.do clock.do clock.do clock.do clock.do clock.do clock.do Simulate the design: