The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 19th, 2024, 9:19pm
Pages: 1
Send Topic Print
processing global vdd! in AMS code (Read 765 times)
Pavel
Senior Member
****
Offline



Posts: 174
Lausanne/Switzerland
processing global vdd! in AMS code
Feb 27th, 2007, 6:09am
 
Hello,

I modelize cells that are already made in Virtuoso Schematic. Some cells include global vdd! signal.
How can I process this signal im my AMS code?

Regards.

Pavel.
Back to top
 
 
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: processing global vdd! in AMS code
Reply #1 - Feb 27th, 2007, 3:55pm
 
Pavel,

Globals get netlisted as an out of module reference in schematics - in the cds_globals module. If my memory is correct, it would end up as cds_globals.\gnd! (or something like that). Take a look at the netlist from a schematic containing gnd!, and you'll see the name used. Then you can use the same out of module reference in your verilogams code.

Regards,

Andrew.
Back to top
 
 
View Profile WWW   IP Logged
Pavel
Senior Member
****
Offline



Posts: 174
Lausanne/Switzerland
Re: processing global vdd! in AMS code
Reply #2 - Feb 28th, 2007, 12:57am
 
Andrew,

Thanks for response. I tried your suggestion (at least as I understood it).
I checked spectre netlist (file input.scs). The name of signal is vdd!.
Then I declared it in my code as

electreical vdd!;

and then used it in my code.

When I tried to compile it parser gives following error message each time when it meets vdd!

ncvlog: *E,EXPSMC ............................................. expecting a semicolon (';')

Regards,

Pavel.
Back to top
 
 
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: processing global vdd! in AMS code
Reply #3 - Feb 28th, 2007, 7:03am
 
For a start, you'd need to escape the name because it has an exclamation mark in it - so it would be \vdd! ; (note the space before the semicolon - needed because an escape escapes everything up to the next space).

However, I don't understand why you're looking at a spectre netlist (input.scs) to find the syntax? AMS Designer can include spectre model files, but you're trying to connect (I assume) a global in a schematic netlisted for AMS Designer to the same signal in your Verilog-AMS code? If you're using AMS in ADE, you can look at the resulting schematic netlist. If using the hierarchy editor, you can look at the verilog.ams file in the schematic view in your library. Or you could just look at it in the simvision code browser.

There's no such thing as a global in Verilog, which is why the out of module reference approach is used.

Regards,

Andrew.
Back to top
 
 
View Profile WWW   IP Logged
Pavel
Senior Member
****
Offline



Posts: 174
Lausanne/Switzerland
Re: processing global vdd! in AMS code
Reply #4 - Feb 28th, 2007, 7:28am
 
Ok, parser passed. Smiley

Thanks, Andrew
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.