question about tcl command.

Status
Not open for further replies.

u24c02

Advanced Member level 1
Joined
May 8, 2012
Messages
404
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
4,101
Hi i have question about tcl in design compiler.


set SYNVER [getenv SYNVER]

Does anyone explain to me above command?
What is this [ ] and what this have meaning at all?
thanks
 

getenv SYNVER is for getting environment variable. above mentioned command will set SYNVER to the environment variable SYNVER.
 

The [] means to execute the command inside the brackets (getenv), and return the result for use in the next command (set).
 

set SYNVER $env(SYNVER), should give the same result.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…