The first step in learning: Install tcl compilation software
Click here to enter activestate’s official website and download the installation package required for your favorite operating system. What I downloaded here is the installation package under windows. Just install it step by step.
Well, after installation, we can see three applications at the start menu bar.
Among them, wish (windowing shell) has more TK commands than tclsh. tkcon can also run TK commands and save the tcl commands you have written as files. The specific differences will be discovered by yourself in future studies.
Next, let’s type the first tcl command under wish!
set a 1
The meaning of this line of code is to set a to 1, and the result is as follows:
Recommended books:
TCL/TK Introductory Classic (2nd Edition), you can find this book online for study.
--------------------Dividing line--------------------
Vivado and TCL
For those who have installed Vivado, there is no need to install the above environment. We can directly find the Tcl Console on the Vivado GUI interface or find the Vivado Tcl Shell on the start menu bar.
Picture attached! !