• 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. Update the contents in Viewfile

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 143
  • Views 16628
  • 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

Update the contents in Viewfile

nidon
nidon over 13 years ago

Dear Sir.

I want to write a code to show some information.For example,if I write a code:

i= 0

while(i<10

printf("the number is %n.\n" i)

i++)

and I load it in CIW,then it will show the information in CIW window.But if I want to show these massages in a view widonw ,how could I do?

I just tied to use view command ,but it showed 10 view windows(I just want to showed a view windows,and the window can update the contents by the massage.

 

Thanks for you reply.

Thank you!

  • Cancel
Parents
  • nidon
    nidon over 13 years ago

    Oh,I sorry I can't descript the problem clearly.

    For example,I write a code to stream out gds(gds1~gds100),and hope to show the information in viewfile.

    And I tried the way you gave,when I executed the scripte.

    The viewfile will display:

    Export the GDS1----------done.(line1)

    Export the GDS2----------done.(line2)

    ....

    Export the GDS30-------done.(line30)

    ..........

    Export the GDS1000-----done.(line100)

    And when the script executing,I just see the contents from line1 to line30,if I want to see more contents(line31~line100),I have to wait the script finished.

    The code as follow:

    procedure(abWriteCellGDS(libName cellName viewName streamOutKeys suffix)
        let((template fileName ipcId)
            streamOutKeys->libName=libName
            streamOutKeys->primaryCell=cellName
            streamOutKeys->viewName=viewName
            streamOutKeys->outFile=strcat(cellName suffix)
            streamOutKeys->errFile=strcat("PIPO_" cellName ".LOG")

            hiTextDisplayString(
                  gds_info
                  sprintf(nil "Writing GDS for %s/%s/%s to %s\n"  libName cellName viewName   streamOutKeys->outFile)
                  nil )

            fileName=makeTempFileName("/tmp/writeCellGDS")
            template=outfile(fileName)
            fprintf(template "streamOutKeys='%L\n" streamOutKeys)
            close(template)
            ipcId=ipcBeginProcess(strcat("pipo strmout " fileName))
            ipcWait(ipcId)
            deleteFile(fileName)
        ) ; let
    ) ; procedure

    gds_info=hiCreateWindow(nil "text" "Show File")
    hiDisplayWindow(gds_info)

             foreach(cell ddGetObj(libName)~>cells
                when(ddGetObj(libName cell~>name viewName "master.tag")
                    abWriteCellGDS(libName cell~>name viewName streamOutKeys suffix)
                ) ; when
            ) ; foreach

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • nidon
    nidon over 13 years ago

    Oh,I sorry I can't descript the problem clearly.

    For example,I write a code to stream out gds(gds1~gds100),and hope to show the information in viewfile.

    And I tried the way you gave,when I executed the scripte.

    The viewfile will display:

    Export the GDS1----------done.(line1)

    Export the GDS2----------done.(line2)

    ....

    Export the GDS30-------done.(line30)

    ..........

    Export the GDS1000-----done.(line100)

    And when the script executing,I just see the contents from line1 to line30,if I want to see more contents(line31~line100),I have to wait the script finished.

    The code as follow:

    procedure(abWriteCellGDS(libName cellName viewName streamOutKeys suffix)
        let((template fileName ipcId)
            streamOutKeys->libName=libName
            streamOutKeys->primaryCell=cellName
            streamOutKeys->viewName=viewName
            streamOutKeys->outFile=strcat(cellName suffix)
            streamOutKeys->errFile=strcat("PIPO_" cellName ".LOG")

            hiTextDisplayString(
                  gds_info
                  sprintf(nil "Writing GDS for %s/%s/%s to %s\n"  libName cellName viewName   streamOutKeys->outFile)
                  nil )

            fileName=makeTempFileName("/tmp/writeCellGDS")
            template=outfile(fileName)
            fprintf(template "streamOutKeys='%L\n" streamOutKeys)
            close(template)
            ipcId=ipcBeginProcess(strcat("pipo strmout " fileName))
            ipcWait(ipcId)
            deleteFile(fileName)
        ) ; let
    ) ; procedure

    gds_info=hiCreateWindow(nil "text" "Show File")
    hiDisplayWindow(gds_info)

             foreach(cell ddGetObj(libName)~>cells
                when(ddGetObj(libName cell~>name viewName "master.tag")
                    abWriteCellGDS(libName cell~>name viewName streamOutKeys suffix)
                ) ; when
            ) ; foreach

     

    • 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