################################################################### ## Author : Zahno Silvan ## Email : silvan.zahno@hevs.ch or zahno.silvan@gmail.com ## Description : With this tcl script the project ADNESQ will be ## : compiled and loaded and executed in Modelsim ################################################################### set text "###################################################################" set text "## Start Simulation Script run_sim.do" set text "###################################################################" ################################################################### ##---- 1. Creating working library ################################################################### ##---- 2. Compile additional Xilinx Libaries ################################################################### ##---- 3. Compile the design do comp.do ################################################################### ##---- 4. Loading the design set text "###################################################################" set text "##---- 4. Loading the design" vsim -t ps work.testbench ################################################################### ##---- 5. Load do files for simulation set text "###################################################################" set text "##---- 5. Load do files for simulation" ## TODO view wave do ../03_script/wave.do ################################################################### ##---- 6. Restart and Simulate set text "###################################################################" set text "##---- 6. Restart and Simulate" ##-- restart simulation set start_loadtime [clock seconds] restart -f set end_loadtime [clock seconds] set elapsed_loadtime [expr $end_loadtime - $start_loadtime] set text "LOADTIME: $elapsed_loadtime seconds" ##-- disable printing of warnings to transcript #set IgnoreWarning 1 ##-- run simulation set start_runtime [clock seconds] ################################################################### ##-- Runtime #run -all run 1 ms ################################################################### set end_runtime [clock seconds] set elapsed_runtime [expr $end_runtime - $start_runtime] ##-- output set date [clock format [clock seconds]] set text "LOADTIME: $elapsed_loadtime seconds" set text "RUNTIME: $elapsed_runtime seconds" set text "###################################################################" set text "## END OF SIMULATION" set text "###################################################################"