EDAboard.com | EDAboard.eu | EDAboard.de | EDAboard.co.uk | RTV forum PL | NewsGroups PL

Create a tech lib with skill

elektroda.net NewsGroups Forum Index - Cadence - Create a tech lib with skill

camelot
Guest

Fri Mar 05, 2010 4:35 pm   



Hi,
could someone help me in creating a technology library in skill?

Example:
I've a tech file named mytech.ascii (in ascii format) and I want to
create the lib "NEW_TECH_LIB" loading this ASCII techfile. Something
similar to the first option when you create a new lib interactively.

Thank you,

Camelot

Riad KACED
Guest

Sat Mar 06, 2010 12:51 am   



Hi Camelot,

The following Skill procedure does what you want.
1. Load this procedure into your CIW
2. Execute the procedure as following:
CIW> RKcreateTechLib("NEW_TECH_LIB" "." "mytech.ascii")
The second argument above, i,e "." is the path where "NEW_TECH_LIB" is
created. The current directory in this example. You may change this.
The techFile Skill functions as below are all documented in the
Technology File and Display Resource File SKILL Reference Manual. This
manual is available from your Cadence stream at the following
location:
$CDSHOME/doc/sktechfile/sktechfile.pdf

; Skill starts here
procedure( RKcreateTechLib(libName libPath techFileName "ttt")
let((techFileId)
; 1. Create the technology library
when( ddCreateLib(libName libPath)
; 2. create the techfile fo the technology library, open it in W
mode
techFileId = techOpenTechFile(libName "techfile.cds", "w")
; 3. compile the ascii techfile for the new library
tcLoadTechFile(techFileId techFileName "w")
; 4. save the compiled techFile to the new library
techSaveTechFile(techFileId)
; 5. close the techFile
techCloseTechFile(techFileId)
)
)
)
; Skill ends here

Regards,
Riad.

camelot
Guest

Mon Mar 08, 2010 9:20 am   



On 5 Mar, 23:51, Riad KACED <riad.ka...@gmail.com> wrote:
Quote:
Hi Camelot,

The following Skill procedure does what you want.
1. Load this procedure into your CIW
2. Execute the procedure as following:
   CIW> RKcreateTechLib("NEW_TECH_LIB" "." "mytech.ascii")
The second argument above, i,e "." is the path where "NEW_TECH_LIB" is
created. The current directory in this example. You may change this.
The techFile Skill functions as below are all documented in the
Technology File and Display Resource File SKILL Reference Manual. This
manual is available from your Cadence stream at the following
location:
$CDSHOME/doc/sktechfile/sktechfile.pdf

; Skill starts here
procedure( RKcreateTechLib(libName libPath techFileName "ttt")
  let((techFileId)
    ; 1. Create the technology library
    when( ddCreateLib(libName libPath)
      ; 2. create the techfile fo the technology library, open it in W
mode
      techFileId = techOpenTechFile(libName "techfile.cds", "w")
      ; 3. compile the ascii techfile for the new library
      tcLoadTechFile(techFileId techFileName "w")
      ; 4. save the compiled techFile to the new library
      techSaveTechFile(techFileId)
      ; 5. close the techFile
      techCloseTechFile(techFileId)
    )
  )
)
; Skill ends here

Regards,
Riad.


Thank you very much!!

Regards,

Camelot

Andrew Beckett
Guest

Tue Mar 09, 2010 11:16 am   



camelot wrote, on 03/08/10 07:20:
Quote:
On 5 Mar, 23:51, Riad KACED<riad.ka...@gmail.com> wrote:
Hi Camelot,

The following Skill procedure does what you want.
1. Load this procedure into your CIW
2. Execute the procedure as following:
CIW> RKcreateTechLib("NEW_TECH_LIB" "." "mytech.ascii")
The second argument above, i,e "." is the path where "NEW_TECH_LIB" is
created. The current directory in this example. You may change this.
The techFile Skill functions as below are all documented in the
Technology File and Display Resource File SKILL Reference Manual. This
manual is available from your Cadence stream at the following
location:
$CDSHOME/doc/sktechfile/sktechfile.pdf

; Skill starts here
procedure( RKcreateTechLib(libName libPath techFileName "ttt")
let((techFileId)
; 1. Create the technology library
when( ddCreateLib(libName libPath)
; 2. create the techfile fo the technology library, open it in W
mode
techFileId = techOpenTechFile(libName "techfile.cds", "w")
; 3. compile the ascii techfile for the new library
tcLoadTechFile(techFileId techFileName "w")
; 4. save the compiled techFile to the new library
techSaveTechFile(techFileId)
; 5. close the techFile
techCloseTechFile(techFileId)
)
)
)
; Skill ends here

Regards,
Riad.


Thank you very much!!

Regards,

Camelot

Probably wise to call techGetTechFileName() rather than hardcoding
"techfile.cds" as then it will work in both IC5141 and IC61. If you use
"techfile.cds" you'll need to change the code when you go to IC61.

For example:

techGetTechFileName(techOpenDefaultTechFile())

Regards,

Andrew.

camelot
Guest

Tue Mar 09, 2010 9:25 pm   



On 9 Mar, 11:16, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm> wrote:
Quote:
camelot wrote, on 03/08/10 07:20:





On 5 Mar, 23:51, Riad KACED<riad.ka...@gmail.com>  wrote:
Hi Camelot,

The following Skill procedure does what you want.
1. Load this procedure into your CIW
2. Execute the procedure as following:
    CIW>  RKcreateTechLib("NEW_TECH_LIB" "." "mytech.ascii")
The second argument above, i,e "." is the path where "NEW_TECH_LIB" is
created. The current directory in this example. You may change this.
The techFile Skill functions as below are all documented in the
Technology File and Display Resource File SKILL Reference Manual. This
manual is available from your Cadence stream at the following
location:
$CDSHOME/doc/sktechfile/sktechfile.pdf

; Skill starts here
procedure( RKcreateTechLib(libName libPath techFileName "ttt")
   let((techFileId)
     ; 1. Create the technology library
     when( ddCreateLib(libName libPath)
       ; 2. create the techfile fo the technology library, open it in W
mode
       techFileId = techOpenTechFile(libName "techfile.cds", "w")
       ; 3. compile the ascii techfile for the new library
       tcLoadTechFile(techFileId techFileName "w")
       ; 4. save the compiled techFile to the new library
       techSaveTechFile(techFileId)
       ; 5. close the techFile
       techCloseTechFile(techFileId)
     )
   )
)
; Skill ends here

Regards,
Riad.

Thank you very much!!

Regards,

Camelot

Probably wise to call techGetTechFileName() rather than hardcoding
"techfile.cds" as then it will work in both IC5141 and IC61. If you use
"techfile.cds" you'll need to change the code when you go to IC61.

For example:

techGetTechFileName(techOpenDefaultTechFile())

Regards,

Andrew.- Nascondi testo citato

- Mostra testo citato -

Yes Andrew, I used this function just for compatibility issues, thank
you, once again Smile , for underlining it!

Camelot

Riad KACED
Guest

Tue Mar 09, 2010 10:47 pm   



Hi Andrew,

Thanks for highlighting this !
I did not know this one I would admit.

Regards,
Riad.

elektroda.net NewsGroups Forum Index - Cadence - Create a tech lib with skill

Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
RTV map EDAboard.com map News map EDAboard.eu map EDAboard.de map EDAboard.co.uk map Opony