I add one function in '.simrc', but when export out hspice n

T

tech11

Guest
Hello everyone,

I defined one function in '.simrc', but when I export out hspice netlist, I
get such error:

Running netlist
Begin Incremental Netlisting Aug 12 22:27:10 2007
*Error* eval: undefined function - HNLPrintPnpElement
End netlisting Aug 12 22:27:11 2007
"Netlister: There were errors, no netlist was produced."

Below is my function defination:

procedure( HNLPrintPnpElement()
hnlPrintString("q") hnlPrintString(hnlMapInstName(hnlCurrentInstName))
hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("C" 0)))
hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("B" 0)))
hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("E" 0)))
hnlHspicePrintInstPropVal('("modelType"))
;if( hnlCurrentType == "pnp" then
;hnlPrintString("pnp")
;)
;hnlHspicePrintInstPropEqVal('("area" "m"))
hnlPrintString("\n")
)

What's the question?

B.R.

Joffre
 
On Mon, 13 Aug 2007 10:33:48 +0800, tech11 wrote:

IMHO you cannot define functions in .simrc

you probably want to define them in .cdsinit


rds
 
"Guenther Sohler" <guenther.sohler@wipro.com>
??????:pan.2007.08.13.06.15.43.486168@wipro.com...
On Mon, 13 Aug 2007 10:33:48 +0800, tech11 wrote:

IMHO you cannot define functions in .simrc

you probably want to define them in .cdsinit


rds



In openbook 'ossref/chap5.html', I find some info about 'Formatting
Functions for Hierarchical Netlisting' and there're some examples. So it
seems that it's permitted to define functions in .simrc.
 
you could try ading your procedure to "CDS_INST_DIR/tools/dfII/
local/.simrc" and see if that finds it.


On Aug 12, 10:33 pm, "tech11" <tec...@sohu.com> wrote:
Hello everyone,

I defined one function in '.simrc', but when I export out hspice netlist, I
get such error:

Running netlist
Begin Incremental Netlisting Aug 12 22:27:10 2007
*Error* eval: undefined function - HNLPrintPnpElement
End netlisting Aug 12 22:27:11 2007
"Netlister: There were errors, no netlist was produced."

Below is my function defination:

procedure( HNLPrintPnpElement()
hnlPrintString("q") hnlPrintString(hnlMapInstName(hnlCurrentInstName))
hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("C" 0)))
hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("B" 0)))
hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("E" 0)))
hnlHspicePrintInstPropVal('("modelType"))
;if( hnlCurrentType == "pnp" then
;hnlPrintString("pnp")
;)
;hnlHspicePrintInstPropEqVal('("area" "m"))
hnlPrintString("\n")
)

What's the question?

B.R.

Joffre
CDS_INST_DIR
 
"noopster" <noop99@gmail.com>
??????:1187036192.750519.83070@k79g2000hse.googlegroups.com...
you could try ading your procedure to "CDS_INST_DIR/tools/dfII/
local/.simrc" and see if that finds it.
Surely it's found, because when I modify some errors, the program will check
out and prompt me.


On Aug 12, 10:33 pm, "tech11" <tec...@sohu.com> wrote:
Hello everyone,

I defined one function in '.simrc', but when I export out hspice netlist,
I
get such error:

Running netlist
Begin Incremental Netlisting Aug 12 22:27:10 2007
*Error* eval: undefined function - HNLPrintPnpElement
End netlisting Aug 12 22:27:11 2007
"Netlister: There were errors, no netlist was produced."

Below is my function defination:

procedure( HNLPrintPnpElement()
hnlPrintString("q") hnlPrintString(hnlMapInstName(hnlCurrentInstName))
hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("C"
0)))
hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("B"
0)))
hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("E"
0)))
hnlHspicePrintInstPropVal('("modelType"))
;if( hnlCurrentType == "pnp" then
;hnlPrintString("pnp")
;)
;hnlHspicePrintInstPropEqVal('("area" "m"))
hnlPrintString("\n")
)

What's the question?

B.R.

Joffre
CDS_INST_DIR
 
On Aug 14, 1:30 am, "tech11" <tec...@sohu.com> wrote:
"noopster" <noo...@gmail.com
??????:1187036192.750519.83...@k79g2000hse.googlegroups.com...

you could try ading your procedure to "CDS_INST_DIR/tools/dfII/
local/.simrc" and see if that finds it.

Surely it's found, because when I modify some errors, the program will check
out and prompt me.



On Aug 12, 10:33 pm, "tech11" <tec...@sohu.com> wrote:
Hello everyone,

I defined one function in '.simrc', but when I export out hspice netlist,
I
get such error:

Running netlist
Begin Incremental Netlisting Aug 12 22:27:10 2007
*Error* eval: undefined function - HNLPrintPnpElement
End netlisting Aug 12 22:27:11 2007
"Netlister: There were errors, no netlist was produced."

Below is my function defination:

procedure( HNLPrintPnpElement()
hnlPrintString("q") hnlPrintString(hnlMapInstName(hnlCurrentInstName))
hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("C"
0)))
hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("B"
0)))
hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("E"
0)))
hnlHspicePrintInstPropVal('("modelType"))
;if( hnlCurrentType == "pnp" then
;hnlPrintString("pnp")
;)
;hnlHspicePrintInstPropEqVal('("area" "m"))
hnlPrintString("\n")
)

What's the question?

B.R.

Joffre
CDS_INST_DIR
Is there not a log file in the simulation directory that yields some
related information?
 
"noopster" <noop99@gmail.com>
??????:1187099182.530195.52490@19g2000hsx.googlegroups.com...
On Aug 14, 1:30 am, "tech11" <tec...@sohu.com> wrote:
"noopster" <noo...@gmail.com
??????:1187036192.750519.83...@k79g2000hse.googlegroups.com...

you could try ading your procedure to "CDS_INST_DIR/tools/dfII/
local/.simrc" and see if that finds it.

Surely it's found, because when I modify some errors, the program will
check
out and prompt me.



On Aug 12, 10:33 pm, "tech11" <tec...@sohu.com> wrote:
Hello everyone,

I defined one function in '.simrc', but when I export out hspice
netlist,
I
get such error:

Running netlist
Begin Incremental Netlisting Aug 12 22:27:10 2007
*Error* eval: undefined function - HNLPrintPnpElement
End netlisting Aug 12 22:27:11 2007
"Netlister: There were errors, no netlist was produced."

Below is my function defination:

procedure( HNLPrintPnpElement()
hnlPrintString("q") hnlPrintString(hnlMapInstName(hnlCurrentInstName))
hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("C"
0)))
hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("B"
0)))
hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("E"
0)))
hnlHspicePrintInstPropVal('("modelType"))
;if( hnlCurrentType == "pnp" then
;hnlPrintString("pnp")
;)
;hnlHspicePrintInstPropEqVal('("area" "m"))
hnlPrintString("\n")
)

What's the question?

B.R.

Joffre
CDS_INST_DIR

Is there not a log file in the simulation directory that yields some
related information?


The log file is the error info:
Running netlist
Begin Incremental Netlisting Aug 12 22:27:10 2007
*Error* eval: undefined function - HNLPrintPnpElement
End netlisting Aug 12 22:27:11 2007
"Netlister: There were errors, no netlist was produced."
 
On Aug 15, 2:52 am, "tech11" <tec...@sohu.com> wrote:
"noopster" <noo...@gmail.com
??????:1187099182.530195.52...@19g2000hsx.googlegroups.com...

On Aug 14, 1:30 am, "tech11" <tec...@sohu.com> wrote:
"noopster" <noo...@gmail.com
??????:1187036192.750519.83...@k79g2000hse.googlegroups.com...

you could try ading your procedure to "CDS_INST_DIR/tools/dfII/
local/.simrc" and see if that finds it.

Surely it's found, because when I modify some errors, the program will
check
out and prompt me.

On Aug 12, 10:33 pm, "tech11" <tec...@sohu.com> wrote:
Hello everyone,

I defined one function in '.simrc', but when I export out hspice
netlist,
I
get such error:

Running netlist
Begin Incremental Netlisting Aug 12 22:27:10 2007
*Error* eval: undefined function - HNLPrintPnpElement
End netlisting Aug 12 22:27:11 2007
"Netlister: There were errors, no netlist was produced."

Below is my function defination:

procedure( HNLPrintPnpElement()
hnlPrintString("q") hnlPrintString(hnlMapInstName(hnlCurrentInstName))
hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("C"
0)))
hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("B"
0)))
hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("E"
0)))
hnlHspicePrintInstPropVal('("modelType"))
;if( hnlCurrentType == "pnp" then
;hnlPrintString("pnp")
;)
;hnlHspicePrintInstPropEqVal('("area" "m"))
hnlPrintString("\n")
)

What's the question?

B.R.

Joffre
CDS_INST_DIR

Is there not a log file in the simulation directory that yields some
related information?

The log file is the error info:
Running netlist
Begin Incremental Netlisting Aug 12 22:27:10 2007
*Error* eval: undefined function - HNLPrintPnpElement
End netlisting Aug 12 22:27:11 2007
"Netlister: There were errors, no netlist was produced."
after you initialize the simulator you could type "netlist()" in the
CIW to see if that yield more information.
Then if the function is still undefined, you could try a manual load
of .simrc and then try again.
 
"noopster" <noop99@gmail.com>
??????:1187188516.003553.206480@50g2000hsm.googlegroups.com...
On Aug 15, 2:52 am, "tech11" <tec...@sohu.com> wrote:
"noopster" <noo...@gmail.com
??????:1187099182.530195.52...@19g2000hsx.googlegroups.com...

On Aug 14, 1:30 am, "tech11" <tec...@sohu.com> wrote:
"noopster" <noo...@gmail.com
??????:1187036192.750519.83...@k79g2000hse.googlegroups.com...

you could try ading your procedure to "CDS_INST_DIR/tools/dfII/
local/.simrc" and see if that finds it.

Surely it's found, because when I modify some errors, the program will
check
out and prompt me.

On Aug 12, 10:33 pm, "tech11" <tec...@sohu.com> wrote:
Hello everyone,

I defined one function in '.simrc', but when I export out hspice
netlist,
I
get such error:

Running netlist
Begin Incremental Netlisting Aug 12 22:27:10 2007
*Error* eval: undefined function - HNLPrintPnpElement
End netlisting Aug 12 22:27:11 2007
"Netlister: There were errors, no netlist was produced."

Below is my function defination:

procedure( HNLPrintPnpElement()
hnlPrintString("q")
hnlPrintString(hnlMapInstName(hnlCurrentInstName))
hnlPrintString(" ")
hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("C"
0)))
hnlPrintString(" ")
hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("B"
0)))
hnlPrintString(" ")
hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("E"
0)))
hnlHspicePrintInstPropVal('("modelType"))
;if( hnlCurrentType == "pnp" then
;hnlPrintString("pnp")
;)
;hnlHspicePrintInstPropEqVal('("area" "m"))
hnlPrintString("\n")
)

What's the question?

B.R.

Joffre
CDS_INST_DIR

Is there not a log file in the simulation directory that yields some
related information?

The log file is the error info:
Running netlist
Begin Incremental Netlisting Aug 12 22:27:10 2007
*Error* eval: undefined function - HNLPrintPnpElement
End netlisting Aug 12 22:27:11 2007
"Netlister: There were errors, no netlist was produced."

after you initialize the simulator you could type "netlist()" in the
CIW to see if that yield more information.
Then if the function is still undefined, you could try a manual load
of .simrc and then try again.


The question is resolved. Thanks for all of your help!

Since there're some if command, maybe met some errors and the function codes
mayn't get effect. I put them in one file and load again, I may get the
netlist generation.

B.R.

Joffre
 

Welcome to EDABoard.com

Sponsor

Back
Top