Quantcast
Channel: Altera Forums
Viewing all articles
Browse latest Browse all 19390

Quartus TCL Problems - get_all_global_assignments

$
0
0
I'm trying to figure out how to use the get_all_global_assignments TCL command. I might be using it incorrectly, but I strongly suspect there is a bug in the tool.

I have a project who's qsf file is as follows:
Code:

set_global_assignment -name FAMILY "Cyclone II"
set_global_assignment -name DEVICE EP2C35F484C8
set_global_assignment -name TOP_LEVEL_ENTITY toplevel
set_global_assignment -name ORIGINAL_QUARTUS_VERSION "13.0 SP1"
set_global_assignment -name PROJECT_CREATION_TIME_DATE "13:53:34  NOVEMBER 14, 2013"
set_global_assignment -name LAST_QUARTUS_VERSION "13.0 SP1"
set_global_assignment -name PROJECT_OUTPUT_DIRECTORY output_files
set_global_assignment -name MIN_CORE_JUNCTION_TEMP 0
set_global_assignment -name MAX_CORE_JUNCTION_TEMP 85
set_global_assignment -name ERROR_CHECK_FREQUENCY_DIVISOR 1
set_global_assignment -name EDA_SIMULATION_TOOL "ModelSim-Altera (Verilog)"
set_global_assignment -name EDA_OUTPUT_DATA_FORMAT "VERILOG HDL" -section_id eda_simulation
set_global_assignment -name VERILOG_INPUT_VERSION SYSTEMVERILOG_2005
set_global_assignment -name VERILOG_SHOW_LMF_MAPPING_MESSAGES OFF
set_global_assignment -name PARTITION_NETLIST_TYPE SOURCE -section_id Top
set_global_assignment -name PARTITION_FITTER_PRESERVATION_LEVEL PLACEMENT_AND_ROUTING -section_id Top
set_global_assignment -name PARTITION_COLOR 16764057 -section_id Top
set_global_assignment -name VERILOG_FILE SPIBlaster.v
set_global_assignment -name VERILOG_FILE RTL_Sandbox/SPIBlaster.v
set_global_assignment -name BDF_FILE RTL_Sandbox/toplevel.bdf
set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top

In the TCL console, I can extract a single assignment no problem:
Code:

tcl> get_global_assignment -name BDF_FILE
RTL_Sandbox/toplevel.bdf

Now, if I try to extract an item that has multiple values, it tells me to use another command...
Code:

tcl> get_global_assignment -name VERILOG_FILE
Error:ERROR: Assignment VERILOG_FILE has multiple values. Use the "get_all_global_assignments" command to get all values or use the "get_global_assignment -front" command to get the first value.
Error:    while executing
Error:"get_global_assignment -name VERILOG_FILE"

Now, I try to use the get_all_global_assignments command as shown in the documetation and it returns an empty array:
Code:

tcl> set verfiles [get_all_global_assignments -name VERILOG_FILE]
_col31
tcl> foreach_in_collection afile $verfiles {
> puts [lindex $afile 2]
> }

Nothing is printed out!

I've examined the returned array, it's empty, but it does give an array of the correct size. I expect the results of this command to return the TWO VERILOG_FILE names, it returns empty by does have a length of two:
Code:

tcl> set verfiles [get_all_global_assignments -name VERILOG_FILE]
_col31
tcl> foreach_in_collection afile $verfiles {
> puts "test"
> }
test
test


Any ideas about what's going wrong?

Thanks!

Viewing all articles
Browse latest Browse all 19390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>