A Tcl-based CAD Tool Framework for Xilinx's Vivado Design Suite
Tincr is a suite of Tcl libraries written for Xilinx's Vivado IDE. The goal of Tincr is to enable users to build their own CAD tools on top of Vivado. It facilitates this through two primary methodologies, each of which have been implemented by a separate Tcl library. These two libraries have been named TincrCAD and TincrIO.
TincrCAD is a Tcl-based API built on top of native Vivado Tcl commands. It provides a set of commands that are common in the development of custom CAD tools, which supplement the user with higher levels of abstraction, performance gains, and a greater wealth of information.
TincrIO provides a set of commands for pulling design and device data out of Vivado into a open, parsable format. With TincrIO, users are able to generate XDLRC device descriptions and export designs out of Vivado into a "Tincr checkpoint" of EDIF, placement, routing, and constraint files. For more information on generating XDLRC files, see the RapidSmith2 Technical Report.
Installing Tincr can be done in three simple steps:
TINCR_PATH
environment variable: Create an environment variable called TINCR_PATH
and assign it the path to the root directory of the Tincr distribution you downloaded (i.e. the directory containing this README.md
file).pkgIndex.tcl
to your Vivado install: Copy the file <TINCR_PATH>/install/pkgIndex.tcl
to <Vivado path>/tps/tcl/tcl8.5
on your machine.As with any package in Tcl, Tincr must be loaded before any of its commands become available to the Vivado Tcl interface. To do this, open Vivado and enter the following command into the Tcl prompt:
package require tincr
Vivado will load the Tincr packages and a message will be printed to the Tcl prompt indicating what version of Tincr was loaded (e.g. 0.0
). Ensure that this matches the version you downloaded. If you would like to test that Tincr is working, try executing the ::tincr::refresh_packages
command.
All commands in Tincr belong to the ::tincr::
namespace. This means that all Tincr commands must be prefixed with ::tincr::
(e.g. ::tincr::cells get
). It is possible to import all Tincr commands into the global namespace using the following command:
namespace import ::tincr::*
This will save you the trouble of prefixing every command with ::tincr::
(e.g. cells get
). However, this is not recommended as this will make the commands from Tincr override any commands of the same name already in the global namespace.
You can add the following lines to the end of <Vivado path>/tps/tcl/tcl8.5/init.tcl
to force Vivado to automatically load the Tincr package and import all of its commands into the global namespace on startup:
package require tincr
namespace import ::tincr::*
This will save you the trouble of entering both commands each time you restart Vivado.
API documentation can be found here.
Also, the wiki is a great resource for beginners and veterans alike.
If you find any bugs, or have any feature requests, please create an issue.