-
Notifications
You must be signed in to change notification settings - Fork 19
Setup Tincr
Brad White edited this page Mar 31, 2017
·
5 revisions
Installing Tincr can be done in three simple steps:
-
Clone or download the Tincr distribution to your machine.
- Cloning is recommended because it is easier to update
- Create an environment variable called
TINCR_PATH
and assign it the path of the root folder in the Tincr distribution you downloaded (i.e. the one that contains thetincr
andtincr_test
directories). - Copy the file
<Tincr root>\install\pkgIndex.tcl
to the directory<Vivado root>\tps\tcl\tcl8.5
on your machine.
To verify that Tincr was installed correctly, open a new instance of Vivado in Tcl mode and type package require tincr
. If Tincr is installed correctly, the current version (e.g. 0.0
) will be printed to the console.
Inside of the <Vivado root>\tps\tcl\tcl8.5
directory, there is a file called init.tcl
. This contains a set of Tcl commands that get executed during the initialization of Vivado. It is useful to put commands in there to setup various aspects of Tincr in the Vivado environment. The following list gives a few examples of commands that can be added to the end of init.tcl
:
-
package require tincr
- Automatically loads the
tincr
Tcl package every time Vivado starts - See How to use Tincr
- Automatically loads the
-
namespace import ::tincr::*
- Imports all commands in Tincr into the global namespace, overriding any duplicates
- Must be called after loading the Tincr package
- See How to use Tincr
-
set ::tincr::debug 1
- Sets Tincr's debug level to 1
- The number '1' can be replaced with any number of debug level
- Must be called after loading the Tincr package