Cadence 有内部的项目管理和版本管理工具,即TDM,在设计的时候用上TDM工具可以方便的进行项目管理和电路/版图版本管理,最明显的好处就是可以通过版本管理追溯以前的修改,可以防止手贱改错了电路而又不知道如何恢复原状的问题。
以下是结合Cadence Project Design Management帮助文档摘录的TDM简易设置使用方法,分四个部分呈上,第三部分通过一个例子设置了一个简易可用的TDM环境,供大家参考。
Project Setup Example
Flow Chart of Setting Design Management Environment
This chart shows a typical flow for setting up and working in a TDM environment.
The Relationship Between Site, Project and Workare is as below Chart:
Accessing the Tools
To configure your environment so you can access the software, follow these steps:
- Use a text editor to add the following line to your .cshrc file:
set path=(cdsinstallpath/tools/bin $path)
- Source your .cshrc file by typing the following:
source ~/.cshrc
- Test the path by typing the following command in the UNIX window:
tdmdbinfo
When the path is correct, the software returns the following message:
Team Design Manager data base info:
You must be in a Team Design Manager workarea to get
data base version information with this command.
The software version is x.x.xx.
Creating & Reference a Site Directory
To create a site directory, follow these steps:
- Create a site directory by typing the following:
mkdir /net/machine/.../site_dir
- Change directories (cd) to the new site directory:
cd /net/machine/.../site_dir
- Type the following command:
tdmsitesetup
The software creates a directory called TeamRoot in the current site directory:
/net/machine/.../site_dir/TeamRoot
- Use a text editor to add the following information to your .cshrc file:
setenv TWROOT /net/machine/.../site_dir/TeamRoot
Creating a Project
To create a Base Team Design Management project, follow these steps:
- Type the following command in the site directory you created:
tdmmkproject -project mytest –location /net/machine/.../site_dir -basic
The -basic option specifies a Base Team Design Management project.
The software creates the following:
– A Team Design Management project in your site directory. The project contains a directory called mytest.Fprj.
– A directory called projects.Cata in $HOME. The projects.Cata directory contains a link to mytest.Fprj in your site directory. - To confirmthe creation of the Base Team Design Management project, type the following command:
ls /net/machine/.../site_dir
The software displays the contents of your site directory, which in this example includes the TeamRoot and mytest.Fprj directories.
Creating a Workarea
To create a workarea, follow these steps:
- Change directories (cd) to the project directory:
cd /net/machine/.../site_dir/mytest.Fprj
- Type the following command:
tdmmkworkarea -workarea myworkarea
The software creates the following:
– A directory called myworkarea.Work in the following location:
/net/machine/…/site_dir/mytest.Fprj/workAreas.Folder
– A link to myworkarea.Work in your $HOME/workAreas.Cata directory
Importing Unmanaged Libraries
To bring unmanaged libraries or design files into your workarea, follow these steps:
- Change directories (cd) to your workarea by typing
cd $HOME/workAreas.Cata/myworkarea.Work
2.Type the following command:
tdmimportcdslib -library /net/machine/.../path/myLib
The tdmimportcdslib command does the following:
– Copies myLib into your workarea
– Checks in the design data
– Defines myLib in the cds.lib file in your workarea
– Automatically checks in the data to the project data repository
– Sends you e-mail confirming the files created in myLib
Adding Reference Libraries
To reference existing libraries from other projects or from locations that are not part of a team design manager project, follow these steps:
- Change directories (cd) to the workarea by typing
cd $HOME/workAreas.Cata/myworkarea.Work
- Type the following command:
tdmlinkreflib -name refLib -librarypath /cdsinstallpath/path
where refLib is the reference library and /cdsinstallpath/path is the full path to the reference library. Do not include the name of the reference library in the path.
The software does the following:
– Creates a link to the reference library
– Sends an e-mail confirming the link to the reference library
Setting Up Multiple-User Projects
Anyone who is in the Project should Create his own Workarea and work in his own workarea:
- Change directories (cd) to the project directory:
cd /net/machine/.../site_dir/mytest.Fprj
- Type the following command:
tdmmkworkarea -workarea myworkarea
- Updating your Workarea using the following command:
tdmupdate
Adding Updated Library to your cds.lib