• 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 set F3 as a pop-up menu for particular function?

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 14996
  • 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 set F3 as a pop-up menu for particular function?

kpai
kpai over 12 years ago

I have a function call AddBLKLayers that can create add-on mutilple layers base on particular selected rectangle.  Now I would like to use F3, such as in Rule function, once the user press F3, it will have a particular pop-up that associate with AddBLKLayers function.

Can anyone show me how to set F3 key to have a pop-up menu when AddBLKLayers in use?

Thanks,

Kathy

  • Cancel
Parents
  • kpai
    kpai over 12 years ago

    Here is the code that I completed yesterday when I select a layer, it will add-on the rest of blockage layers or exclusive layers as needed.   This code only to add-on the extra layers that I defined without any other choices for user; hence, I thought of to add on F3 key as an option for user to have the choice of choose particular layers to add-on.

    I'm just about to start to write the OptionsForm as you suggested.   I'm not familiar this and definitely will need your help later.

    exLayers = '(("ex_R_rule" "guideline") ("ex_R_rule" "require") ("ex_R_rule" "recommend") ("ex_R_rule" ("analog"))

    dmyLayers = '(("ODBLK" "dummy") ("POBLK" "dummy") ("DMEXCL" "dummy1") ("DMEXCL" "dummy2").....("DMEXCL" "dummya"))

    procedure(AddBLKLayers(@optional (LayerSel car(geGetSelSet()~>lpp)))

      CurSel = car(geGetSelSet()~>lpp)

      LayerSel = car(CurSel)

      if( CurSel != nil && CurSel != "drawing" && CurSel != "pin" then

         if(LayerSel == "ex_R_rule" then   /* Place additional exclusive layers */

            foreach(layer exLayers

               if( layer != CurSel then

                     printf("Added layer = %L\n" layer)

                     dbCreateRect(

                          geGetEditCellView()

                          layer

                          CCSgetBBox()

                     ) ;dbCreateRect

                else

                   printf("\n %L exist and skipped !\n\n" layer)

            );if

         );foreach

        else  /* Place additional blockage layers */

          foreach(layer dmyLayers

             if(layer != CurSel then

                 printf("Added layer = %L\n" layer)

                 dbCreateRect(

                        geGetEditCellView()

                        layer

                        CCSgetBBox()

                  );dbCreateRect

             else

               printf("\n %L exist and skipped !\n\n" layer)

         );if dmyLayers

       );foreach dmyLayers

      );if LayerSel

      else /* nothing is selected */

          printf("Please select a ex_R_rule layer or Blockage layer, then press Ctrl-Q again !\n")

      );if CurSel = nil

    ) ;procedure AddBLKLayers

    I know in order to add-on option form, I might need to modify my code agagin.

    Again, any commend or suggestion is welcome.

    best regards,

    Kathy

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • kpai
    kpai over 12 years ago

    Here is the code that I completed yesterday when I select a layer, it will add-on the rest of blockage layers or exclusive layers as needed.   This code only to add-on the extra layers that I defined without any other choices for user; hence, I thought of to add on F3 key as an option for user to have the choice of choose particular layers to add-on.

    I'm just about to start to write the OptionsForm as you suggested.   I'm not familiar this and definitely will need your help later.

    exLayers = '(("ex_R_rule" "guideline") ("ex_R_rule" "require") ("ex_R_rule" "recommend") ("ex_R_rule" ("analog"))

    dmyLayers = '(("ODBLK" "dummy") ("POBLK" "dummy") ("DMEXCL" "dummy1") ("DMEXCL" "dummy2").....("DMEXCL" "dummya"))

    procedure(AddBLKLayers(@optional (LayerSel car(geGetSelSet()~>lpp)))

      CurSel = car(geGetSelSet()~>lpp)

      LayerSel = car(CurSel)

      if( CurSel != nil && CurSel != "drawing" && CurSel != "pin" then

         if(LayerSel == "ex_R_rule" then   /* Place additional exclusive layers */

            foreach(layer exLayers

               if( layer != CurSel then

                     printf("Added layer = %L\n" layer)

                     dbCreateRect(

                          geGetEditCellView()

                          layer

                          CCSgetBBox()

                     ) ;dbCreateRect

                else

                   printf("\n %L exist and skipped !\n\n" layer)

            );if

         );foreach

        else  /* Place additional blockage layers */

          foreach(layer dmyLayers

             if(layer != CurSel then

                 printf("Added layer = %L\n" layer)

                 dbCreateRect(

                        geGetEditCellView()

                        layer

                        CCSgetBBox()

                  );dbCreateRect

             else

               printf("\n %L exist and skipped !\n\n" layer)

         );if dmyLayers

       );foreach dmyLayers

      );if LayerSel

      else /* nothing is selected */

          printf("Please select a ex_R_rule layer or Blockage layer, then press Ctrl-Q again !\n")

      );if CurSel = nil

    ) ;procedure AddBLKLayers

    I know in order to add-on option form, I might need to modify my code agagin.

    Again, any commend or suggestion is welcome.

    best regards,

    Kathy

    • 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