I am a super newbie in this area so I apologize in advance for any dumb thing I might say! :D
I work with Cadence's RTL Compiler and I am trying to automate the process of synthesizing so many designs with different sizes located in different directories, and producing the reports and save them in each folder. I am using tcl scripts to run the commands of the RTL program inside Linux terminal.
First, I have to do some initializations outside the RTL environment. So I have created a script file called setup.tcl that I call from the Linux terminal and then call the RTL program itself (rc):
source setup.tcl
rc
This will run the RTL compiler program inside the same terminal so now the compiler commands can be entered.
rc:/>
Now, I need a script for the RTL commands named rtl_script.tcl to run all the commands inside RTL environment and it will work just fine doing:
rc:/>source rtl_script.tcl
I need to run the whole routine with just one command so that I can loop it and everything.
More precisely, a master script called master.tcl is needed that first runs the setup.tcl, opens RTL Compiler, and then runs rtl_script.tcl inside the rc environment. All done in the same terminal. Something like:
source setup.tcl
rc
source rtl_script.tcl
The problem is that when I enter the command source master.tcl the shell stops after entering the RTL environment and it does not run the rtl_script.tcl. Any help would be appreciated. Thanks.