Run_simulation, Usage, Options – Altera Quartus II Scripting User Manual

Page 500: Description, Example, Run_simulation –370

Advertising
background image

3–370

Chapter 3: Tcl Packages & Commands

simulator

Quartus II Scripting Reference Manual

© July 2013

Altera Corporation

run_simulation

Usage

run_simulation [-time <time>]

Options

-time <time>: Length of time the simulation runs in nanoseconds

Description

Instructs the Simulator to simulate for a specified time. If you do not specify the length of time the
simulation runs, the Simulator simulates until the simulation is complete.

Example

Example 1

---------
project_open lelut

initialize_simulation

# Simulate the design until the it is complete
run_simulation

project_close

Example 2

---------
project_open lelut

initialize_simulation

# Simulate design for 10ns
run_simulation -time 10ns

# Change value of node "clk1" to 0
force_simulation_value -node clk1 0

# Simulate design for another 20ns
run_simulation -time 20ns

# Change value of node "clk0" to 1
force_simulation_value -node clk0 1

# Simulate until it is complete
run_simulation

project_close

Advertising