The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> Influence of hierarchy on simulation
https://designers-guide.org/forum/YaBB.pl?num=1333443618

Message started by Lex on Apr 3rd, 2012, 2:00am

Title: Influence of hierarchy on simulation
Post by Lex on Apr 3rd, 2012, 2:00am

Hi simulator guru's!

Suppose we compare a flat design versus a hierarchical design. My question is: does the hierarchy influence the simulation run time?

Presumably, netlisting will take longer for the flat one, but what about the actual simulation? To keep the comparison fair, let's assume the same amount of nodes is saved, and that the amount of saved nodes is small. So with respect to simulation run time, is it beneficial to use hierarchy?

Title: Re: Influence of hierarchy on simulation
Post by Lex on Apr 12th, 2012, 4:25am

Nobody?

Title: Re: Influence of hierarchy on simulation
Post by Geoffrey_Coram on Apr 13th, 2012, 11:56am

The circuit matrix in Spice is flat, so I don't think there would be any difference.  You might get something, though, if the elements are ordered differently -- eg, if all the MOS models are placed sequentially in the flat netlist, then you might find the simulation goes faster because the MOS evaluation code is already in the CPU's L1 cache, compared with a hierarchical netlist that has different element types shuffled around.  But if it made a large difference, the simulators would sort the elements by type, or they might run all MOS elements on one CPU/thread, and others on a different thread.

Title: Re: Influence of hierarchy on simulation
Post by Lex on Apr 17th, 2012, 1:40am

Okay thanks Geoffrey! Can I conclude from your answer that for spice, it is best to have as much L1/L2/L3 cache and that the calculations are essentially memory access limited?

Do you know whether it helps to apply unidirectional circuit elements (voltage/current controlled voltage/current sources) to speed up simulation? Or are there cases when it actually slows down simulation? I can imagine (correct me if i'm wrong) that due to the irregularities such sources add in the Jacobi it might go both ways.

Title: Re: Influence of hierarchy on simulation
Post by Geoffrey_Coram on Apr 17th, 2012, 4:47am

Are you using Berkeley Spice 3f5?  Or a commercial tool?  Do you know if you have a sparse matrix solver?

I would expect that adding anything to the circuit would make it go slower; voltage sources in particular add matrix rows.  Though I suppose there will be cases where it would go faster.

"Small" circuits are dominated by element evaluation time, and "large" by matrix solution time, but what "small" and "large" are may depend on your simulator, the cache sizes, and the types of elements.

Title: Re: Influence of hierarchy on simulation
Post by Lex on Apr 24th, 2012, 2:12am

I'm using a commercial tool (Eldo).

Thanks for the insight, Geoffrey!

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.