R
RolfK
Guest
Dear All,
I'm unfortunately found myself still a skill beginner.
Please have alook at the following snipet:
#################################
procedure( CreateRCNetwork(Width BaseR BaseC MetalNumber )
let( ( ScaleFactor RValue CValueRL CValueMid
SchematicName )
ScaleFactor = 80/Width;
printf("%f" scaleFactor )
;RValue = sprintf(nil "%fm" baseR * ScaleFactor) ;
;CValueMid =sprintf(nil "%fp" baseC * ScaleFactor) ;
;CValueRL =sprintf(nil "%fp" baseC * ScaleFactor / 2) ;
;SchematicName= sprintf(nil "RCBASE80R%dC%dM%d" RValue CValueMid
MetalNumber);
;cvID= dbOpenCellViewByType("GENERIC" SchematicName "schematic"
"schematic" "w")
); let
);procedure
CreateRCNetwork(160 100 2 1)
###########################################
I already got stuk at the simple first print statement (just for test)
==> *Error* fprintf/sprintf: format spec. incompatible with data - 0
My final goal is to calculate the schematicname and to calculate some
property values for
the values of R and C to be instanciated later.
In general I have a lot of diificulties to undertand how strings and
numbers are handled in skill.
Also it looks like that there in no function to avoid sprintf just to
create a value string like 100p for e.g a capacitance property value.
Could someone help me on that please ?
Thanks a lot
Rolf
I'm unfortunately found myself still a skill beginner.
Please have alook at the following snipet:
#################################
procedure( CreateRCNetwork(Width BaseR BaseC MetalNumber )
let( ( ScaleFactor RValue CValueRL CValueMid
SchematicName )
ScaleFactor = 80/Width;
printf("%f" scaleFactor )
;RValue = sprintf(nil "%fm" baseR * ScaleFactor) ;
;CValueMid =sprintf(nil "%fp" baseC * ScaleFactor) ;
;CValueRL =sprintf(nil "%fp" baseC * ScaleFactor / 2) ;
;SchematicName= sprintf(nil "RCBASE80R%dC%dM%d" RValue CValueMid
MetalNumber);
;cvID= dbOpenCellViewByType("GENERIC" SchematicName "schematic"
"schematic" "w")
); let
);procedure
CreateRCNetwork(160 100 2 1)
###########################################
I already got stuk at the simple first print statement (just for test)
==> *Error* fprintf/sprintf: format spec. incompatible with data - 0
My final goal is to calculate the schematicname and to calculate some
property values for
the values of R and C to be instanciated later.
In general I have a lot of diificulties to undertand how strings and
numbers are handled in skill.
Also it looks like that there in no function to avoid sprintf just to
create a value string like 100p for e.g a capacitance property value.
Could someone help me on that please ?
Thanks a lot
Rolf