• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. How to quickly find device category?

Stats

  • Locked Locked
  • Replies 13
  • Subscribers 143
  • Views 18761
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to quickly find device category?

MedAn
MedAn over 8 years ago

How  can I speed up the search of teh category name for device?

Now I wrote a small script:

ret = nil;
libId = ddGetObj(IndraInitForm->techLibField->value);
catList = ddCatGetLibCats(libId);
foreach(cat catList
   catId = catId = ddCatFindCat(libId cat "r");

   when(catId != nil
      when(ddCatIsObjInCat(cName catId) ret = cat);
   );end when
);end foreach

ret;

But it's take really a lot of time. Maybe somebody can show me another way?

  • Cancel
Parents
  • MedAn
    MedAn over 8 years ago

    Hi Andrew!

    I'm understand and sorry. Simple this question is so small to create a separate topic.

    About file. I have text file with saved DRC error markers.
    I try to use gets() == nil, but I don't know why, it's doesn't work for me.

    cont_Pass 1000.000000
    Rule 568 : Cnt_b: Min. Cont sep. = 0.18
    2 2 1 Tue Sep 5 08:42:53 2017
    Cnt_b: Min. Cont sep. = 0.18
    e 1 2
    CN test_$_cont_Pass_$_layout C 1 0 0 1 0 0
    -19045 -6480 -18885 -6480
    -18885 -6360 -19045 -6360
    e 2 2
    CN test_$_cont_Pass_$_layout C 1 0 0 1 0 0
    -18705 -6480 -18545 -6480
    -18545 -6360 -18705 -6360

    in this file for first error I can collect all coordinates till find next error, but in the end I try to check
    while(gets(string inFile)
    some code

    coord = pcreCompile("^(-*\\d+\\s*)*$");
    pcreExecute(coord string);
    cmdRes = pcreSubstitute(coord "\\0");
    if(cmdRes && cmdRes != "" then
    ;;remove \n symbol
    rexMatchp("\\([^\n]*\\)\n\\([^\n]*\\)" cmdRes);
    cmdRes = rexSubstitute("\\1 \\2");
    l_coord = append1(l_coord cmdRes);

    if(gets(nextLine inFile) == nil
    this I want call my procedure to cope markers, but loop simple finished.

    P.S. If need I can create a new topic.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • MedAn
    MedAn over 8 years ago

    Hi Andrew!

    I'm understand and sorry. Simple this question is so small to create a separate topic.

    About file. I have text file with saved DRC error markers.
    I try to use gets() == nil, but I don't know why, it's doesn't work for me.

    cont_Pass 1000.000000
    Rule 568 : Cnt_b: Min. Cont sep. = 0.18
    2 2 1 Tue Sep 5 08:42:53 2017
    Cnt_b: Min. Cont sep. = 0.18
    e 1 2
    CN test_$_cont_Pass_$_layout C 1 0 0 1 0 0
    -19045 -6480 -18885 -6480
    -18885 -6360 -19045 -6360
    e 2 2
    CN test_$_cont_Pass_$_layout C 1 0 0 1 0 0
    -18705 -6480 -18545 -6480
    -18545 -6360 -18705 -6360

    in this file for first error I can collect all coordinates till find next error, but in the end I try to check
    while(gets(string inFile)
    some code

    coord = pcreCompile("^(-*\\d+\\s*)*$");
    pcreExecute(coord string);
    cmdRes = pcreSubstitute(coord "\\0");
    if(cmdRes && cmdRes != "" then
    ;;remove \n symbol
    rexMatchp("\\([^\n]*\\)\n\\([^\n]*\\)" cmdRes);
    cmdRes = rexSubstitute("\\1 \\2");
    l_coord = append1(l_coord cmdRes);

    if(gets(nextLine inFile) == nil
    this I want call my procedure to cope markers, but loop simple finished.

    P.S. If need I can create a new topic.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information