Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 9/26/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

4.1.23.1. begin_logic_analyzer_interface_control (::quartus::logic_analyzer_interface)

The following table displays information for the begin_logic_analyzer_interface_control Tcl command:

Tcl Package and Version

Belongs to ::quartus::logic_analyzer_interface

Syntax begin_logic_analyzer_interface_control [-h | -help] [-long_help] -device_name <device name> -file_path <file path> -hardware_name <hardware name>
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
-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 Usage
# 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
Return Value Code Name Code String Return
TCL_OK 0 INFO: Operation successful
TCL_ERROR 1 ERROR: A Logic Analyzer Interface control sequence has been started already.
TCL_ERROR 1 ERROR: The specified device is not found.
TCL_ERROR 1 ERROR: The Logic Analyzer Interface file (.lai) cannot be opened, or it is an invalid file.
TCL_ERROR 1 ERROR: The specified hardware is not found.