Enable_simulation_breakpoint, Usage, Options – Altera Quartus II Scripting User Manual
Page 487: Description, Example, Enable_simulation_breakpoint –357

Chapter 3: Tcl Packages & Commands
3–357
simulator
© July 2013
Altera Corporation
Quartus II Scripting Reference Manual
enable_simulation_breakpoint
Usage
enable_simulation_breakpoint -breakpoint
Options
-breakpoint
Description
Enables a breakpoint with the specified name.
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 in_br has 0 in
# value
create_simulation_breakpoint -breakpoint bp2 -equation \
"EQUAL_TO(HPATH(|one_wire|in_br),BUS(0)))" -action "GIVE_INFO"
# Create breakpoint bp3 which will give error message when both in_br and
# out_br have 1 in value
create_simulation_breakpoint -breakpoint bp3 -equation \
"EQUAL_TO(HPATH(|one_wire|out_br),BUS(1)),EQUAL_TO(HPATH(|one_wire|in_br), \
BUS(1))" -action "GIVE_ERROR"
# Before running simulation, disable bp2
# Therefore it shouldn't break at time=0ns when in_br=0
disable_simulation_breakpoint -breakpoint bp2
# When running simulation for the first 50ns,
# expect to see bp1 breaks at time=10ns
run_simulation -time 50ns
delete_simulation_breakpoint -breakpoint bp1
enable_simulation_breakpoint -breakpoint bp2
# Since bp2 is enabled, expect to see bp2 breaks at time=100ns
# when in_br becomes 0 again
run_simulation -time 60ns
# Run simulation until the end of completion
run_simulation
project_close