electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Channel Length Modulation (lambda): SPICE Problem


Post new topic  Reply to topic    EDAboard.com Forum Index -> Analog Circuit Design -> Channel Length Modulation (lambda): SPICE Problem
Author Message
srivatsan



Joined: 04 Aug 2004
Posts: 183
Helped: 4


Post26 Oct 2004 21:42   

channel length modulation lambda


I am trying to calculate the channel length modulation from the output graph after simulation in spice. I view the output in nutmeg.

I am trying to convert the output (which is in binary) to ascii. So that I can import on to MATLAB or whatever and try to understand whether the design is working okay or not. Of course this method will have error but it is good enough for that W/L and VDS rnage at a VGS value.

Now I am not able to convert the binary to ascii. I understand that it would be due to compressed-binary-encoding of the output voltages as it helps in having compressed output files.

Has anyone tried to do what I am trying now?? If so, then reply.
Thanks in Advance.

Srivatsan
Back to top
Fom



Joined: 10 Mar 2004
Posts: 778
Helped: 57
Location: Taiwan


Post27 Oct 2004 2:20   

channel length modulation


What simulation software do you use? Spice is just common name.
Why you cannot print out your results to text file?
Back to top
Hughes



Joined: 10 Jun 2003
Posts: 718
Helped: 87


Post27 Oct 2004 2:58   

channel length modulation hspice


I don't use Nutmeg for spice-level simulation. But I think it should support .print statement. Print out the results and you will get ascii data.
Back to top
Google
AdSense
Google Adsense




Post27 Oct 2004 2:58   

Ads




Back to top
srivatsan



Joined: 04 Aug 2004
Posts: 183
Helped: 4


Post27 Oct 2004 16:02   

ngnutmeg set filetype=ascii


Well, I am using specifically, ngspice for simulation of circuit and ngnutmeg for viewing the output.
Now, when I used print command in ngnutmeg (print i(V4)), it worked (I saw the actual data interms of ascii).
Now I dont know how to get it on to a file. (Note I am in UNIX and therefore I dont mind what is the file and its extension. )
When I did "write i(V4) > data", it dumped me a segmentation core. So I did not understand about "writing" i(V4) values on to a file as ascii characters. If you can help me inthis it would be great...
thanks.
srivatsan
Back to top
srivatsan



Joined: 04 Aug 2004
Posts: 183
Helped: 4


Post28 Oct 2004 21:30   

calculate lambda spice


Well, I found how to save the nodal voltage or current values as a file in UNIX environment and if you are using nutmeg.

log on to nutmeg
load the output file
follow the commands written below:
1. set filetype = ascii
2. write <filename> i(V4) v(5)
3. quit

Now you are outside nutmeg. you can access the filename file and work on it.
Thanks to all who answered..
srivatsan
Back to top
GusTheCat



Joined: 16 Sep 2004
Posts: 8


Post28 Oct 2004 23:28   

channel length modulation hspice parameter


Well, I may be foolhardy... or brutal, as they call it. I will go ahead and grab screen shot, store it as bmp or jpeg, then use Matlab to read it in, then search for the location where the color is the plot, then I get coordinate information.

Once I was battling with getting publishing quality plots, and this is the way I used.
Back to top
srivatsan



Joined: 04 Aug 2004
Posts: 183
Helped: 4


Post29 Oct 2004 15:04   

modulator am +spice


hi GustheCat,
I tired that first.. of course who wants to find out how to save files in this way or that way.... takes time.. but i had no options as i required to get the channel length modulation little fast, repeatable, accurate. it is because when designing analog circuits, lambda would be more accurate when you actually plot the whole I-V for that vgs and ramp with vds. it really helps.... as it avoids big equations which uses PCLM model parameter in bsim3v3...
srivats
Back to top
sudheerkm



Joined: 08 Jul 2009
Posts: 37
Helped: 2
Location: india


Post03 Nov 2009 11:14   

Re: Channel Length Modulation (lambda): SPICE Problem


attachment didnot come

Added after 26 minutes:

ngspice -b simple.sp -o simple.out -r simple.raw

i am attaching mfile to read .raw file

Added after 2 minutes:

mfile does not come



Sorry, but you need login in to view this attachment

Back to top
sudheerkm



Joined: 08 Jul 2009
Posts: 37
Helped: 2
Location: india


Post03 Nov 2009 11:22   

Re: Channel Length Modulation (lambda): SPICE Problem


if u use octave

u can plot the output in octave (is a gnu alternative for matlab all the matlab commands more or less works there)

i am attaching octave spice

see this link
http://ngspice.sourceforge.net/octavespice.html



Sorry, but you need login in to view this attachment

Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Analog Circuit Design -> Channel Length Modulation (lambda): SPICE Problem
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Channel length modulation(Lambda) Vs Channel Length(L)?? (2)
channel length modulation (8)
channel length modulation (7)
channel length modulation (3)
Channel length modulation (10)
Channel length modulation question in CMOS (5)
how to get the Channel length modulation coefficient? (7)
how to determine the channel length modulation coefficient? (6)
How to find Channel Length Modulation factor Lamda (8)
how do I calculate the channel-length modulation from proces (3)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS