Altera_Forum
Honored Contributor
14 years agoAnyway to find output ports on a clock in tcl?
I'm delving into sdc files and tcl and was wondering if there is a way to find all the output ports clocked by a certain clock for a source synchronous design.
My first guess is to make a fanout collection from the pll clock pin:set myFan ]Then I was thinking about using get_registers filtered with *ALTDDIO* and then using the intersection of the two collections to filter out the non IO port registers. Unfortunately there is no tcl command to do this. (I was mis-remembering add_to_collection which is the union!) This is probably a long way around to do something simple but it seems that the ::quartus::sta 1.0 'collection' operations could be extended. Is there a cheat-sheet with useful tcl 'tricks' around?