Altera Home Page
Literature Licensing
Buy On-Line Download

  Home   |   Products   |   Support   |   End Markets   |   Technology Center   |   Education & Events   |   Corporate   |   Buy On-Line  
  Knowledge Database   |   Devices   |   Design Software   |   Intellectual Property   |   Reference Designs   |   Design Examples   |   mySupport  

 Products
      MAX/MAX II
      Stratix/Stratix GX
      Nios II
  
 Functionality
      Arithmetic
      Memory
      Bus & I/O
      Logic
      Interfaces & Peripherals
      DSP
      Communications
      PLL & Clocking
  
 Design Entry
      Quartus II Project
      Tcl
      VHDL
      Verilog HDL
      C Code Examples
      DSP Builder
      TimeQuest
   On-Chip Debugging
  
 Simulation Tools
      Mentor Graphics ModelSim
      Cadence NCsim
      Synopsys VCS
  
 Legacy Examples
      Graphic Editor
      AHDL
  

TimeQuest Example: Reporting Multiple Operating Conditions

This example shows a simple Tcl script that you can use to generate a multicorner analysis in the TimeQuest user interface. A multicorner analysis verifies that the timing constraints specified for the design meet all operating conditions of the device. Download or copy the Tcl script and run it by typing the following in the TimeQuest Console pane:

tcl> source multicorner.tcl

Multicorner Analysis Tcl Script

Download or copy the multicorner.tcl script.

The use of this design is governed by, and subject to, the terms and conditions of the Altera Hardware Reference Design License Agreement.

proc analyze { id } {
 # Insert timing reports here
 create_timing_summary -setup -panel_name "$id: Summary (Setup)"
 create_timing_summary -hold -panel_name "$id: Summary (Hold)"
 create_timing_summary -recovery -panel_name "$id: Summary (Recovery)"
 create_timing_summary -removal -panel_name "$id: Summary (Removal)"
 report_min_pulse_width -nworst 100 -panel_name "$id: Minimum Pulse Width"
}

# Create a timing netlist for analysis
create_timing_netlist

# Read in SDC file
read_sdc

# Determine the current & default operating conditions. The default is used
# to prevent re-analyzing the default condition while looping through the
# available operating conditions.

set default_operating_conditions [get_operating_conditions]
set current_operating_conditions $default_operating_conditions

# Generate the corner-specific analyses for the default operating
# conditions.

analyze $current_operating_conditions

# Now loop over the remaining operating conditions

foreach_in_collection current_operating_conditions \ [get_available_operating_conditions] {
 
    # Make sure we don't re-analyze the default conditions.

    if {$current_operating_conditions != $default_operating_conditions} {
    # Generate the corner-specific analyses for the
    # next operating conditions.

        set_operating_conditions $current_operating_conditions

        update_timing_netlist

        analyze $current_operating_conditions
    }

}

The Tcl script generates the timing reports defined in the procedure proc analyze for all available operating conditions of the device. All reports generated are marked as out-of-date in the TimeQuest View pane except for the final reports generated for the last operating condition.

Design Examples Disclaimer

These design examples may only be used within Altera Corporation devices and remain the property of Altera. They are being provided on an “as-is” basis and as an accommodation; therefore, all warranties, representations, or guarantees of any kind (whether express, implied, or statutory) including, without limitation, warranties of merchantability, non-infringement, or fitness for a particular purpose, are specifically disclaimed. Altera expressly does not recommend, suggest, or require that these examples be used in combination with any other product not provided by Altera.

  Please Give Us Feedback