The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 12:30am
Pages: 1
Send Topic Print
Hierarchically referece a node in verilog-A instantiation (Read 462 times)
ssdfz
Junior Member
**
Offline



Posts: 13

Hierarchically referece a node in verilog-A instantiation
Nov 04th, 2008, 8:35pm
 
Hi all:
I have a question regarding getting access to hierarchical node in VA and hope it can be answered by experts in this forum. For example, I need to get access to two nodes called global.vdd and global.vss. In Verilog-HDL, I simply create a module called global and their net can be hierarchically referred. I tried the similar thing in verilog-A, but it seems to fail.
One example would be that if I need to instantiate the following VA model
     module test(A, Z);
           input A;
           output Z;
           electrical A;
           electrical Z;

           electrical B;

           test1 i0 (.A(B), .Z(B));
           test2 i1 (.A(B),.B(global.vss), .Z(Z));
     endmodule

I tried to write a separate global.va model which is having vss, and include the file in my hspice input file, but no luck.

Your opinion will be highly appreciated!
Back to top
 
 
View Profile   IP Logged
jbdavid
Community Fellow
*****
Offline



Posts: 378
Silicon Valley
Re: Hierarchically referece a node in verilog-A instantiation
Reply #1 - Nov 4th, 2008, 9:44pm
 
that is not something that ALL the Verilog-A simulators support.
What happens in many simulators with the Spice (or spectre) netlist on top is that you need to put those ports Explicitly in the model, and then connect them to global nets in the spice netlist.

jbd
Back to top
 
 

jbdavid
Mixed Signal Design Verification
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.