.func hspice
Hi.
This function is about what? I have just examined the HSpice manual and I find out that if e.g. you wanna define a source voltage which has a voltage controlled by a nonLinear function of two other differential voltages (I have copied and pasted the exact words from manual):
For example, generate a voltage controlled source that gives the controlled
voltage, V(1,0), as:
V(1, 0) = 3 × V(3,2) + 4 × V(7,6)^2
To implement this function, use the following controlled source element
statement:
E1 1 0 POLY(2) 3 2 7 6 0 3 0 0 0 4
This specifies a controlled voltage source connected between nodes 1 and 0 that
is controlled by two differential voltages: the voltage difference between nodes
3 and 2 and the voltage difference between nodes 7 and 6, that is, FA=V(3,2) and
FB=V(7,6). The polynomial coefficients are P0=0, P1=3, P2=0, P3=0, P4=0,
and P5=4.
Regards,
EZT