#------------------------------------- #This script will simulate the filtref project, assuming that #there is an existing project called "filtref". It also assumes #that there is an existing *.vwf file for the filtref design. #You should run the example.tcl script before running this script, #in order to create the filtref project. The script adds some simulation #setting assignments before running the simulation. # #You can run the script from the Quartus Command Console. #To view the console, go to View-> Auxiliary Windows -> TCL/TK Console #To run the script, the command is: source assign.tcl #------------------------------------- project set_active_sim filtref #initialize simulation file sim initialize #add assignments to simulation setting file (ssf) sim add_assignment "" "" "" FOCUS_ENTITY_NAME filtref sim add_assignment "" "" "" USE_COMPILER_SETTINGS filtref sim add_assignment "" "" "" GLITCH_INTERVAL 2ns sim add_assignment "" "" "" GLITCH_DETECTION ON sim add_assignment "" "" "" GLITCH_DETECTION ON sim add_assignment "" "" "" SIMULATION_COVERAGE ON sim add_assignment "" "" "" CHECK_OUTPUTS OFF sim add_assignment "" "" "" SETUP_HOLD_DETECTION OFF sim add_assignment "" "" "" SIMULATION_MODE timing sim add_assignment "" "" "" START_TIME 1ns sim add_assignment "" "" "" END_TIME 1000ns #check all assignments made to ssf sim get_all_assignments "" "" #check total number of assignments made to ssf sim get_assignment_count "" "" #check each individual assignment in ssf sim get_assignment_value "" "" "" END_TIME #run the simulation until completed sim run end