############################################################################## # File: batch.cmd ############################################################################## ######################################################## # One method is to run until BREAKPOINT_NOT is asserted, # then it will interrupt. That is done first: # !echo !echo !echo Running in free-running mode until BREAKPOINT_NOT asserted... step 3 FORCE RESET 0 step 1 # dunno why a step is required but it is here run 10 !echo Done with the free running version. Final circuit state follows: INCLUDE "disp" !echo Dumping memory to "mem.out1" BANK 0 LENGTH 1024 MEMORYUPLOAD "mem.out1" !echo Here are the memory contents: !od -x mem.out1 # ##################################################### # Now, we will step individually and display signals. # First, we need to re-initialize the TERAMAC state: !echo !echo !echo Reinitializing to run cycle-by-cycle... !echo Running cycle-by-cycle... !echo INCLUDE "init" # Now run it # Step once with RESET asserted step 1 INCLUDE "disp" # Contains all the display commands FORCE RESET 0 step 1 INCLUDE "disp" step 1 INCLUDE "disp" step 1 INCLUDE "disp" step 1 INCLUDE "disp" step 1 INCLUDE "disp" step 1 INCLUDE "disp" step 1 INCLUDE "disp" !echo Done, dumping memory to "mem.out" # Now dump out the memory contents BANK 0 LENGTH 1024 MEMORYUPLOAD "mem.out" !echo Here are the memory contents: !od -x mem.out !echo Done, exiting... QUIT