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

Page 499: Description, Example, Release_simulation_value –369

Advertising
background image

Chapter 3: Tcl Packages & Commands

3–369

simulator

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

release_simulation_value

Usage

release_simulation_value -node <hpath>

Options

-node <hpath>: Hierarchical path name of the signal or group of signals

Description

Releases the forced value of the specified signal or group of signals. After the signal's value is released, the
Simulator can overwrite the current value when simulating at a future time.

Example

project_open gates

initialize_simulation

run_simulation -time 10ns

puts "Value of out_a = [get_simulation_value -node out_a]"
# Value of out_a = X

force_simulation_value -node out_a 0

puts "Value of out_a = [get_simulation_value -node out_a]"
# Value of out_a = 0

run_simulation -time 10ns

puts "Value of out_a = [get_simulation_value -node out_a]"
# out_a has been forced to 0, it won't be updated during the last 10ns
# simulation.
# Value of out_a = 0

# Release the value 0 hold by out_a
release_simulation_value -node out_a

run_simulation

puts "Value of out_a = [get_simulation_value -node out_a]"
# Previous forced value has been release, out_a is updated with the
# latest value
# Value of out_a = 1

project_close

Advertising