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

Page 268: Description, Example, Write_source_data –138

Advertising
background image

3–138

Chapter 3: Tcl Packages & Commands

insystem_source_probe

Quartus II Scripting Reference Manual

© July 2013

Altera Corporation

write_source_data

Usage

write_source_data -instance_index <instance_index> -value <value> [-value_in_hex]

Options

-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

#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

Advertising