From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

Transient Analysis fails: Timestep too small

Solved!
Go to solution

I'm using Multisim 10.1 to assemble logical gates from transistors for an undergrad Elec. Engineering class. Part of the spec is that the gates must drive a 1 or 8 pF capacitor to the output voltage within 1nsec. (I beleive the circuit I've made available is the 8pF version).

 

The circuits work fine when I test them for logical functionality with an input frequency measured in seconds, but when I try to measure the timing of the output with a Ghz input, the transient analysis invariably fails with a 'time step too small" error.

 

I've looked through NI's site, found all sorts of possible fixes (adjusting relative and absolute error values, etc...), but no luck.

 

an example of the project in question can be found at: http://dl.dropbox.com/u/4286123/callforhelp.zip

 

I'd appreciate any advice anyone can give me to help get the circuit able to run a higher-frequency transient analysis.

 

thanks!

 

Brian Lojeck

EE student, CSULB

0 Kudos
Message 1 of 23
(34,755 Views)
0 Kudos
Message 2 of 23
(34,732 Views)
Solution
Accepted by topic author brianlojeck

Hi Brian,

 

I took a look at your circuit and it seemed that your cmos_andx8_timing_test_circuit.ms10 file is generating convergence errors. I made the following two changes to your transient simulation settings and the circuit simulated fine:

  1. Analysis Options>>SPICE Options>>Use Multisim Defaults
  2. Analysis Parameters>>Parameters>>Maximum time step (TMAX) = 1e-13 Sec

Generally, you would like to set the TMAX parameter to be significantly less than the smallest feature in your signal. In your case, the smallest feature is the rise time in V1 (1ps). If possible, try to simulate with slower rise/fall times and slew rates. It is a lot easier for Multisim to converge on solutions for semiconductors if these parameters were larger. I suppose you don't have the luxury here, but if you were to just test the behaviour of your circuit, this would be advisable.

 

Hope that helped.

----------
Yi
Software Developer
National Instruments - Electronics Workbench Group
Message 3 of 23
(34,726 Views)

@Muks: I have seen it, but thank you.

 

@ yyao: how strange, that the fix for a "timestep too small" error is to make the timestep even smaller. I hope you see why that solution didn't occur to me. ;-(

 

Many thanks, all, it works great now.

0 Kudos
Message 4 of 23
(34,718 Views)

Ah, I see your misunderstanding. If you don't specify a maximum timestep (TMAX), Multisim will automatically choose a TMAX based on the length of your transient simulation (TSTOP). In the event that Multisim can't solve for the next time step, it will choose a smaller timestep. It will keep trying smaller timesteps until it reaches some fraction of TMAX before giving up. This explains the Timestep too small message that you are getting; the timestep that Multisim has tried is too small to seem reasonable and Multisim informs you of the reason why it is giving up. If you have a long simulation with lots of high speed signals, the default TMAX would be too large and that is what is happening. By reducing the TMAX parameter, you are informing Multisim to expect high speed signals and to take smaller timesteps. If Multisim takes a sufficiently small timestep, it is more likely to converge on the solution (which is what happened). The only draw back is that this takes a lot more time, but such is the nature of high speed simulations.

 

I hope that makes sense now.

----------
Yi
Software Developer
National Instruments - Electronics Workbench Group
0 Kudos
Message 5 of 23
(34,711 Views)

Hello,

 

I have same issue with time step. Please can you help me how to fix it in my circuit?

 

 

Thank you

0 Kudos
Message 6 of 23
(31,753 Views)

please post the multisim circuit file. Thanks

Max
National Instruments
0 Kudos
Message 7 of 23
(31,741 Views)

here is it.

0 Kudos
Message 8 of 23
(31,734 Views)

Your setting under Simulate>>Mixed-mode simulations Settings is set to "Use ideal pin models". Digital components will use ideal voltages to drive outputs which are connected to analog components. You have several digital component outputs in parallel which causes short circuits (even though voltage values are the same).

 

You might want to change the setting to  "Use real pin models", which will cause the outputs of the digital component to exhibit I/V behavior similar to that found on those chips - something that you are probably looking for since it looks like you are trying to increase drive strength. 

 

 

Max
National Instruments
0 Kudos
Message 9 of 23
(31,731 Views)

Superb! Works very well.

 

Thank you very much.

 

Best regards

Ondrej

0 Kudos
Message 10 of 23
(31,721 Views)