• 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. Error encountered during pcell instantiation??

Stats

  • Locked Locked
  • Replies 24
  • Subscribers 143
  • Views 21293
  • 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

Error encountered during pcell instantiation??

Messi
Messi over 14 years ago
 Hai,

     

    This is the code i have written to read a file and then instantiate a pcell inside an already created pcell:

procedure(mypcell(ruleFile pcellInfo)

  let( (ruleFileTable purposeList mastercv inst )

  ruleFileTable  =  readFile( ruleFile )

;readFile is the function name for another procedure I created to read an file and drop its contents into a table

           foreach(line FileTable

           purposeList = caddr(line)

    ;the table has mainly four elements and I want the third element based on which instantiation has to be carried out

          unless(rexMatchp(pcellinfo purposeList)

           case(pcellinfo

             ("a"

         ;;To Create PCell for “a”

                    mastercv   = dbOpenCellViewByType("test" "pcell" "layout" "" "w")

                  ;mastercv is an already created pcell

                    inst           = dbCreateParamInst(

                                         "pcell" mastercv "a" list(0 0) "R0" 1

                                           list(

                                               list( "w"  "float" 0.5)

                                                )

                                                );dbCreateParamInst

                                         dbClose(mastercv)

                                      ); for case “a”

           ("b"

;;To Create PCell for "b"                   

                     mastercv   = dbOpenCellViewByType("test" "pcell" "layout" "" "w")

                     inst           =  dbCreateParamInst(

                                        "pcell" mastercv "b" list(0 0) "R0" 2

                                           list(

                                                list( "w"  "float" 0.5)

                                                list( "s"  "float" 0.25)

                                                )

                                            );dbCreateParamInst

                                          dbClose(mastercv)

                                          );case

                                   );for case  "b"               

                           );unless

        );foreach

    );let

);procedure

But i am generating errors while i run this code :

Can anyone look into and this find the error in it.....

Thanks,

  Messi
  • Cancel
Parents
  • Messi
    Messi over 14 years ago

    Hai,

      let me put my requirement properly,

    1.Create a pcell based on type given in rule file(this is done) at location "lib1" "pcell" "layout"

    2.Now i have created cellviews with names as rule no.s,inside each of this cellviews i want to instantiate instances of the already created pcell.

    ie.if my rule file matches "width" then i want to take instance from my created pcell at "lib1" "pcell" "layout".My rule file looks like

       ;RULE NO.  LAYER      TYPE       VALUE
    R1A                POLY     WIDTH     0.5
    R1B                POLY      SPACE   0.25
    R2A               ACTIVE    WIDTH     0.7
    R2B               ACTIVE    SPACE    0.3

     I have coded to make it into tabular form.Now i want the new cellview say named "R1A" contain instance from my pcell with parameters taken from rule file.

    The code is like,

          procedure(instPcell(ruleFile libName @rest pcellInfo)
      let( (ruleTable  mastercv cv)
        ruleTable = parseFile(ruleFile)
        mastercv  = dbOpenCellViewByType(nthelem(1 pcellInfo) nthelem(2  pcellInfo)
                       nthelem(3 pcellInfo) "" "r")
        foreach(i ruleTable~>?
         cv   = dbOpenCellViewByType(libName i "layout" "maskLayout" "w")
          cond(
             (rexMatchp("[wW][iI][dD][tT][hH]" nth(1 ruleTable[i]))       
                dbCreateParamInst(
           cv mastercv i list(0 0) "R0" 1
                   list(
                      list( "w1"      "float"  nth(2 ruleTable[i]))
                      list( "layer1"  "string" nth(0 ruleTable[i]))
                      list( "type"    "string" nth(1 ruleTable[i]))
                  ))
       )
      (rexMatchp("[sS][pP][aA][cC][eE]" nth(1 ruleTable[i]))  
         dbCreateParamInst(
           cv mastercv i list(0 0) "R0" 2
         list( list(  "w1"     "float"                       ?  )  (here i want to give poly width as given in rule table)
               list( "space"   "string"     nth(2 ruleTable[i]))
               list( "layer2"  "string"      nth(0 ruleTable[i]))
               list( "type"    "string"      nth(1 ruleTable[i]))
        ));dbCreateParamIns
        )
      (t (println "Arg is an unknown type"))
       );cond
     dbSave(cv)
     dbClose(cv)
          );foreach
       dbClose(mastercv)
      );let
    );procedure

    My error that i want to clear is shown in bold letters..How can give that value??

     

    Regards,

    Messi

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Messi
    Messi over 14 years ago

    Hai,

      let me put my requirement properly,

    1.Create a pcell based on type given in rule file(this is done) at location "lib1" "pcell" "layout"

    2.Now i have created cellviews with names as rule no.s,inside each of this cellviews i want to instantiate instances of the already created pcell.

    ie.if my rule file matches "width" then i want to take instance from my created pcell at "lib1" "pcell" "layout".My rule file looks like

       ;RULE NO.  LAYER      TYPE       VALUE
    R1A                POLY     WIDTH     0.5
    R1B                POLY      SPACE   0.25
    R2A               ACTIVE    WIDTH     0.7
    R2B               ACTIVE    SPACE    0.3

     I have coded to make it into tabular form.Now i want the new cellview say named "R1A" contain instance from my pcell with parameters taken from rule file.

    The code is like,

          procedure(instPcell(ruleFile libName @rest pcellInfo)
      let( (ruleTable  mastercv cv)
        ruleTable = parseFile(ruleFile)
        mastercv  = dbOpenCellViewByType(nthelem(1 pcellInfo) nthelem(2  pcellInfo)
                       nthelem(3 pcellInfo) "" "r")
        foreach(i ruleTable~>?
         cv   = dbOpenCellViewByType(libName i "layout" "maskLayout" "w")
          cond(
             (rexMatchp("[wW][iI][dD][tT][hH]" nth(1 ruleTable[i]))       
                dbCreateParamInst(
           cv mastercv i list(0 0) "R0" 1
                   list(
                      list( "w1"      "float"  nth(2 ruleTable[i]))
                      list( "layer1"  "string" nth(0 ruleTable[i]))
                      list( "type"    "string" nth(1 ruleTable[i]))
                  ))
       )
      (rexMatchp("[sS][pP][aA][cC][eE]" nth(1 ruleTable[i]))  
         dbCreateParamInst(
           cv mastercv i list(0 0) "R0" 2
         list( list(  "w1"     "float"                       ?  )  (here i want to give poly width as given in rule table)
               list( "space"   "string"     nth(2 ruleTable[i]))
               list( "layer2"  "string"      nth(0 ruleTable[i]))
               list( "type"    "string"      nth(1 ruleTable[i]))
        ));dbCreateParamIns
        )
      (t (println "Arg is an unknown type"))
       );cond
     dbSave(cv)
     dbClose(cv)
          );foreach
       dbClose(mastercv)
      );let
    );procedure

    My error that i want to clear is shown in bold letters..How can give that value??

     

    Regards,

    Messi

     

    • 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