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.

How to add a dc voltage to a Differentiator in verilog-a?

Status
Not open for further replies.

gaom9

Full Member level 4
Joined
Oct 8, 2007
Messages
228
Helped
7
Reputation
14
Reaction score
5
Trophy points
1,298
Location
China
Activity points
3,294
how to add dc voltage

Hi,
I want to add a dc voltage as a common voltage of the circuit to the Differentiator in verilog-a. I add it as follow:


`include "discipline.h"
`include "constants.h"

// model diff - Differentiator
//
module diff (vin, vout);
input vin;
output vout;
electrical vin, vout;
parameter real outcom = 2.5;
real vout_val;
parameter real tau = 0.0001;

analog begin
vout_val = outcom + tau * ddt(V(vin));
V(vout) <+ vout_val;
end

endmodule

Here outcom is the dc voltage which I added. tau is the Differentiator constant. But it does not work, the output common voltage is still Zero.
What is the matter with it, please?
And my simulate tool is cadence spectre.


Thank you.
Best regards!
 

add dc voltage

Did you define "outcom" for the wrong property
 

Hi, DZC
Thank you for your reply.
What property should I define the "outcom" to be, please?

Thnak you.
Best regards!
 

I use the type:
`define outcom 2.5
But it dose not work.
What is wrong with it, please?


Thank you.
Best regards!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top