element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Path to Programmable
  • Challenges & Projects
  • Design Challenges
  • Path to Programmable
  • More
  • Cancel
Path to Programmable
Blog Tinkling the TCL in Xilinx Vivado
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mu.udhay
  • Date Created: 11 Nov 2018 7:17 PM Date Created
  • Views 2343 views
  • Likes 5 likes
  • Comments 0 comments
  • tcl
  • vivado tcl
Related
Recommended

Tinkling the TCL in Xilinx Vivado

mu.udhay
mu.udhay
11 Nov 2018

Hello Folks ! image

 

We are now in the funniest part ! Believe me Guys , i gone through the basics of the tcl at first this week , studying how it works and what are possible pitfalls and various others along with why it is used in Vivado , how it is implemented in Vivado.

 

In this post i would like to give better insights regarding tcl and vivado tcl (Yeah , there is a voltage difference between the two image)

 

Firstly the TCL (but i remember the TICK show)

 

Most of you guys are familiar to programing languages like Python ,if true then you already understand tcl but If not , no harm its just a piece of cake.

TCL like python is a Interpreter language meaning you talk to it (give a command at one time) then it replies to you (Prints Output or Do the task)and again you talk and it goes on(Simple isn't it ).

But it can also be used as a scripting language where a list of tasks (even the Algorithm) is fed to the tcl console and it executes all the commands One by One (Line by Line) to the End , ths is what it mainly helpfull in automating things in terms of applications like Vivado.

 

What you can Do with tcl ?

 

You can do pretty much anything (just like any programing language) such as creating and storing values(strings,Integers,Floating point Numbers) in variable using SET (command), printing on console (using PUTS ) , execute a math (usnig expr ) , Conditional Execution (using if else),Looping (using while,for) , using your own methods (functions) ,file operations,Creating lists,Searching , using Dictionaries ...

 

Why should we Reinvent the Wheel , Similarly there is good Starting guide which is very clear,easy  to understand.I found it useful in understanding about tcl ,you guys can read it here Free of Cost:

http://www.tcl.tk/man/tcl8.5/tutorial/tcltutorial.html

 

After Reading atleast upto chapter 14 (i.e..,from 1.Introduction to 14.Adding New Commands to tcl ) then only you go with Vivado tcl

 

Note: I strongly recommend you to complete prescribed (1 to 14)chapter of above book , to make yourself free from typing commands dumbly as given by anyother  person.It wont take much time but worth the time spent

 

What is Vivado tcl then ?

 

It can be simply seen that tcl is no different from programing langauge like python , in order to implement any custom operations for a specific application like Vivado , they need to create their own functions for each and every specific operation they would like to implement in that application Such as Creating New Project/Open a Project,Create Blockdesign,Create IP through (command line)IP-Integrator,Modify the configurations of the IP,change the External connections(DDR,IO) , Add new Connections,Evaluate design,set Timing Constrains and SoOn.

 

All these functions are implement through Vivado tcl in addition to normal tcl functions and Xilinx has a great document (UG894) to be read to get acquainted to using tcl in Vivado , It really saves your design time.

You can find that Xilinx Vivado TCL Document here :https://www.xilinx.com/support/documentation/sw_manuals/xilinx2018_1/ug894-vivado-tcl-scripting.pdf

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2018_1/ug894-vivado-tcl-scripting.pdf

 

Note:Some versions of Xilinx may not support few vivado tcl commands implemented for later versions,So download the UG894 for that version(above is for 2018.1 version)

 

Simple Way to work with vivado tcl ?

 

When ever to run Xilinx Vivado , there would be tcl console at the Bottom , you can run tcl commands from there and practise using them.

You can also see "vivado.jou" file in the directory where vivado executable is present,it keeps track of the tcl commands executed in the previous session and their outputs are in "vivado.log" file , these files are of Great use when you want to see how each GUI click you made turned into a tcl command for that operation.

You can also see the tcl command to be used by performing it using GUI and see the tcl command generated at the tcl window tab.

 

Is there any Need to Learn TCL ?

It is purely based on your oblective.

If you want to automate some basic processes in creating design , it is best choice as we can export a tcl script to another computer and creaate an exact replica of the project with same configurations,ip integrations in single execution (Power of Command Line !)

 

Finally as always:

If you guys feel difficulty in understanding tcl,don't forget to ask me in comments, i will do my best to help you understand it better .

 

In the Next post i will show you how to implement other peripherals in our design using tcl , So see you In my Next Post image

 

Remember : Make sure you guys read the tcl starter guide before starting On !

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube