AnsweredAssumed Answered

nettrans do incomplete translation

Question asked by TNAKA on Jun 4, 2003
When spectre nelist file name is same as subckt name,
"nettrans" do incomplete translation without any message as logfile.

For example, try following "cap.scs" and "sub.scs".
 % nettrans cap.scs cap_scs.ads -pl spectre -g -n -pp

This cap.scs calls "sub.scs".
======================================================================
"cap.scs"
//
library  cap_test

section t
 parameters cap_scale=1
 include "sub.scs"
endsection

section l
 parameters cap_scale=.75
 include "sub.scs"
endsection

section h
 parameters cap_scale=1.25
 include "sub.scs"
endsection

endlibrary

"sub.scs"
//
inline subckt cap(TOP BOT B)
 parameters C1=0 C2=0
 c1 TOP BOT capacitor c=cap_scale*C1
 c2 BOT B   capacitor c=C2
ends cap
======================================================================

"nettrans" gives following incomplete result.

; Translated with ADS Netlist Translator (*) 230.300 Apr  6 2003
;
;library  cap_test

#ifdef t
cap_scale=1
define cap ( TOP BOT B)
parameters  C1=0 C2=0
C:c1 TOP BOT C=cap_scale*C1
C:c2 BOT B C=C2
end cap
#endif

#ifdef l
cap_scale=.75
define cap ( TOP BOT B)
parameters  C1=0 C2=0
C:c1 TOP BOT C=cap_scale*C1
C:c2 BOT B C=C2
end cap
#endif

#ifdef h
cap_scale=1.25
#endif

;endlibrary


But if I change file name of "cap.scs" to "cap1.scs",
"nettrans" works completely.

% cp cap.scs cap1.scs
% nettrans cap1.scs cap_scs.ads -pl spectre -g -n -pp

The above works.
Why ?
Is this bug ?  

Outcomes