Using tbllookup
Use this command to reference a system lookup table from Tcl:
tbllookup ?<side>? <table> <value>
- side is the input side to use.
- tableis the name of the table to use.
- value is the input value to use.
This maps a value through a lookup table, and returns the table’s output value. An error happens if the table cannot be found.