Connect with us

LTspice to Hspice problem

Discussion in 'General Electronics Discussion' started by pohan, Apr 21, 2017.

Scroll to continue with content
  1. pohan

    pohan

    2
    0
    Apr 21, 2017
    Hi everyone
    I am running a project by use LTspice, and I want to varify the solution in hspice.
    But when I run the hspice netlist which is transfered from the LTspice,threr are some error happened.

    syntax error at or before "{Limit" "(" "V" "(" "nAmp" ")" "{VHigh}" "{VLow}" ")" "}"

    and this is the hspice code:
    "EOut N001 0 Value={Limit(V(nAmp),{VHigh},{VLow})}"
    .Param VHigh=4V VLow=-4V

    What should I do?


    regards,
    pohan
     
  2. Alec_t

    Alec_t

    2,928
    798
    Jul 7, 2015
    Welcome to EP!
    Does the sim run without error in LTspice?
    I don't know Hspice, but according to an Hspice guide, a behavioural voltage source has the syntax :
    Exxx n+ n- VOL=’equation’
    + <MAX=val> <MIN=val>
     
    Last edited: Apr 21, 2017
  3. Harald Kapp

    Harald Kapp Moderator Moderator

    11,014
    2,506
    Nov 17, 2011
    It is possible that Hspice doesn't recognize this particular syntax for the voltage controlled voltage source. LTSpice has some extensions over classic Spice (as do many other Spice derivatives).

    LTSPICE help states:'Syntax: Exxx n+ n- value={<expression>}
    This is an alternative syntax of the behavioral source, arbitrary behavioral voltage source, B.
    '

    Try to replace Eout by Bout to see whether this is recognized by Hspice.
     
  4. pohan

    pohan

    2
    0
    Apr 21, 2017
    Thanks guys! I'll try.
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-