Altera Quartus II Scripting User Manual
Page 277
Advertising
Chapter 3: Tcl Packages & Commands
3–147
jtag
© July 2013
Altera Corporation
Quartus II Scripting Reference Manual
# IR and DR shift should be locked together to ensure that other
# applications
# will not change the instruction register before the id code value is
# shifted
# out while the instruction register is still holding the IDCODE
# instruction.
device_lock -timeout 10000
device_ir_shift -ir_value 6 -no_captured_ir_value
puts "IDCODE: 0x[device_dr_shift -length 32 -value_in_hex]"
device_unlock
# Close device
close_device
Advertising