Home > Community > Forums > Custom IC Design > Setting snap grid spacings

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Setting snap grid spacings 

Last post Mon, Feb 23 2009 10:44 AM by J Wilwert. 2 replies.
Started by J Wilwert 20 Feb 2009 09:45 AM. Topic has 2 replies and 2633 views
Page 1 of 1 (3 items)
Sort Posts:
  • Fri, Feb 20 2009 9:45 AM

    • J Wilwert
    • Top 200 Contributor
    • Joined on Tue, Jan 6 2009
    • Posts 41
    • Points 625
    Setting snap grid spacings Reply

    Hi,

    I am using a skill function to redefine my X and Y snap spacings - because using "e" and filling in the form is too cumbersome! 

    So, I define the variables xsnap and ysnap, and then:

                    hiGetCurrentWindow()~>xSnapSpacing = int( xsnap )
                    hiGetCurrentWindow()~>ySnapSpacing = int( ysnap )

    Using skill, is there a better way?

    THANKS,

    John Wilwert 

    • Post Points: 20
  • Fri, Feb 20 2009 10:38 AM

    • Jim McMahon
    • Top 500 Contributor
    • Joined on Fri, Feb 20 2009
    • San Jose, CT
    • Posts 21
    • Points 355
    Re: Setting snap grid spacings Reply

    Hi John

    I believe this is the best way. Are you experiencing a problem with this approach?

    I typically set several bindkeys to switch between different common snap settings. Here is some example skill. Note, this sets the x and y snap spacings to be the same...

     hiSetBindKey("Layout" "<Key>1" "jmSetSnapSpacing(envGetVal( \"layout\" \"xSnapSpacing\"))" )  ;;<-- restore default snap spacing
            hiSetBindKey("Layout" "<Key>2" "jmSetSnapSpacing(0.25)" )
            hiSetBindKey("Layout" "<Key>3" "jmSetSnapSpacing(0.5)" )
            hiSetBindKey("Layout" "<Key>4" "jmSetSnapSpacing(1.0)" )
            hiSetBindKey("Layout" "<Key>5" "jmSetSnapSpacing(5.0)" )
            hiSetBindKey("Layout" "<Key>6" "jmSetSnapSpacing(10.0)" )

     procedure( jmSetSnapSpacing( snap @optional window "ng" )
         unless( window
             window = hiGetCurrentWindow()
         )
         window->xSnapSpacing = snap
         window->ySnapSpacing = snap

    )

     

     

    • Post Points: 20
  • Mon, Feb 23 2009 10:44 AM

    • J Wilwert
    • Top 200 Contributor
    • Joined on Tue, Jan 6 2009
    • Posts 41
    • Points 625
    Re: Setting snap grid spacings Reply

    Thanks, Jim.  I was having other issues in Cadence and they somewhat pointed to this skill script.  So, I was curious to learn if there was a better way to perform this task.  There still could be other issues with the skill script, however, this does put this item to rest.

    Again, THANKS!

    John Wilwert 

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by J Wilwert at 20 Feb 2009 09:45 AM. Topic has 2 replies.