Is it me or is it sourcelink

Discussion in 'Cadence' started by Svenn Are Bjerkem, Jan 10, 2005.

  1. that has becoms so slow?

    I wanted to look for a way to make a bindkey to switch between 0.625 and
    0.3125 snap in composer. Maybe this is already covered in Sourcelink, I
    thought, and logged in. Building the pages take very long time. Am I the
    only one to see this behaviour?

    Kind regards,
     
    Svenn Are Bjerkem, Jan 10, 2005
    #1
  2. Svenn Are Bjerkem

    S. Badel Guest

    I tried and it works as usual for me, sorry...

    as for your question, the following should do the trick:

    procedure( XXToggleSnapSpacing( wnd snap1 snap2 )
    wnd~>xSnapSpacing = if( equal( wnd~>xSnapSpacing snap1 ) snap2 snap1 )
    wnd~>ySnapSpacing = if( equal( wnd~>ySnapSpacing snap1 ) snap2 snap1 )
    ) ; procedure

    hiSetBindKey( "Schematics" "Shift<Key>S"
    "XXToggleSnapSpacing(hiGetCurrentWindow() 0.0625 0.03125)" )

    cheers,

    stephane
     
    S. Badel, Jan 10, 2005
    #2
  3. Svenn Are Bjerkem

    Tom_Ding Guest

    Yes. It's very slow.
     
    Tom_Ding, Jan 11, 2005
    #3
  4. It is a lot quicker to ask questions on c.c.c than to look for them on
    Sourcelink. Thanks a lot for the script.
     
    Svenn Are Bjerkem, Jan 11, 2005
    #4
  5. Svenn Are Bjerkem

    G Vandevalk Guest

    Good but not bulletproof ... if xSnapSpacing or ySnapSpacing were changed
    ( say by some routing skill ;^)
    then you would get stuck ... (or x & y out of sync... )

    What I have seen on a few kits is binding the 0 key to the "fine grid" and
    the 9 key to the "coarse grid"

    (more often found in layouts )

    YMMV
     
    G Vandevalk, Jan 12, 2005
    #5
  6. Svenn Are Bjerkem

    S. Badel Guest

    Hum... if the x and/or y grid were changed, calling this code would
    change to the snap1 grid.
    It can be seen as choosing one of the two grids (snap1) as the "default".

    Ok, if f.e. x would change but not y, then they would get 'out of sync'
    as you say. to make sure they are sync you can set ySnapSpacing to be
    equal to xSnapSpacing, this is more logical i must admit.

    cheers,
    stephane
     
    S. Badel, Jan 12, 2005
    #6
  7. I do not see this as a very big disadvantage for my work as I am working
    mainly on schematics. Problem was always some smart people who think
    that .03125 is better than .0625 and that give some interesting effects
    when copying things between designs.
     
    Svenn Are Bjerkem, Jan 12, 2005
    #7
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.