Platform Designer Components and terp file format
I want to create a component with a variable number of Avalon-ST sinks and sources. I've been looking at the Avalon ST multiplexer _hw.tcl file as an example of how to do this and noticed that it creates the custom System Verilog file by modifying a template .terp file. This .terp file consists of TCL-like variables (e.g. $variable) embedded in the template code.
Procedures in the _hw.tcl file set variables based on the user input and then call altera_terp to (presumably) generate the customised (in this case .sv) file.
Is there any documentation for altera_terp? While it would of course be possible for each user to implement similar functionality by writing their own TCL procedures, it would be much more user friendly and an efficient use of human labour if Intel would provide documentation on how altera_terp works so that users don't have to reinvent this wheel or figure out the syntax by looking at how it is used by Intel provided IP.