Altera_Forum
Honored Contributor
16 years agoGet Parameter from with TCL Script
I'm trying to get a parameter from a verilog block from with a TCL script we setup as a post flow script. It seems like get_parameter should be the correct call, but I have tried various combination's of the -entity, -name, and -to but the result always is NULL. Quartus help was not overly helpful. Here's one example I have tried:
set my_param [get_parameter -name "paramA" -to SubBlock.v] post_message "Parameter is ($my_param )" Output: Parameter is () Top level is a schematic which instantiates the SubBlock symbol and sets the numerical my_param (to 8 in this case) via properties for the SubBlock. Project: MyProj.qpf Revision: MyProj Top: MyTop.bdf Verilog: SubBlock.v & SubBlock.bsf Parameter within Verilog: paramA = 16 Anybody have an example of pulling out a parameter from a verilog sub-block or specific example for this scenario? Thanks