The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Simulators >> Circuit Simulators >> doAnalyses: TRAN: Timestep too small; initial timepoint: trouble with https://designers-guide.org/forum/YaBB.pl?num=1517104224 Message started by blue111 on Jan 27th, 2018, 5:50pm |
Title: doAnalyses: TRAN: Timestep too small; initial timepoint: trouble with Post by blue111 on Jan 27th, 2018, 5:50pm I have created a series, shunt LC bandstop/notch filter. https://github.com/promach/frequency_trap/tree/9806e6c293463c1eca3b1b5f0c92ac3e76d14f28 The screenshots above correspond to frequency_trap.net, CMOS_Inverter.net and Gm2.net respectively. However, when I run "make clean && make" after cloning the project from github, ngspice gave me the following error: Quote:
Could anyone advise ? CMOS_Inverter.net Code:
frequency_trap.net Code:
Gm2.net Code:
|
Title: Re: doAnalyses: TRAN: Timestep too small; initial timepoint: trouble with Post by Andrew Beckett on Jan 28th, 2018, 12:23am I'm not familiar with the tools you're using (you didn't even say what they were - which isn't very helpful for anyone trying to help). However, one glaring problem is that the transistors in the inverter are probably a million times too big - the dimensions are in metres and so the transistors in the inverter have w=3 metres and l=0.4 metres, compared with those in the gm block which are in um. That can't help and presumably is incorrect. Also, not sure if there's supposed to be such a huge resistance Rs (1e99 - effectively open circuit) or not? Regards, Andrew. |
Title: Re: doAnalyses: TRAN: Timestep too small; initial timepoint: trouble with Post by blue111 on Jan 28th, 2018, 5:11am I am using gschem with noqsi backend and ngspice simulator. I have corrected the dimension of the inverter to um. Regarding the huge DC Rs, let me ponder a little bit more. If I use Rs = 1e-6 both in transient and AC analysis, I have no more transient simulation error and I am getting the following voltage plots. Do you have any clue why the CMOS inverter input and output differ by around 0.3V ? |
Title: Re: doAnalyses: TRAN: Timestep too small; initial timepoint: trouble with Post by Andrew Beckett on Jan 29th, 2018, 8:03am Well, M3 and M4 in the GM block are both conducting a considerable amount of current, causing the voltages to drop - I didn't try to debug your circuit, but it doesn't really work... I think that's something for you to investigate - take a look at the operating point of the devices, and see what's going on. I don't have access to the tools you're using, so I improvised with a different simulator. Your transistor models are also probably rather sensitive to the defaults in the simulator you're using - you've not provided any parameters at all. Doubt that's the reason for the problem - it's probably the circuit itself. Andrew. |
Title: Re: doAnalyses: TRAN: Timestep too small; initial timepoint: trouble with Post by blue111 on Jan 29th, 2018, 11:40am Quote:
In ngspice, .OP gave me the following: I am looking at it now. Do you have any comment ? Quote:
|
Title: Re: doAnalyses: TRAN: Timestep too small; initial timepoint: trouble with Post by Ken Kundert on Jan 31st, 2018, 12:30pm The circuit seems to be operating as I would expect. There is no reason why the input and output voltages of the inverter should not differ by 300mV. Why does this difference bother you? What kind of circuit is this? An amplifier? A latch? An oscillator? The weird resistor (1e99Ω in dc, 1μΩ in ac) is just asking for trouble from the simulator and is completely unnecessary. It is in series with a capacitor, which already acts like an open circuit in DC. -Ken |
Title: Re: doAnalyses: TRAN: Timestep too small; initial timepoint: trouble with Post by blue111 on Jan 31st, 2018, 6:32pm @Ken It is derived from http://www.seas.ucla.edu/brweb/papers/Conferences/LK_ISSCC15.pdf However, I could not obtain the desired inductor value from the gyrator made up of X1 and GM2 circuit blocks. If all resorts failed, I am thinking of using S-parameter to check the value of the active inductance created from gyrator structure consisting of CMOS inverter and GM2 circuit blocks. Besides, I have already use a much smaller Rs instead 1e99. |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |