RHenr
New Contributor
2 years agoUsing get_entity_instances properly in reusable sdc files
Hello,
I would like to write reusable sdc exceptions for components that can be shared accross several projects.
The get_entity_instances command seems to be what I am looking for but I'm face issues with it, as I'm not a tcl expert.
I have started with something like this :
set myList [get_entity_instances -nowarn MyEntity] foreach elem $myList { # This command is ok set_multicycle_path -from "$elem|myVect[0]" -to "$elem|mySignal" -setup 2 # This command is wrong because curly braces prevent variable evaluation set_multicycle_path -from {$elem|myVect[*]} -to {$elem|mySignal} -setup 2 # This command reports unmatching keeper/pin/etc set_multicycle_path -from "$elem|myVect[*]" -to "$elem|mySignal" -setup 2 }
My question is : how should I write these commands to use vectors ?
Thanks
Edit : it seems it was not working because my constraint had the first form :
# This constraint fails set_multicycle_path -from "$elem|SUBMODULE:submodule|myVect[*]" -to "$elem|mySignal[*]" -hold 2 # This constraint is ok set_multicycle_path -from "$elem|submodule|myVect[*]" -to "$elem|mySignal[*]" -hold 2