The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 18th, 2024, 11:44pm
Pages: 1
Send Topic Print
print the netlist node name (Read 2281 times)
AA
Junior Member
**
Offline



Posts: 21

print the netlist node name
Oct 20th, 2016, 10:14am
 
Hi,

Is there a way to print the netlist node name for debugging reasons?

In other words, if a module takes argument "n" among its arguments, I would like to print the node name in which "n" is bound to in the netlist.

Here is a concrete example of what I'm trying to do. Suppose my HSPICE netlist contains the following element:

Code:
xE1 net10 net5 my_module
 



and in the verilog-a definition of "my_module":

Code:
module my_module(n1, n2);
input n1,n2;
electrical n1,n2;

analog begin

// I want to print the name of the node in the netlist corresponding to n1
// in this example, it should print net10
// the following does not work:
$display("%s", n1);


end

endmodule
 



As indicated in the comment, the method used causes an error. Can anyone help, please?

Using HSPICE 2015.
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1998
Massachusetts, USA
Re: print the netlist node name
Reply #1 - Oct 26th, 2016, 8:09am
 
There is no such debugging functionality in the Verilog-AMS standard; you would need to check with the vendor who makes your simulator.
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
AMS_ei
Community Member
***
Offline



Posts: 67

Re: print the netlist node name
Reply #2 - Jan 18th, 2017, 7:42am
 
Hi,

How does your test bench look like?

Thank you.
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.