Maker Pro
Maker Pro

LTspice to Hspice problem

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
 
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:

Harald Kapp

Moderator
Moderator
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.
 
Top