• 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. question about vsource used in Ocean

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 15053
  • 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

question about vsource used in Ocean

Carmichaeli
Carmichaeli over 11 years ago

Hi all,

I had a problem when I did a simulation with Ocean Script. I designed a circuit by virtuoso and extracted the spectre netlist, then I remove some voltage source statements from the netlist and make a new stimulus file as input variables containing new vsource statements. By using vpulse in this way, I can get good result. But when vpwl was used, I always got error.

the vpulse statements are all like below and works well:

V0 (net6 0) vsource type=pulse dc=1.800000e+00 val0=0 val1=1.800000e+00 period=28n delay=14n rise=100p fall=100p width=14n

the vpwl statements are all like below:

V0 (net6 0) vsource type=pwl wave=\[ 0 0 100n 0 ]   (or  V0 (net6 0) vsource type=pwl wave=[ 0 0 100n 0 ])

I used these to the same circuit with just different input. It is weird that vpulse works well and vpwl can't work.

----the error message is:

ERROR (SFE-1025): "/homes/cadence/lab2/spi/tb_1.txt" 131:
        Instance `V0': Unexpected value `0' - all required positional
        parameters have already been specified.
    ERROR (SFE-1025): "/homes/cadence/lab2/spi/tb_1.txt" 131:
        Instance `V0': Unexpected value `0' - all required positional
        parameters have already been specified.
    ERROR (SFE-1025): "/homes/cadence/lab2/spi/tb_1.txt" 131:
        Instance `V0': Unexpected value `1e-07' - all required positional
        parameters have already been specified.
    ERROR (SFE-1025): "/homes/cadence/lab2/spi/tb_1.txt" 131:
        Instance `V0': Unexpected value `0' - all required positional 
       parameters have already been specified.
 
--------------------------- 

 I checked all the code but didn't find why I got the "required positional parameters" which "have already been specified".

Can someone help me ? Thanks in advance.

Regards,
Wayne, 

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Wayne,

    Quite simply, you got lucky with the pulse source. Both statements you showed are in spectre syntax, and the simulator lang=spectre or .scs suffix would have worked for both. Because of the fact that SPICE syntax is pretty inconsistent (compared with spectre, which is a lot more regular), the simple parameter=value form of the pulse source meant that the SPICE parser was still able to unambiguously read the spectre statement despite it not being a normal SPICE way of describing a pulse source. It just fell through to a generic instance recognition and worked. The PWL source requires a vector of time-value pairs enclosed in square brackets and that's enough to cause confusion because it really isn't SPICE syntax or anything like SPICE syntax any more.

    I'd never rely on this luck - always be explicit. If it is in spectre syntax put it in a file with a .scs suffix, or failing that use the simulator lang=spectre directive. That way it is clear and unambiguous.

    Regards,

    Andrew 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Wayne,

    Quite simply, you got lucky with the pulse source. Both statements you showed are in spectre syntax, and the simulator lang=spectre or .scs suffix would have worked for both. Because of the fact that SPICE syntax is pretty inconsistent (compared with spectre, which is a lot more regular), the simple parameter=value form of the pulse source meant that the SPICE parser was still able to unambiguously read the spectre statement despite it not being a normal SPICE way of describing a pulse source. It just fell through to a generic instance recognition and worked. The PWL source requires a vector of time-value pairs enclosed in square brackets and that's enough to cause confusion because it really isn't SPICE syntax or anything like SPICE syntax any more.

    I'd never rely on this luck - always be explicit. If it is in spectre syntax put it in a file with a .scs suffix, or failing that use the simulator lang=spectre directive. That way it is clear and unambiguous.

    Regards,

    Andrew 

    • 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