• 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. OcnPrint doesnt work inside CASE

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 144
  • Views 13443
  • 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

OcnPrint doesnt work inside CASE

RAO VINAY
RAO VINAY over 12 years ago
Hello all,

My script is as follows.

for(j 2 4

desVar( "nf" j )

save( 'i "M0:id" )

temp( 27 )

run()

selectResult( 'dc )

plot(getData("M0:id") )

case( j

("2" ocnPrint(?output "/home/vinay_rao/create/moschar_file/nmosw/nmosw1.dat" ?numberNotation 'scientific getData("M0:id")))

("3" ocnPrint(?output "/home/vinay_rao/create/moschar_file/nmosw/nmosw2.dat" ?numberNotation 'scientific getData("M0:id")))

("4" ocnPrint(?output "/home/vinay_rao/create/moschar_file/nmosw/nmosw3.dat" ?numberNotation 'scientific getData("M0:id")))

) )

I have used CASE inside FOR statement. CASE contains ocnPrint but it's not generating any .dat files and also I found no errors/warnings. If I am using ocnPrint outside CASE then it is generating but not inside of it. Why this script failed to generate .dat under CASE? I am using IC614.


Regards,

Vinay Rao.
  • Cancel
  • berndfi
    berndfi over 12 years ago

    Of which datatype is the variable j?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RAO VINAY
    RAO VINAY over 12 years ago

     Thanks for your reply Berndfi. I didn't define any datatype explicitly for "j " as I thought it takes automatically j a integer. Whether I need to define j as "int"explicitly? If so then can you give me the syntax for it?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Your for loop assigns integers to j, but your case is checking for j as string values (they are in quotation marks), so none of the branches of the case match...

    Your case should be:

    case(j
      (1 ...)
      (2 ...)
    )

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RAO VINAY
    RAO VINAY over 12 years ago

     Now it works Andrew. You are right that it was taking it as a string. Thanks a lot. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • berndfi
    berndfi over 12 years ago

     I thought my question points out the error, but seemed not to be the case.
    Even if you do not have to declare datatypes explicitly in SKILL doesn’t mean that they don’t exist.

    • 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