Change_bank_to_output_pin, Usage, Options – Altera Quartus II Scripting User Manual
Page 292: Description, Example, Change_bank_to_output_pin –162
3–162
Chapter 3: Tcl Packages & Commands
logic_analyzer_interface
Quartus II Scripting Reference Manual
© July 2013
Altera Corporation
change_bank_to_output_pin
Usage
change_bank_to_output_pin [-bank_index <bank index>] [-bank_name <bank name>]
-instance_name <instance name>
Options
-bank_index <bank index>: Index of the bank on the mux to be used as the source of the
output pins
-bank_name <bank name>: Name of the bank to be used as the source of the output pins
-instance_name <instance name>: Name of the Logic Analyzer Interface instance to change
Description
Change the Logic Analyzer Interface output pin's source on the specified instance to use the specified
bank.
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