Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Verilog A problem: Equation with internal variable

Status
Not open for further replies.

prcken

Advanced Member level 1
Advanced Member level 1
Joined
Nov 1, 2006
Messages
419
Helped
41
Reputation
82
Reaction score
38
Trophy points
1,308
Location
Shanghai
Visit site
Activity points
4,059
Hi I had a problem to write an equation in verilog-A.
i want to express the change of minority carrier concentration (del_N) in the pn junction as a variable of the applied voltage (V(P,N)) and the distance of the pn junction (x).
but I just need to vary the distance x inside the code, I don't want x to be an input. Basically, del_N is different at different x positions.
Please check the following picture, and any idea how to do that in verilogA? in Matlab, it's easy to define x in vector format as this x = j:i:k, where i is the increment, j and k is the starting distance and stop distance, respectively.
Thanks!
Capture.PNG

I also tried to use genvar in veriloga, as following. but it pops out an error says genvar expression need to be integer.
Capture2.PNG
 
Last edited:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top