Get_current_state_of_output_pin, Usage, Options – Altera Quartus II Scripting User Manual
Page 294: Description, Example, Get_current_state_of_output_pin –164
3–164
Chapter 3: Tcl Packages & Commands
logic_analyzer_interface
Quartus II Scripting Reference Manual
© July 2013
Altera Corporation
get_current_state_of_output_pin
Usage
get_current_state_of_output_pin -instance_name <instance name>
Options
-instance_name <instance name>: Name of the Logic Analyzer Interface instance to change
Description
Query the device to get the current state of the output pins of the specified instance.
The result is either the bank name or "tristated".
Example
# Start a new control sequence.
begin_logic_analyzer_interface_control -hardware_name "USB-Blaster \
\[USB-0\]" -device_name "@1: EP1C20 (0x020840DD)" -file_path \
"lai_demo.lai"
# Query the output pin state.
puts "Current output pin state of instance auto_lai_0:"
puts [get_current_state_of_output_pin -instance_name "auto_lai_0"]
# Change input bank source to the output pins
change_bank_to_output_pin -instance_name "auto_lai_0" -bank_name "Bank 1"
# Query the output pin state.
puts "Current output pin state of instance auto_lai_0:"
puts [get_current_state_of_output_pin -instance_name "auto_lai_0"]
# Change input bank source to the output pins
change_bank_to_output_pin -instance_name "auto_lai_0" -bank_index 0
# Query the output pin state.
puts "Current output pin state of instance auto_lai_0:"
puts [get_current_state_of_output_pin -instance_name "auto_lai_0"]
# Tristate the output pins
tristate_output_pin -instance_name "auto_lai_0"
# Query the output pin state.
puts "Current output pin state of instance auto_lai_0:"
puts [get_current_state_of_output_pin -instance_name "auto_lai_0"]
# End the control sequence.
end_logic_analyzer_interface_control