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.

variabe capacitor in hspice

Status
Not open for further replies.

admiral_v

Newbie level 6
Joined
Feb 27, 2014
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
87
hi i decide simulate this circuit in hspice but i can't modeling variable capacitor section pleeeease helllp me


r.jpg
 

Do you want to vary by simulator variable, by circuit voltage,
or what?

I suggest you look at whether veriloga is supported by your
HSPICE version and if so, scrounge for veriloga varactor code
you can modify to suit (or, find a varactor model you like and
just linearize or cal-map the C-V transfer function). If it's a
circuit driven variation you are looking for, and not just a
stepping of a variable.
 
Do you want to vary by simulator variable, by circuit voltage,
or what?

I suggest you look at whether veriloga is supported by your
HSPICE version and if so, scrounge for veriloga varactor code
you can modify to suit (or, find a varactor model you like and
just linearize or cal-map the C-V transfer function). If it's a
circuit driven variation you are looking for, and not just a
stepping of a variable.

the capacitors in this circuit change by move (capacitive accelerometer ) and Unfortunately i have no information about veriloge
if I understand correctly , i can use veriloge in hspice? how??

- - - Updated - - -

I study a little about verilog model in hspice and find this for resistor model if you can write variable capacitor in verivlog i thank you verrrry much



Code dot - [expand]
1
2
3
4
5
6
7
*Title: Simple Verilog-A Resistor
.hdl resistor.va
.options post=1
X1 1 0 resistor r=1 
VS 1 0 1 
.dc VS 0 10 1
.end



The va file:


Code dot - [expand]
1
2
3
4
5
6
7
8
9
// Simple resistor
 
`include "disciplines.vams"
 
module resistor(p,n);
parameter R=1.0 from (0:inf);
electrical p,n;
analog I(p,n) <+ V(p,n)/R;
endmodule



I write thank you
hspice
 
Last edited by a moderator:

i looking for same as this for variable capacitor for use in Hspice
 

thx for your answer

In order to simulate the transient response of the readout
circuit, a pair of time-varying sensor capacitors are required.
A simple varactor model is implemented in Verilog-A which
produces a voltage-controlled capacitor. This model has four
terminals, where two terminals are the capacitor terminals, and
the other are the voltage input terminals. The Verilog-A model
is built upon the following equation:
C = C0 + CV Vin (4)
Q = CVC (5)
IC = dQ/dt (6)
This model consists of a fixed capacitor C0, and a variable
capacitor CV . The model takes in a voltage Vin as an input and
provides a variable capacitor C. Note that VC is the voltage
across the capacitor C. In this design, C0 is assumed to be
100 fF, CV is 1 fF, and Vin can be any time-varying voltage
signal that controls the change in the output capacitance
.




i dont know how define and write Vi and c=c0+c1vi equation in verilog-a and use it in hspice
 

i find this verilog-a .va file
how write hspice netlist for this va file and define sine input .thx


Code Verilog - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
`include "constants.vams"
`include "disciplines.vams"
 
module vccap(Cp, Cn, Vp, Vn);
 
    input Vp, Vn;
    inout Cp, Cn;
 
    electrical Cp, Cn, Vp, Vn;
 
    real C;
 
    parameter real C0 = 0;
    parameter real CS = 1;
 
    analog begin    
        C =c0+ CS * V(Vp,Vn);
        I(Cp,Cn) <+ C * ddt(V(Cp,Cn)); 
    end
 
endmodule

 
Last edited by a moderator:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top