Tuesday, January 06, 2009     Register | Login | Search | Contact Us
     

Many of you already received communications about the move of the Cadence user community into cadence.com. And many of you have already joined, with over 4000 registrations in the first two weeks.

The new Cadence Community enhances the ability of Cadence users to connect and collaborate. In addition to moving the community into cadence.com -- enabling single sign-on for community, Sourcelink and Cadence events -- the new site is organized around nine technology segments, giving you easy access to product information, training, forums and blogs. Some of the new features include:
  • Ability to respond to posts via e-mail
  • Technology-specific blogs
  • Latest Web 2.0 social networking capabilities
  • Public profile options
  • Private messaging
  • Friends lists
Visit the new Cadence Community today at www.cadence.com/community and join the discussions!

Registration note: Due to the scope of the enhancements and the new SSO registration system, we were not able to migrate existing cdnusers.org member accounts. So new registrations are required, but this enables a broader set of functionality we think you'll enjoy.

Forum note: Under the guidance of forum moderators, we have taken the 20+ cdnusers.org forums and consolidated them into 11 forums on the new site. Posts have been brought over so you can leverage that posting history. CDNusers forums will be set to read only starting 7/30, and cdnusers.org will be redirected to the new community on 8/4.

Best regards,
Mike and Tom

Michael A. Catrambone - Steering Committee Chairman
Distinguished Engineer
PCB/Mechanical
UTStarcom, Inc.

Tom Diederich
Cadence Community Manager
Home
Forums
Subject: How to retrieve the variable which is defined in the SOC Encounter configure file ?
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
aidans
Posts: 35
Online: User is Offline
2/04/2007 5:18 AM  
I have some variable defined in my SOC Encounter’s configure file, such as set BLOCK CDMA200 set SPC_DIR /user/tom/3gmodule/CDMA In the Encounter shell environment, how can I retrieve the variable ${BLOCK}, and use it in my other scripts, I ask this question because I found it in inconvenient that I must defined some of variables both in the configure file and in my tcl scripts.
BobD
Posts: 80
Online: User is Offline
2/07/2007 7:16 PM  
It looks like the variable defined in the .conf file are only available locally (ie, within the .conf file). If you want to be able to refer to variables set in the .conf file you could defined them as globals:

design.conf:
set rda_Input(ui_gen_footprint) {1}
global bob
set bob test

encounter> loadConfig design.conf
encounter> puts $bob
test

There may be other ways to retrieve some of the things you'd like to extract from the .conf file via FE db commands. For example CDMA200 might be the name of the top cell in your design so you could query that with an FE TCL command:

encounter> dbgDesignName
CDMA200

Hope this helps,
Bob
aidans
Posts: 35
Online: User is Offline
2/07/2007 7:33 PM  
Thanks Bob, It works well.

aidans
Posts: 35
Online: User is Offline
2/07/2007 7:43 PM  
moreover, I have another question.
This is related to our golen.conf

in the config fie there is this lines
set rda_Input(ui_netlist) "$NETLIST"


in our user defined tcl scripts, I write this:
loadConfig golden.conf

Now the question is, Is there is a way I can set the variable *NETLIST* in the user defined scipts. so that I don't need to copy the golden.conf and modified it.

I tried the golbal thing you give to me,
global NETLIST
set NETLIST /path/to/verilog_file
loadConfig golden.conf

It failed to retrieve the $NETLIST


encounter 6> loadconfig ../spc/tcl/golden.conf
Reading config file - ../spc/tcl/golden.conf
can't read "NETLIST": no such variable


Anyway, I just try to setup more efficient design flow.
Thank you in advance.



BobD
Posts: 80
Online: User is Offline
2/08/2007 4:45 AM  
Ah yes- I follow what you're trying to do. I think it's fairly common that you want to keep almost everything in a project/golden conf file, but you want to change just a couple of things (like the netlist or timing constraints or whatever).

I usually do that this way:

set NETLIST /path/to/verilog_file
loadConfig golden.conf 0
set rda_Input(ui_netlist) "$NETLIST"
commitConfig

The key is the "0" after loadConfig which is conceptually the same as what happens when you load a conf file via the GUI. Then clicking "OK" on the Design Import is the same as commitConfig.

Do you think that will suit your needs?
aidans
Posts: 35
Online: User is Offline
2/08/2007 5:09 AM  
Yes, This is what I am looking for. Thank your for your support. You really explained it clearly. Thank you again.
Posting to forums is available to community members only.
Login or Register

Forums > Digital IC > Floorplanning, Place and route > How to retrieve the variable which is defined in the SOC Encounter configure file ?


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.