The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design Languages >> Verilog-AMS >> print the netlist node name
https://designers-guide.org/forum/YaBB.pl?num=1476983694

Message started by AA on Oct 20th, 2016, 10:14am

Title: print the netlist node name
Post by AA on 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.

Title: Re: print the netlist node name
Post by Geoffrey_Coram on 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.

Title: Re: print the netlist node name
Post by AMS_ei on Jan 18th, 2017, 7:42am

Hi,

How does your test bench look like?

Thank you.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.