Altera Quartus II Scripting Manual de usuario Pagina 294

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 634
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 293
3–164 Chapter 3: Tcl Packages & Commands
logic_analyzer_interface
Quartus II Scripting Reference Manual © July 2013 Altera Corporation
get_current_state_of_output_pin
Usage
get_current_state_of_output_pin -instance_name <instance name>
Options
-instance_name <instance name>: Name of the Logic Analyzer Interface instance to change
Description
Query the device to get the current state of the output pins of the specified instance.
The result is either the bank name or "tristated".
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
Vista de pagina 293
1 2 ... 289 290 291 292 293 294 295 296 297 298 299 ... 633 634

Comentarios a estos manuales

Sin comentarios