Magic Mailing List |
|
From: cfk (cfk AT pacbell DOT net) Date: Mon Mar 31 2003 - 19:08:06 EST
Dear Stefan: I have a question and a request. On the question part, although I can extract and spice a layout from within magic with tclspice, I seem to only be able to figure out how to plot variables defined in the spice file such as in and out. Is there a simple way to plot say i(vdd) so I can look at the current of my inverter. I am using the university of kansas invf100.mag cell for testing right now ( http://www.rsl.ukans.edu/~mlinhart/magic ). I am trying to get to a point where I can put together a modest tutorial for those wishing to see tclspice work with magic and plotting a derived value like current of a node would be interesting. On the request part, I would appreciate it if you would consider making all of the output from tclspice come to the tkcon window when spice is loaded from within magic and remove the dependence on the bash shell for printf. I did receive your e-mail regarding: > Unfortunately the spice C source code uses printf quite a lot so the > output for most commands goes to the command line (not Tk console). > There is a quick fix by doing: > > #undef printf > #define printf my_printf > int my_printf() { > /* Some C code which writes the output to Tcl though the Tcl puts > command */ > } > > in some header file. The Tcl_interp will need to be stored somewhere so > it can be used by my_printf for calling Tcl_Eval. > and certainly I could do that, but it would be cleaner if I did not have to patch tclspice. Perhaps you might consider having an define in the make tcl rule that does the previous and sends them out with TK_con prints or puts. Again, I thank you for your efforts and we are making progress. I am please to see you got the colormap thing under control on your Mac. Charles
|
|