.\" $Id: GENLIB_SET_LORES.3,v 1.1 2002/08/16 19:15:02 pnt Exp $ .\" @(#)GENLIB_SET_LORES.2 2.11 2002/08/14 ; Labo LIP6/ASIM cao-vlsi; Author : Pierre Nguyen Tuong .if t \{\ .XS \n% .ti 0.2i GENLIB_SET_LORES .XE .XS2 \n% .ti 0.2i GENLIB_SET_LORES .XE2 \} .TH GENLIB_SET_LORES 3 "August 14, 2002" "ASIM/LIP6" "MBK LOGICAL FUNCTIONS" .SH NAME GENLIB_SET_LORES \- set the resistance value of a logical resistor, after its creation. .so buster/alliance/alc_origin.1.en.gz .SH SYNOPSYS .nf .if n \{\ .ft B \} .if t \{\ .ft CR \} #include "mlo.h" void GENLIB_SET_LORES(figname,resname,newresi) char \(**figname ; char \(**resname ; double newresi ; .ft R .fi .SH PARAMETERS .TP 20 \fIfigname\fP Name of the logical figure .TP \fIresname\fP Instance name of the resistor .TP \fInewresi\fP New resistance value .SH DESCRIPTION \fBGENLIB_SET_LORES\fP looks in the list of resistors of the logical model \fIfigname\fP for a resistor identified by its instance \fIresname\fP and set the RESI field to the newresi value. .SH RETURN VALUE None .SH ERRORS .if n \{\ .ft B \} .if t \{\ .ft CR \} "\(**\(**\(** mbk error \(**\(**\(** getlores impossible : resistor \fIname\fP doesn't exist in figure \fIptfig \-> NAME\fP" .ft R .RS No resistor matches the name. .RE .SH EXAMPLE .ta 3n 6n 9n 12n 15n 18n 21n .nf .if n \{\ .ft B \} .if t \{\ .ft CR \} #include int main(int argc,char \(**argv[]) { /\(** Create a figure to work on, a parallel resistor \(**/ GENLIB_DEF_LOFIG("parallel_res") ; /\(** Define interface \(**/ GENLIB_LOCON("i",IN,"input") ; GENLIB_LOCON("f",OUT,"output") ; /\(** Add resistors \(**/ GENLIB_LORES(RESMIM,5.1,"input","output","res1") ; GENLIB_LORES(RESMIM,5.2,"input","output","res2") ; /* Modify resistors value */ GENLIB_SET_LORES("parallel_res","res1",6.2) ; GENLIB_SET_LORES("parallel_res","res2",6.3) ; /\(** Save all that on disk \(**/ GENLIB_SAVE_LOFIG() ; return 0 ; } .ft R .fi .SH SEE ALSO .BR mbk (1), .BR GENLIB_DEF_LOFIG (3), .BR GENLIB_LORES(3) .so buster/alliance/alc_bug_report.1.en.gz