I write a small script to generate si.env file and start procedure for cdlOut.
But process finished without any error and without any results. If I try to start the same command with the same si.env file under 'bash' - all works fine.
I try to start command: "si -batch -command netlist" under ipcBeginProcess and under system but result the same.
Could you pls. tell me, what I did wrong?
There is my small code:
procedure(runCDLout(lib cell) prog( (id)
;;remove lock file when(isFile(strcat(getWorkingDir() "/.running")) system(sprintf(nil "rm %s/.running" getWorkingDir()) ); ); ;;create si.env filesiEnvPrep(lib cell);
id = ipcBeginProcess("si -batch -command netlist"); ipcWait(id); ;system("si -batch -command netlist > si.log"); );end prog);irunCDLout
procedure(siEnvPrep(lib cell) prog( (outFile runDir) runDir = strcat(getWorkingDir() "/act_generator/cdl"); outFile = outfile("./si.env" "w"); fprintf(outFile sprintf(nil "simLibName = \"%s\" \nsimCellName = \"%s\" \nsimViewName = \"schematic\" \n simSimulator = \"auCdl\" \n simNotIncremental = nil\n simReNetlistAll = 't\n simViewList = '(\"auCdl\" \"schematic\" \"symbol\")\n simStopList = '(\"auCdl\")\n hnlNetlistFileName = \"%s\" \n resistorModel = \"\"\n shortRES = 2000.0 \n preserveRES = 't \n checkRESVAL = 't \n checkRESSIZE = 'nil \n preserveCAP = 't \n checkCAPVAL = 't \n checkCAPAREA = 'nil \n preserveDIO = 't \n checkDIOAREA = 't \n checkDIOPERI = 't \n checkCAPPERI = 'nil \n simPrintInhConnAttributes = 'nil \n checkScale = \"meter\" \n checkLDD = 'nil \n pinMAP = 'nil \n shrinkFACTOR = 0.0 \n globalPowerSig = \"\" \n globalGndSig = \"\" \n displayPININFO = 't \n preserveALL = 't \n setEQUIV = \"\" \n incFILE = \"\" \n auCdlDefNetlistProc = \"ansCdlSubcktCall\"" lib cell strcat(cell ".cdl") );end sprintf );end fprintf
in log file I have only this:
Virtuoso Framework License (111) was checked out successfully. Total checkout time was 0.05s.
This code worked for me... (from a very quick test).
In reply to Andrew Beckett:
I'm so sorry, I don;t know what happened., but after that I posted my question this code working for me also.
But could you pls. tell me, way it takes a lot of time, form my side about 1 minute/ but under bash or through ciw->export it takes about 20-30 sec?
In reply to MedAn:
I have no idea why it should take different amounts of times by running it different ways. Probably this is something you should explore via customer support.