Maker Pro
Maker Pro

LTspice to Hspice problem

pohan

Apr 21, 2017
2
Joined
Apr 21, 2017
Messages
2
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
 

Alec_t

Jul 7, 2015
3,590
Joined
Jul 7, 2015
Messages
3,590
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
Nov 17, 2011
13,728
Joined
Nov 17, 2011
Messages
13,728
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