Forum Discussion

SKon1's avatar
SKon1
Icon for Occasional Contributor rankOccasional Contributor
5 years ago

Executing a user added TCL script

Hello,

If I write the following 2 lines of code inside Quartus TCL console:

set f [open d:/some_file.vhd w]
close $f 

I get a file named "some_file.vhd" created in d:/ of my PC.
I wanted this file to be created every time I run compilation - so my idea was to write these two lines inside a TCL file named: "some_script.tcl" and add this file to my Quartus project as a source file.
I did that but it doesn't work. It seems like the script inside the TCL file doesn't run and the file isn't created.

What did I do wrong ?

2 Replies