• 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 use terminal Command in cadence CIW?

Stats

  • Replies 9
  • Subscribers 144
  • Views 2898
  • Members are here 0

How to use terminal Command in cadence CIW?

Nagarajpk
Nagarajpk 1 month ago

I need skill code to run terminal commands in CIW and use it in skill code further as skill variable. Could someone help me on this?

  • Cancel
  • Sign in to reply
Parents
  • Andrew Beckett
    Andrew Beckett 1 month ago

    Probably ipcBeginProcess and then ipcReadProcess is what you need, but your question is far from clear.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Nagarajpk
    Nagarajpk 1 month ago in reply to Andrew Beckett

    Instead of getting available work area I can exclude control panel height and set that to any layout/schematic window to left or right.

    Here is my code, let me know if you have any feedback Slight smile

    (procedure (arrangeWindowLeftSide)
    let( (cid output x y width height)

    ;reading outs from shell
    cid = ipcBeginProcess("wmctrl -lG | grep xfce4-panel | tr -s ' ' | cut -d' ' -f3-6")
    ipcWait(cid)
    output = ipcReadProcess(cid)
    when(output
    ; Split the output string into a list of numbers
    prog((vals)
    vals = parseString(output)

    x = atoi(nth(0 vals))
    y = atoi(nth(1 vals))
    width = atoi(nth(2 vals))
    height = atoi(nth(3 vals))

    ;Here used all geometry but I needed hight of panel you can use it whichever you want

    printf( "Panel Geometry: X=%d Y=%d Width=%d Height=%d \n" x y width height)
    )
    )
    W=car(getMaxScreenCoords())
    H=cadr(getMaxScreenCoords())
    HW=W/2

    winId=hiGetCurrentWindow()
    hiResizeWindow(winId list(0:height HW:H))
    hiZoomAbsoluteScale(winId 0.9)
    )
    );proc end

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Nagarajpk
    Nagarajpk 1 month ago in reply to Andrew Beckett

    Instead of getting available work area I can exclude control panel height and set that to any layout/schematic window to left or right.

    Here is my code, let me know if you have any feedback Slight smile

    (procedure (arrangeWindowLeftSide)
    let( (cid output x y width height)

    ;reading outs from shell
    cid = ipcBeginProcess("wmctrl -lG | grep xfce4-panel | tr -s ' ' | cut -d' ' -f3-6")
    ipcWait(cid)
    output = ipcReadProcess(cid)
    when(output
    ; Split the output string into a list of numbers
    prog((vals)
    vals = parseString(output)

    x = atoi(nth(0 vals))
    y = atoi(nth(1 vals))
    width = atoi(nth(2 vals))
    height = atoi(nth(3 vals))

    ;Here used all geometry but I needed hight of panel you can use it whichever you want

    printf( "Panel Geometry: X=%d Y=%d Width=%d Height=%d \n" x y width height)
    )
    )
    W=car(getMaxScreenCoords())
    H=cadr(getMaxScreenCoords())
    HW=W/2

    winId=hiGetCurrentWindow()
    hiResizeWindow(winId list(0:height HW:H))
    hiZoomAbsoluteScale(winId 0.9)
    )
    );proc end

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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