is_design_state_complete

Returns a Boolean value (0 for false, 1 for true) indicating if a specific design state is valid. True is returned if the specified design state is valid.

 

is_design_state_complete value

Arguments

value

Must be one of the valid string values summarized in the table below:

 

Value

Description

SETUP_DESIGN

The design is loaded and the family has been specified for the design

DEVICE_SELECTION

The design has completed device selection (die and package).  This corresponds to having successfully called the set_device command to set the die and package

NETLIST_IMPORT

The design has imported a netlist

COMPILE

The design has completed the compile command

LAYOUT

The design has completed the layout command

BACKANNOTATE

The design has exported a post-layout timing file (e.g. SDF)

PROGRAMMING_FILES

The design has exported a programming file (e.g. AFM)

Supported Family

All

Description

Certain commands can only be used after Compile or Layout has been completed. The is_design_state_complete command allows a script to check the design state before calling one of these state-limited commands.

Exceptions

Example

The following code runs layout, but checks that the design state for layout is complete before calling backannotate.

layout –timing_driven

set bLayoutDone [ is_design_state_complete LAYOUT ]

if { $bLayoutDone  != 0 } {

  backannotate -name {mydesign_ba}  -format "SDF" -language "verilog"

  }

}

See Also

compile

get_design_filename

get_design_info

is_design_loaded

is_design_modified

layout

set_design

set_device