TCL for physical design following the Tcl manual
Choose a section to drill, or play every section mixed together. Each section lists the commands it covers, and any kinds of card it holds besides the plain one: a command whose meaning you pick.
All sections
A mixed round drawn from every section. Due cards come first, then new cards in random order.
Variables and substitution
The three kinds of bracket, and why arithmetic needs its own command.
setexprincrappendunsetsubstLists
Building and taking apart the data structure most tool scripts are made of.
listlindexllengthlappendlrangelsortlsearchlassignjoinsplitconcatControl flow
Conditions and loops, and the brace rules that make them work.
ifforeachforwhileswitchbreakcontinueProcedures and scope
Writing reusable commands, and reaching variables outside them.
procreturnglobalupvaruplevelnamespaceStrings and patterns
Matching and rewriting the names that fill a physical-design script.
stringformatregexpregsubDictionaries and arrays
Keyed data, and the older array form still seen in tool scripts.
dictarrayFiles, processes, and the environment
Reading and writing files, running other programs, and reading variables from make.
openclosegetsputsfileglobexecsourceenvErrors and robustness
Failing deliberately, catching failures, and checking before acting.
catcherrortryinfoexitTool objects and collections
What a tool command hands back, and why it is not an ordinary list.
get_cellsforeach_in_collectionsizeof_collectionget_object_nameredirectTcl in tool scripts
The patterns that distinguish flow scripts from general-purpose Tcl.
setexprforeachcatchinfo