• 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. strange problem with ocean processing

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 12796
  • 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

strange problem with ocean processing

NcfC
NcfC over 10 years ago

Hi,

I'm running ocean, from IC version 5.1.41, on a openSuse 13.1, and I got a strange problem when using "if" loop.

If I place 3 statements inside the loop, as shown below, I don't have any problems

n = 0
if( ( n == "1" )
then
w1 = 1.0
w2 = 1.0
w3 = 1.0
else
w1 = 1.0
w2 = 2.0
w3 = 2.5
)

but, if I place 4 or more statements, I get into errors:

n = 0
if( ( n == "1" )
then
w1 = 1.0
w2 = 1.0
w3 = 1.0
w4 = 1.0
else
w1 = 1.0
w2 = 2.0
w3 = 2.5
w4 = 1.5
)

)
^
SYNTAX ERROR found at line 2 column 1 of file *string*
*Error* lineread/read: syntax error encountered in input
*WARNING* (reader): too few right parentheses, ')' added at EOF
ocean>

After the "ocean>" prompt, the terminal is irresponsive and the only way out is to kill the terminal. Does someone have any ideas on why this happens and/or how to solve it?

Thanks very much in advance.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Sorry for the delay - this post was stuck in moderation (and I'd not had any moderation notifications until yesterday). I just tried this and it works for me. Are you sure you didn't have some strange characters in there somewhere?

    Kind Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • NcfC
    NcfC over 10 years ago

    Hi, Andrew.

    thanks for the reply.

    Yes, I'm sure there's no strage characters. It bothers me because the same code works on another of our machines. The only difference between the 2 machines is that the other one has an older OS (opensuse 11.4) while this one has a newer version (opensuse 13.1). I first though it could be same OS update that could be the cause but I couldn't figure it out. But since opensuse is not one of the supported platforms, I didn't find any docs that could help me.

    thanks again for the reply.

    best regards,

    • 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