• 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. SKILL code to create a GUI

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 4770
  • 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

SKILL code to create a GUI

AB_1716450780384
AB_1716450780384 over 1 year ago

Hi all, 

I am new to SKILL  and I am trying to create a GUI . I tried to write a code a below but for reason though I am not getting any error  but GUI is not created. 

Can someone help me correct this code.

procedure( testGUI()
        hiCreateAppForm(
                       ?name 'myGUI
                       ?formTitle "testGUI"
                       ?fields list(
                                        list( hiCreateButton(
                                                                       ?name 'M1p
                                                                       ?buttonText "+M1" ) 0:5 70:20 )
                                            )
                                       )
       hiDisplayForm( testGUI )
);end procedure

Thanks,

Shweta

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 1 year ago

    Shweta,

    It should give:

    *Error* eval: unbound variable - testGUI

    perhaps you have errors turned off in the Options->Log Filter in the CIW?

    The issue is the hiDisplayForm line - it should be hiDisplayForm(myGUI) (not testGUI)

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • AurelBuche
    AurelBuche over 1 year ago

    Also, you should try creating your gui with hiCreateLayoutForm instead of hiCreateAppForm

    Those functions are way simpler to create nice interfaces.

    You don't need to calculate the coordinates of your items, nstead you create vertical and horizontal layouts using
    hiCreateFormLayout, hiCreateVerticalBoxLayout or hiCreateHorizontalBoxLayout

    Here's an example :

    procedure( testGUI()
      hiCreateLayoutForm( 'myGUI "testGUI"
        hiCreateFormLayout( 'main_layout
          ?items list(
            hiCreateButton(
              ?name 'M1p
              ?buttonText "+M1"
              ?callback lambda( (_button _form)
                         ;; This code is executed when button is clicked 
                         (info "+M1 button clicked\n")
                        )
            )
          )
        )
      )
    )
    
    hiDisplayForm( testGUI())
    

    Cheers,
    Aurélien

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • AB_1716450780384
    AB_1716450780384 over 1 year ago in reply to Andrew Beckett

    Thanks for pointing out . It helps.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • AB_1716450780384
    AB_1716450780384 over 1 year ago in reply to AurelBuche

    Thanks Aurélien , it works. I used  hiCreateVerticalBoxLayout / hiCreateHorizontalBoxLayout for futher code. Slight smile

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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