TOPICS
Course materials
Course materials are renowned for being the most comprehensive and user friendly available. Their style, content and coverage is unique in the HDL training world and has made them sought after resources in their own right.
Course fees include:
Fully indexed course notes creating a complete reference manual
Workbook full of practical examples and solutions to help you apply your knowledge
Structure and Content
Introduction
Origins of Tcl • Exploring the benefits of Tcl in the digital design flow • Internet resources for problem solving and sharing solutions • Tcl book recommendations • Reference materials for the language
Getting Started
Running Tcl Shell in UNIX or Windows • Experimenting with commands in the shell • Creating and running a script file • Variables and substitution • Launching other commands • Command substitution • Structure of a Tcl command • Quoting • Reading the keyboard
The basics of Tcl
More on substitution and quoting • Tcl grammar rules • Comments • Some common commands • Lists and strings • Launching other commandsusing exec • Environment variables • File manipulation
Creating Real Programs
Commands for flow control • Procedures and arguments • Default arguments • Scope • Return values • Opening Files • Reading and writing files • Formatting data as text • Commands for calculation • Manipulating strings • Manipulating lists • Array variables • Dictionaries • Global and uplevel references • Introspection with the info command
Pattern Matching
Glob-style matching • Regular expressions – background • Using regular expressions to analyse text • Details of regular expression syntax • Grouping, capture and back-references • Regexp substitution • A significant example, analysing HDL source code
Namespaces and Packages
Functional decomposition • Variables • Namespace import and export • Hierarchical namespaces • Tcl libraries • Autoloading • Providing and using packages • Packages and namespaces • Modules • Starkits • TEApot.