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

Page 291: Description, Example, Begin_logic_analyzer_interface_control –161

Advertising
background image

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 <device name> -file_path <file
path> -hardware_name <hardware name>

Options

-device_name <device name>: Name of the device to be controlled

-file_path <file path>: Path of the Logic Analyzer Interface (.lai) file

-hardware_name <hardware name>: Name of the hardware that connects to the JTAG chain

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

Advertising