Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 12/13/2021
Public

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

Document Table of Contents

3.1.14.6. write_source_data (::quartus::insystem_source_probe)

The following table displays information for the write_source_data Tcl command:

Tcl Package and Version

Belongs to ::quartus::insystem_source_probe

Syntax write_source_data [-h | -help] [-long_help] -instance_index <instance_index> -value <value> [-value_in_hex]
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
-instance_index <instance_index> Index of the In-System Sources and Probes instance to communicate with
-value <value> Value for the source
-value_in_hex Specify that the value string is represented in hexadecimal format
Description

Sets values for the sources. A value string is sent to the source values. MSB is on the left and LSB is on the right. The value string is is truncated on the left (MSB) side if necessary. By default, the values are represented as a binary string. Optionally, the option -value_in_hex makes the values hex strings.

Example Usage
#List probe data of instance 0
start_insystem_source_probe -hardware_name "USB-Blaster \[USB-0\]" -device_name "@1: EP1S25/_HARDCOPY_FPGA_PROTOTYPE (0x020030DD)"
puts "write source data 10010"
write_source_data -instance_index 0 -value "10010"
puts "source data of instance 0"
puts [read_source_data -instance_index 0]
end_insystem_source_probe
Return Value Code Name Code String Return
TCL_OK 0 INFO: Operation successful
TCL_ERROR 1 ERROR: The specified device is not found.
TCL_ERROR 1 ERROR: The specified hardware is not found.
TCL_ERROR 1 ERROR: An internal Tcl interpreter error occurred.
TCL_ERROR 1 ERROR: The specified In-System Sources and Probes instance index is invalid.
TCL_ERROR 1 ERROR: No In-System Sources and Probes instance was found.

Did you find the information on this page useful?

Characters remaining:

Feedback Message