The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 8:31am
Pages: 1
Send Topic Print
Please provide verilogA code (Read 2894 times)
somisetty
Community Member
***
Offline



Posts: 64

Please provide verilogA code
Nov 04th, 2009, 9:28pm
 
Hi all
I have the code for NAND and INVERTER gate, But i am not able to write code for whole symbol when both are connected
Please provide verilogA code of a symbol (Look at attachment for symbol).

thanks inadvance
Back to top
 

symbol.JPG
View Profile   IP Logged
rajdeep
Senior Member
****
Offline



Posts: 220
UK
Re: Please provide verilogA code
Reply #1 - Nov 5th, 2009, 2:51am
 
Write a top level module that instantiates these 2 modules. This is called structural way of writing a model. Please read any language manual. You can download the Verilog-A (or AMS) LRM from web or get it from the archive of this forum, may be. Look for structural way of writing models. Should not take much effort.

cheers!
Rajdeep
Back to top
 
 

Design is fun, verification is a requirement.
View Profile   IP Logged
Riad KACED
Community Member
***
Offline



Posts: 93
Swindon, UK
Re: Please provide verilogA code
Reply #2 - Nov 5th, 2009, 11:22am
 
Hi somisetty,

From your schematic, You could have launched ADE, setup the simulator to ams and then create a netlist. This would dump a module with a structural description of your design. All what you need afterwards is to create a verilog-A view for your cell and copy past the module. Simple as that ! Besides, this forum comes with tons of eaxmples, you may serach a bit as well.

BTW, the way you are adding the Power/Ground nets into your logic cells is UGLY. We usually do not do that. You can go with 2 approaches:
1. Have  Power/Ground as implicit inherited connections in a schematic views
2. Explicit inherited pins on the Spectre view.

I would go for the latter approcah.
Anyway, that was just a note ...

Cheers,
Riad.
Back to top
 
 

Riad KACED
PDK, EDA Support Engineer.
View Profile   IP Logged
somisetty
Community Member
***
Offline



Posts: 64

Re: Please provide verilogA code
Reply #3 - Nov 5th, 2009, 10:26pm
 
Thank you  Riad KACED and Rajdeep
Back to top
 
 
View Profile   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.