element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
  • 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 Lab 4 - TCL me Xilinx
  • 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: mconners
  • Date Created: 26 Oct 2018 2:49 AM Date Created
  • Views 1581 views
  • Likes 5 likes
  • Comments 5 comments
  • pathtoprogrammable
  • tcl
  • xilinx
  • minized
Related
Recommended

Lab 4 - TCL me Xilinx

mconners
mconners
26 Oct 2018

Lab 4 - Using TCL in Vivado Embedded Designs

 

This lab was pretty simple, the goal was to exercise the Vivado environment via the command line using TCL. TCL is the Tool Command Language. It was invented by John Ousterhout at UC Berkeley in 1998. It was intended to unify command languages. It grew in popularity when it was adopted by Sun Microsystems. I remember hearing about TCL and TK in the nineties as a way to add GUI functionality to command line programs. That kind of seems what they are doing here. TCL gives you a way to create all the devices available in the Vivado suite right from the command line. This would allow you to script the creation of the programmable device without having to open the GUI. As you can guess this gives quite a bit of control and freedom. You can batch create and automate your designs. How handy.

 

There is a little TCL console at the bottom of the editor that prints out every TCL command that gets executed as you are designing your device. I can see this as being a very powerful tool as you become an expert Programmable Device developer, but I don't see much utility in this class, but... I don't know what the future will bring. They had us open projects, close projects start the GUI, create a new device, and add a port to the device.

 

The commands look like:

create_bd_port -dir O -type rst Reset

open_project

write_bd_tcl

write_bd_tcl basic_design.tcl

and

help write_project_tcl

 

to get help on the TCL commands.

 

image

 

You can see the start_gui TCL command in the lower TCL Console window.

 

image

 

The TCL commands are in blue and the responses are in black in this view.

 

It shows that it opened the project:

open_project /home/mconners/progs/E14-Zync/ZynqHW/2017_4/ZyncDesign/ZyncDesign.xpr

 

and apparently updated the compile order

update_compile_order -fileset sources_1

 

As I mentioned I'm not sure this will get explored in more depth as the labs go on, but it was nice that they pointed it out.

 

I'm going to close out this blog for now, it looks like Lab 5 is going to cover accessing the PL (Programmable Logic) section of the SOC, and isn't that really what we're all here for?

 

Until next time,

 

 

Mike

  • Sign in to reply

Top Comments

  • DAB
    DAB over 6 years ago +2
    Good start. Did they explain why there were so many warnings? DAB
  • mconners
    mconners over 6 years ago +1
    Ok. Looks like I lied. Chapter/Lab 9 covers TCL scripting. We'll see where that goes. I'm still more interested in the Programmable logic aspect at this point. Mike
  • shabaz
    shabaz over 6 years ago +1
    Hi Mike! That's very cool that they're using TCL.. it's a mature language, and from what I recall it was quick to pick up.. I remember coding a newsreader into a router : ) because it supported TCL, and…
Parents
  • DAB
    DAB over 6 years ago

    Good start.

     

    Did they explain why there were so many warnings?

     

    DAB

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • DAB
    DAB over 6 years ago

    Good start.

     

    Did they explain why there were so many warnings?

     

    DAB

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • mconners
    mconners over 6 years ago in reply to DAB

    Well, there were info messages. Just keeping you in the loop the they perform their magic, I guess image

     

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
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