0

I have a pdf function which is an exponential function divided by a definite integral. I have two problems:

1) How do I define my own PDF in HSPICE? ( I have found HSPICE has Gaussian distribution, but that's not what I am looking for)

2) How do I solve a definite integral in HSPICE?

Can I solve these two problems with a model in Verilog-A?

Thanks in advance!

Ibrahim
  • 1
  • 1
  • 1

1 Answers1

0

I've seen this modeled in SPICE using a generalized nonlinear current source and a 1-H inductor to perform the integration (C=L dI/dt). Example:

G1 1 2 VALUE = {100uA*sin(V(3,2))}
L1 1 3 1H
R1 1 3 1ohm
teadotjay
  • 1,395
  • 12
  • 15