The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 26th, 2024, 7:43am
Pages: 1
Send Topic Print
Verilog-A: Instantiating Primitive Analog (Read 3578 times)
Hisham
Guest




Verilog-A: Instantiating Primitive Analog
Jul 26th, 2004, 3:35am
 
I am experimenting the verilog-A. Here is my simple code for implementing
nmos by instantiating primitive nmos (modn) in my code:

`include "constants.h"
`include "discipline.h"
module nmos4(B, D, G, S);
inout B,D,G,S;
electrical B,D,G,S,Dr;
real Idsn;
mywire wr (D,Dr);      
modn nmos1 (Dr,G,S,B);
analog begin
Idsn=I(D,Dr);
end
endmodule

This is fine. But what I need to to be able to trace the tranconductace (gm) of the modn.

Please help

Hisham
Back to top
 
 
  IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1998
Massachusetts, USA
Re: Verilog-A: Instantiating Primitive Analog
Reply #1 - Sep 1st, 2004, 5:57am
 
Hisham -
I assume "nmos1" is resolved to a .model card referencing a primitive (Spice) mosfet?

You've essentially made a subcircuit here, and it's probably implementation-dependent as to whether the simulator allows you to "see" inside a Verilog-A subcircuit to print operating-point information.

There are some compact modeling extensions for Verilog-A that have been submitted to the Accellera board; they include a method of declaring operating-point variables for a module.

-Geoffrey
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.