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

Page 486: Description, Example, Enable_all_simulation_breakpoint –356

Advertising
background image

3–356

Chapter 3: Tcl Packages & Commands

simulator

Quartus II Scripting Reference Manual

© July 2013

Altera Corporation

enable_all_simulation_breakpoint

Usage

enable_all_simulation_breakpoint

Options

None

Description

Enables all breakpoints.

Example

project_open one_wire

initialize_simulation

# Create breakpoint bp1 which will give warning message when simulation
# time reaches 10ns
create_simulation_breakpoint -breakpoint bp1 -equation "TIME_EQ(10ns)" \
-action "GIVE_WARNING"

# Create breakpoint bp2 which will give info message when time reaches
# 100ns
create_simulation_breakpoint -breakpoint bp2 -equation "TIME_EQ(100ns)" \
-action "GIVE_INFO"

# Create breakpoint bp3 which will give error message when time reaches
# 200ns
create_simulation_breakpoint -breakpoint bp3 -equation "TIME_EQ(200ns)" \
-action "GIVE_ERROR"

# All breakpoints will be disabled
disable_all_simulation_breakpoint

# Run simulation. It shouldn't break at time=10ns since bp1 has been
# disabled
run_simulation -time 50ns

enable_all_simulation_breakpoint

# Run simulation to the end. Expect bp2 and bp3 to break at 100ns and
# 200ns since all breakpoints have been enabled
run_simulation

project_close

Advertising