Posts

Showing posts with the label Quartus II

Run Quartus II fitter and TimeQuest Timing Analyzer sweeping a list of fitter seed numbers automatically

This Tcl script will help you can to run Quartus II fitter seed sweep without the help of Design Space Explorer. Running fitter seeds sweeping without Design Space Explorer is always a pain in the ass. You have to manually change the seed number, run fitter, run STA and record down the Static Timing Analysis results for comparison later. And if you have 10 seeds to sweep, you will have to re do it again for nine more times. This is a Quartus II Tcl script that automates it. Steps Copy and paste the Tcl code example into a text editor.  Change the "top" design name according to the Quartus II design name. Save the text file as Tcl script with ".tcl" as extension. Example Tcl code # This tcl is used to sweep seed by running fitter and STA, the timing report will be stored in seed_rpt directory load_package flow load_package report # Specify project name and revision name set project_name top set project_revision top # Set seeds set seedList {1 2 3 4 5 6 7 8 9 10} set ...

Run Quartus II fitter and TimeQuest Timing Analyzer automatically using Tcl script

This is a Quartus II Tcl script that will automate the fitter and TimeQuest Timing Analyzer automatically sequentially. By default in Quartus II, the tasks flow customization does not allow running fitter first without running elaboration and synthesis first. This is one of the pre-requisites Altera enforce on the tasks flow. Some times when optimizing a FPGA design by playing around the fitter settings, you will just need to rerun fitter and TimeQuest to get the timing analysis results of the fitter settings change. This script is intended to be use as the script file argument for the "quartus_sh" command line. Steps Copy and paste the Tcl code example into a text editor.  Change the "top" design name according to the Quartus II design name. Save the text file as Tcl script with ".tcl" as extension. Example Tcl codes load_package flow load_package report set project_name top set project_revision top project_open -revision $project_revision $project_name #...

Customize the Quartus II tasks flow to run fitter and TimeQuest Timing Analyzer only

This is how you can customize the Quartus II tasks flow to only run fitter and TimeQuest Timing Analyzer without running elaboration and synthesis first. Without this, the tasks flow will not allow you to customize it this way. You have to run fitter manually and run TimeQuest manually after fitter had finish. Steps Copy and paste the Tcl code example below into a text editor.  Save the text file as Tcl script with ".tcl" as extension. Click "Customize" button at the tasks window. Create and new flow based on "none" existing flow. Lets name this flow as "refit". Click Ok and you will be prompt with a customization window. Click the "Tcl Scripts" button located at the bottom left. Name the task name as "refit". Point the Tcl file name to the location of the Tcl script. Click Ok. You will see a knew tasks flow based on Tcl script. Example Tcl code # Place & Route execute_module -tool fit # TimeQuest Timing Analyzer execute_m...