Begin_logic_analyzer_interface_control, Usage, Options – Altera Quartus II Scripting User Manual
Page 291: Description, Example, Begin_logic_analyzer_interface_control –161

Chapter 3: Tcl Packages & Commands
3–161
logic_analyzer_interface
© July 2013
Altera Corporation
Quartus II Scripting Reference Manual
begin_logic_analyzer_interface_control
Usage
begin_logic_analyzer_interface_control -device_name
Options
-device_name
-file_path
-hardware_name
Description
Starts the Logic Analyzer Interface control sequence to query the Logic Analyzer Interface output pin state
and change output pins state. The control sequence should be terminated with
end_logic_analyzer_interface_control.
The hardware and device name can be obtained by using get_hardware_names and get_device_names
respectively from the jtag package.
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