Altera Quartus II Scripting Manual de usuario Pagina 299

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 634
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 298
Chapter 3: Tcl Packages & Commands 3–169
misc
© July 2013 Altera Corporation Quartus II Scripting Reference Manual
enable_natural_bus_naming
Usage
enable_natural_bus_naming
Options
None
Description
Enables natural bus naming so that square brackets for bus names do not have to be escaped to prevent Tcl
from interpreting them as sub-commands.
Bus names have the following format:
<bus name>[<bus index>] or <bus name>[*]
The <bus name> portion is a string of alphanumeric characters. The <bus index> portion is an integer
greater than or equal to zero or it can be the character "*" used for string matching. Notice that the <bus
index> is enclosed by the square brackets "[" and "]". For example, "a[0]" and "a[*]" are supported bus
names.
Many Quartus II Tcl commands allow bus names in their arguments, such as:
set_location_assignment -to address[10] Pin_M20
If natural bus naming is enabled, you can just use address[10] instead of having to excape the square
brackets into address\[10\].
There are also Quartus II Tcl commands that take Tcl string match patterns in their arguments, such as:
get_all_instance_assignments -name location -to address[10]
Since Tcl string matching take string patterns containing special characters from the set "*?\[]" as values,
address[10] would be interpreted incorrectly. By enabling natural bus naming, these Tcl commands will
automatically detect address[10] as a bus name so that you don't have to doubly escape the brackets into
address\\\[10\\\].
To disable natural bus naming, type "disable_natural_bus_naming".
For more information on the effects of disabling natural bus naming, type "disable_natural_bus_naming
-h".
Example
# Enables natural bus naming
enable_natural_bus_naming
Vista de pagina 298
1 2 ... 294 295 296 297 298 299 300 301 302 303 304 ... 633 634

Comentarios a estos manuales

Sin comentarios