WEBVTT

00:00:00.000 --> 00:00:01.580
<v Chris Gammell>This is The Amp Hour Podcast.

00:00:03.000 --> 00:00:05.680
<v Chris Gammell>Recorded April 28th, 2014.

00:00:07.420 --> 00:00:10.940
<v Chris Gammell>Episode 196 with guest Mike Englehart.

00:00:11.480 --> 00:00:14.520
<v Chris Gammell>Spice. Simulator. Sin Teresa's.

00:00:30.000 --> 00:00:34.460
<v Chris Gammell>Welcome to the Amp Hour. I'm Chris Gammell of Contextual Electronics.

00:00:34.820 --> 00:00:37.380
<v Mike Englehart>And I'm Mike Englehart from Linear Technology Corporation.

00:00:37.980 --> 00:00:46.360
<v Chris Gammell>Welcome, Mike. And we are Dave-less this week, but we don't need him because we're going to hear all about linear tech and LTSpice.

00:00:46.360 --> 00:00:54.980
<v Chris Gammell>And I am, as an analog guy, I cannot state how excited I am to talk to someone in charge of a product that basically did half my job for me.

00:00:55.400 --> 00:00:56.660
<v Chris Gammell>Does half my job for me.

00:00:57.900 --> 00:00:58.700
<v Chris Gammell>Very cool.

00:00:58.700 --> 00:01:01.960
<v Chris Gammell>So, let's hear a little bit of background.

00:01:02.200 --> 00:01:06.840
<v Chris Gammell>What is your path towards linear technology and where you are today?

00:01:07.940 --> 00:01:12.540
<v Mike Englehart>Well, I have been writing simulators for a real long time.

00:01:12.540 --> 00:01:15.880
<v Mike Englehart>Actually, I've been writing physical simulators since 1975.

00:01:17.680 --> 00:01:22.820
<v Mike Englehart>And, yeah, LTSpice is actually – now, those were not all circuit simulators.

00:01:23.220 --> 00:01:25.060
<v Mike Englehart>LTSpice is my third circuit simulator.

00:01:25.060 --> 00:01:39.700
<v Mike Englehart>But basically what happened is about 16 years ago, I realized that there were numerical methods that you could apply to spice programs to make a better spice program, make a faster and more robust spice program.

00:01:39.700 --> 00:01:44.880
<v Mike Englehart>You know, some of these methods were, you know, basically out there in the field of numerical methods.

00:01:44.960 --> 00:01:46.760
<v Mike Englehart>And some of the methods I invented myself.

00:01:47.160 --> 00:01:50.320
<v Mike Englehart>So, I was pretty sure I could write, you know, the world's fastest spice.

00:01:50.320 --> 00:01:58.200
<v Mike Englehart>But, you know, if you come to that point in your life, what do you do with that information, you know?

00:01:59.080 --> 00:02:04.500
<v Mike Englehart>And, you know, do you try to start a company or what do you try to do?

00:02:04.500 --> 00:02:12.460
<v Mike Englehart>Anyway, I've written enough simulators to know that the best simulators are actually not from software companies.

00:02:12.740 --> 00:02:13.520
<v Mike Englehart>They're not for sale.

00:02:14.400 --> 00:02:29.120
<v Mike Englehart>The problem is that the amount of money it takes to develop, you know, the best simulator in any particular field of engineering is larger than an amount of money that you can recoup with licensing fees.

00:02:29.120 --> 00:02:32.600
<v Mike Englehart>So, yeah.

00:02:32.820 --> 00:02:37.640
<v Mike Englehart>And I actually don't know of a single field of engineering that shows an exception to that.

00:02:37.780 --> 00:02:44.620
<v Mike Englehart>You know, if you want to simulate charged particle optics, you know, how would you – electrodes and iron and coils focus an electron beam.

00:02:45.160 --> 00:02:48.420
<v Mike Englehart>You know, the best simulator for that was not – is not for sale.

00:02:48.520 --> 00:02:51.500
<v Mike Englehart>It was actually developed by a company that designed scanning electron microscopes.

00:02:51.540 --> 00:02:55.860
<v Mike Englehart>And they developed it as a competitive advantage so they could design better microscopes than their competitors.

00:02:55.860 --> 00:03:00.920
<v Chris Gammell>Is that just because the market would be so small for the people that would need to actually buy that?

00:03:00.980 --> 00:03:05.740
<v Chris Gammell>You'd have to charge like, you know, a quarter million dollars in order to make that – the software company worth it?

00:03:05.760 --> 00:03:06.500
<v Chris Gammell>Is that kind of what you mean?

00:03:06.960 --> 00:03:11.420
<v Mike Englehart>You'd probably have to charge a lot more than a quarter million dollars for it.

00:03:12.100 --> 00:03:12.340
<v Mike Englehart>Oh, wow.

00:03:12.340 --> 00:03:17.840
<v Mike Englehart>You'd probably have to charge, you know, more than a million dollars for it to recoup your development costs.

00:03:18.660 --> 00:03:19.300
<v Mike Englehart>Right, right.

00:03:19.300 --> 00:03:20.400
<v Mike Englehart>It takes a few people.

00:03:20.500 --> 00:03:21.200
<v Mike Englehart>It takes a while.

00:03:21.200 --> 00:03:25.240
<v Mike Englehart>So – and then you have all this risk.

00:03:25.500 --> 00:03:28.120
<v Mike Englehart>You know, you can't develop a project like that just to break even.

00:03:29.200 --> 00:03:29.400
<v Mike Englehart>Right, right.

00:03:29.400 --> 00:03:30.940
<v Mike Englehart>And you would need a lot more money.

00:03:31.060 --> 00:03:37.560
<v Mike Englehart>Like in this case of scanning electron microscope – in this case of charged particle optics, there's simulators that go for free up to $100,000.

00:03:38.020 --> 00:03:40.720
<v Mike Englehart>You know, the best simulator was designed by a scanning electron microscope company.

00:03:40.720 --> 00:03:50.280
<v Mike Englehart>And they developed it explicitly to be better than any simulator you could buy from any company at any price so that nobody could design a better microscope than they could.

00:03:50.360 --> 00:03:51.180
<v Mike Englehart>Why they developed it.

00:03:51.180 --> 00:03:52.200
<v Chris Gammell>Yeah.

00:03:52.740 --> 00:03:56.220
<v Chris Gammell>Well, that's interesting too because I've heard – at least I've heard stories.

00:03:56.340 --> 00:03:58.640
<v Chris Gammell>I don't know if this fits with what you've seen.

00:03:58.720 --> 00:04:04.220
<v Chris Gammell>But a lot of times that there's internal tools that people are using for developing stuff on their own, right?

00:04:04.260 --> 00:04:06.720
<v Chris Gammell>And it just happens to be, okay, well, we can spin this out.

00:04:06.780 --> 00:04:14.140
<v Chris Gammell>We can use this and use this as a marketing tool as much as, you know, we're using it as an internal tool to develop the product itself.

00:04:14.140 --> 00:04:20.760
<v Mike Englehart>I'd be interested in knowing cases like that because usually these in-house simulators are not used externally.

00:04:21.160 --> 00:04:25.480
<v Mike Englehart>You know, and I know of lots of examples of – like Intel has a really good high-speed MOS solver.

00:04:26.720 --> 00:04:29.160
<v Mike Englehart>And they developed it in-house.

00:04:29.520 --> 00:04:34.160
<v Mike Englehart>And that's – the fact that they developed their own simulator is basically the difference between Intel and AMD.

00:04:34.360 --> 00:04:36.760
<v Mike Englehart>AMD buys their CAD tools like ACES and Anagram.

00:04:37.260 --> 00:04:39.220
<v Mike Englehart>And Intel develops their in-house ones.

00:04:39.220 --> 00:04:45.780
<v Mike Englehart>And, you know, the consequences of that strategic decision is ultimately reflected in the quality of their products.

00:04:46.820 --> 00:04:57.100
<v Mike Englehart>But, you know, anyway, every field of electronic, every field of engineering, you really see this pattern where the best simulators are developed by the people that need them and not by software companies.

00:04:57.240 --> 00:05:01.100
<v Mike Englehart>Even like if you want – say you want to know the radar returned from a war plane.

00:05:01.100 --> 00:05:12.840
<v Mike Englehart>Well, you know, you can buy, you know, high-frequency 3D, you know, tessellation and mesh programs to try to compute the radar return of structures of different shapes.

00:05:13.480 --> 00:05:19.020
<v Mike Englehart>But, you know, the best simulators for computing the radar return from a war plane is developed by the people that make those planes.

00:05:19.080 --> 00:05:20.480
<v Mike Englehart>And they don't sell the simulator.

00:05:20.620 --> 00:05:21.460
<v Mike Englehart>They sell the planes.

00:05:22.400 --> 00:05:24.820
<v Mike Englehart>You know, that's just the business model.

00:05:24.820 --> 00:05:27.300
<v Mike Englehart>Anyway, that's – I knew that.

00:05:27.600 --> 00:05:38.020
<v Mike Englehart>And that's why I – when I had this information about how to write the world's fastest spice, that's why I didn't try to, you know, join an EDA company.

00:05:38.240 --> 00:05:40.500
<v Mike Englehart>That's why I looked for an IC company that was interested in it.

00:05:41.480 --> 00:05:50.680
<v Mike Englehart>And of all things, Linear Tech on their website had an ad for a position that I could shoehorn my agenda into what they wanted.

00:05:51.280 --> 00:05:52.820
<v Mike Englehart>You know, they wanted something –

00:05:52.820 --> 00:05:52.960
<v Mike Englehart>Really?

00:05:53.180 --> 00:05:53.580
<v Mike Englehart>Yes.

00:05:54.060 --> 00:05:58.940
<v Mike Englehart>So I answered an ad on Linear Tech's website, and that's how it started.

00:05:59.820 --> 00:06:00.760
<v Chris Gammell>So you hear that, folks?

00:06:00.800 --> 00:06:02.300
<v Chris Gammell>You want to develop the next LTSpice.

00:06:02.340 --> 00:06:03.920
<v Chris Gammell>You just got to read the online ad.

00:06:04.100 --> 00:06:06.280
<v Chris Gammell>I don't think that story still holds, Mike.

00:06:06.300 --> 00:06:08.960
<v Chris Gammell>I got to say, I think this might be an outlier.

00:06:10.320 --> 00:06:16.620
<v Mike Englehart>The first time I told that to people, I didn't realize how funny it sounded because a bunch of people were laughing when I said that.

00:06:16.740 --> 00:06:19.280
<v Mike Englehart>But that's literally what happened.

00:06:19.280 --> 00:06:22.940
<v Mike Englehart>And I will admit that the position that they wanted was different.

00:06:23.080 --> 00:06:24.860
<v Mike Englehart>It was just a compatible agenda.

00:06:25.460 --> 00:06:26.060
<v Mike Englehart>You know what I mean?

00:06:26.180 --> 00:06:26.700
<v Chris Gammell>Right, right.

00:06:27.220 --> 00:06:31.640
<v Mike Englehart>But I wrote LTSpice explicitly beneath the world's fastest spice.

00:06:31.640 --> 00:06:39.240
<v Mike Englehart>There were all sorts of numerical methods that I put into it, like node reduction and new ways of integrating differential equations.

00:06:41.640 --> 00:06:43.720
<v Mike Englehart>Just a lot of things are into it.

00:06:43.820 --> 00:06:45.640
<v Mike Englehart>It even does self-authoring code.

00:06:46.160 --> 00:06:47.860
<v Mike Englehart>Oh, what does that mean?

00:06:47.860 --> 00:06:54.500
<v Mike Englehart>Well, the first version of LTSpice didn't do this, but in 2008, I made it self-authoring.

00:06:55.220 --> 00:07:12.160
<v Mike Englehart>And that means that when you push the little running man icon and the schematic capture program produces a net list and the simulator parses the net list and stores it all in data structures.

00:07:12.160 --> 00:07:23.320
<v Mike Englehart>Once that happens, then LTSpice looks at all those addresses and those data structures and it actually authors an assembly language program to solve that particular circuit.

00:07:23.600 --> 00:07:24.720
<v Mike Englehart>It writes a smacker assembler.

00:07:24.920 --> 00:07:25.260
<v Mike Englehart>Yes.

00:07:25.400 --> 00:07:26.420
<v Mike Englehart>And then it assembles it.

00:07:26.520 --> 00:07:26.620
<v Mike Englehart>Wow.

00:07:26.800 --> 00:07:27.640
<v Mike Englehart>And then it links it.

00:07:27.680 --> 00:07:29.300
<v Mike Englehart>Then it calls that address as a function.

00:07:29.700 --> 00:07:30.940
<v Mike Englehart>And that's the way it works.

00:07:30.960 --> 00:07:31.960
<v Mike Englehart>And that's why it's so fast?

00:07:32.040 --> 00:07:32.660
<v Mike Englehart>Is that the idea?

00:07:32.940 --> 00:07:33.760
<v Mike Englehart>That speeds things up.

00:07:33.880 --> 00:07:35.460
<v Mike Englehart>Yes, it makes it a factor of three faster.

00:07:35.460 --> 00:07:37.540
<v Mike Englehart>And I'll tell you why it's black.

00:07:37.740 --> 00:07:53.100
<v Mike Englehart>The thing is, is that when you're writing in a high-level language, because all operating systems today use dynamic memory allocation, you don't really get the, you know, you have some data X and you refer to that X in your program.

00:07:53.240 --> 00:07:57.820
<v Mike Englehart>You're not referring to the data X and you're not referring to the address of the data X.

00:07:57.940 --> 00:08:01.000
<v Mike Englehart>You're really referring to the address of the address of the data X.

00:08:01.000 --> 00:08:08.920
<v Mike Englehart>And once the program runs, it'll allocate some memory and it'll be, you know, when you know where it's going to be stored, but you don't know where it, what the address that is.

00:08:08.980 --> 00:08:12.560
<v Mike Englehart>And then once you get done with all that indirection, it takes a long time.

00:08:12.620 --> 00:08:18.400
<v Mike Englehart>In fact, it takes longer to address, get your memory into the math floating point unit than to actually do the math.

00:08:18.940 --> 00:08:19.820
<v Mike Englehart>That's the problem.

00:08:20.740 --> 00:08:22.920
<v Mike Englehart>Now, actually, that's not always the case.

00:08:22.920 --> 00:08:33.540
<v Mike Englehart>It's that actually, the reason why it takes longer to get the stuff into the floating point unit than to doing the floating point math is because of the specific operations you're doing in SPICE.

00:08:34.220 --> 00:08:41.880
<v Mike Englehart>You probably know that SPICE is doing successive linear approximations to a nonlinear system, which means it sets up the system simultaneously in equations and solves them.

00:08:42.100 --> 00:08:44.280
<v Mike Englehart>Basically, what it's doing is it's solving matrices.

00:08:44.940 --> 00:08:45.060
<v Chris Gammell>Yeah.

00:08:45.580 --> 00:08:47.400
<v Chris Gammell>All the stuff that I hated doing in school.

00:08:48.560 --> 00:08:49.000
<v Chris Gammell>Exactly.

00:08:49.000 --> 00:08:51.540
<v Chris Gammell>It's never, ever doing the Laplace transformers directly.

00:08:51.660 --> 00:08:55.440
<v Chris Gammell>It's always doing it by little guesses, little changes, little guesses, little changes, right?

00:08:56.160 --> 00:08:56.560
<v Mike Englehart>Yeah.

00:08:56.720 --> 00:08:58.400
<v Mike Englehart>Well, Laplace would be a linear thing.

00:08:58.600 --> 00:09:12.460
<v Mike Englehart>But when it's solving your, you know, your diodes and your transistors, all those nonlinear elements, it's expanding the nonlinear, underlying nonlinear system as a Taylor series, keeping the first two terms.

00:09:12.620 --> 00:09:16.960
<v Mike Englehart>And then it's finding the Taylor series that actually approximates the system really well.

00:09:17.220 --> 00:09:18.100
<v Mike Englehart>And that's what it's doing.

00:09:18.100 --> 00:09:21.360
<v Mike Englehart>Anyways, in doing that, it has to solve a bunch of matrices.

00:09:22.280 --> 00:09:26.220
<v Mike Englehart>And when you solve a matrix, you're mostly doing addition, subtraction, and multiplication.

00:09:27.000 --> 00:09:30.560
<v Mike Englehart>There's a few divisions, but there's only one division per unknown.

00:09:31.960 --> 00:09:33.380
<v Mike Englehart>And division takes a long time.

00:09:33.580 --> 00:09:38.340
<v Mike Englehart>But addition, subtraction, multiplication, that's going to occur in only three volts.

00:09:38.760 --> 00:09:38.920
<v Mike Englehart>You know.

00:09:38.920 --> 00:09:39.080
<v Mike Englehart>Yeah.

00:09:39.260 --> 00:09:40.180
<v Mike Englehart>Right, right, right.

00:09:40.200 --> 00:09:41.200
<v Mike Englehart>900 picoseconds.

00:09:41.540 --> 00:09:41.800
<v Mike Englehart>Right?

00:09:41.900 --> 00:09:42.460
<v Mike Englehart>Which is fast.

00:09:42.580 --> 00:09:43.180
<v Mike Englehart>Yeah, it's fast.

00:09:43.280 --> 00:09:43.380
<v Mike Englehart>Yeah.

00:09:43.440 --> 00:09:43.840
<v Mike Englehart>You can multiply.

00:09:43.980 --> 00:09:44.920
<v Mike Englehart>That is quite fast.

00:09:44.920 --> 00:09:51.600
<v Mike Englehart>Yeah, you can multiply two floating point, double precision, 64-bit numbers to a 64-bit accurate result in 900 picoseconds.

00:09:51.700 --> 00:09:52.980
<v Mike Englehart>That's what your home computer does.

00:09:53.740 --> 00:09:54.060
<v Chris Gammell>Right.

00:09:54.140 --> 00:09:58.760
<v Chris Gammell>All without an accelerator or any fancy, like, FPGA-type hardware, or, like, custom hardware.

00:09:58.940 --> 00:09:59.300
<v Chris Gammell>It's all just right there.

00:09:59.300 --> 00:10:01.600
<v Chris Gammell>No, the custom hardware would be slower, but it'll have more of them.

00:10:02.560 --> 00:10:02.820
<v Chris Gammell>Right.

00:10:02.860 --> 00:10:03.220
<v Chris Gammell>Oh, right.

00:10:03.260 --> 00:10:03.360
<v Mike Englehart>Right.

00:10:03.360 --> 00:10:03.580
<v Mike Englehart>Yeah.

00:10:03.800 --> 00:10:06.900
<v Mike Englehart>So if you can parallel process, you would get a net advantage.

00:10:07.220 --> 00:10:18.540
<v Mike Englehart>But no, the floating point units is part of the Intel hardware now, and it can do those three particular flops in 900 picoseconds.

00:10:18.540 --> 00:10:31.260
<v Mike Englehart>But you never get that performance from anything that you write at application code compile time, because when you're writing the program, you don't know what the address is going to be, because you're dynamically allocating memory.

00:10:31.540 --> 00:10:37.340
<v Mike Englehart>Even if you're writing a SEM language, but if you've already called malloc, you know those addresses.

00:10:37.340 --> 00:10:43.080
<v Mike Englehart>You can write some code with those addresses in line, and you can run the pipeline hot, and that's what I do.

00:10:43.900 --> 00:10:57.300
<v Chris Gammell>Mike, I have to say that my excitement at the beginning of this interview, thinking, oh, we're going to talk circuits and everything else, is quickly being replaced by fear as we talk about programming stuff that I usually run from, like a sprinter.

00:10:57.500 --> 00:10:59.380
<v Chris Gammell>I hate to disappoint you on this.

00:10:59.920 --> 00:11:00.820
<v Chris Gammell>No, it's okay.

00:11:01.120 --> 00:11:02.300
<v Chris Gammell>It's good.

00:11:02.420 --> 00:11:04.620
<v Chris Gammell>I'm actually not trying to impress you.

00:11:04.800 --> 00:11:06.120
<v Chris Gammell>This is like your life, though, right?

00:11:06.120 --> 00:11:06.740
<v Chris Gammell>This is what you do.

00:11:06.840 --> 00:11:08.440
<v Chris Gammell>I mean, you mean to optimize.

00:11:08.720 --> 00:11:09.520
<v Chris Gammell>I get it.

00:11:09.600 --> 00:11:10.480
<v Chris Gammell>I mean, it's a new problem.

00:11:10.480 --> 00:11:10.720
<v Chris Gammell>Oh, yeah, yeah, yeah.

00:11:10.720 --> 00:11:10.940
<v Chris Gammell>Sure.

00:11:11.460 --> 00:11:13.680
<v Mike Englehart>Obviously, you have to be pretty motivated to want to do that.

00:11:13.740 --> 00:11:14.720
<v Mike Englehart>Nobody does that, okay?

00:11:14.860 --> 00:11:22.040
<v Mike Englehart>But, you know, honestly, the hard part of this is convincing people that it's difficult, right?

00:11:22.100 --> 00:11:25.620
<v Mike Englehart>I mean, there's only four opcodes, add, subtract, multiply, and divide.

00:11:25.700 --> 00:11:26.960
<v Mike Englehart>How hard can it be, right?

00:11:27.060 --> 00:11:31.220
<v Chris Gammell>I mean, it's all of computing, I suppose.

00:11:31.540 --> 00:11:33.940
<v Chris Gammell>But it's just bits, right?

00:11:33.980 --> 00:11:34.740
<v Chris Gammell>It's just code.

00:11:34.740 --> 00:11:36.960
<v Chris Gammell>Yeah, why do you think they call it code, huh?

00:11:37.400 --> 00:11:37.600
<v Chris Gammell>Yeah.

00:11:37.600 --> 00:11:40.880
<v Chris Gammell>So is it hard?

00:11:41.060 --> 00:11:46.020
<v Chris Gammell>Is it difficult to convince people that this is a tough problem to solve?

00:11:46.160 --> 00:11:48.540
<v Chris Gammell>Or is it just that people think, oh, well, it's already been solved?

00:11:48.540 --> 00:11:58.760
<v Mike Englehart>Well, you know, if life were fair, the hard part would be convincing people that it's hard.

00:11:59.160 --> 00:12:00.480
<v Mike Englehart>But life is not fair.

00:12:00.560 --> 00:12:16.140
<v Mike Englehart>If you tell people you're doing self-authoring code and you tell them why and you get into this blind and you tell people you're going to pipeline hot and you tell people why you can't keep the pipeline full with any code that you write at application circuit compile time, you know, they'll have one of two different reactions.

00:12:16.140 --> 00:12:23.140
<v Mike Englehart>They'll either get blurry eyed and, you know, politely sit through that part of the conversation.

00:12:23.140 --> 00:12:30.300
<v Mike Englehart>So they get to a part of a conversation they're more comfortable with or they'll say, you can't possibly be doing that because it's too difficult.

00:12:30.300 --> 00:12:34.800
<v Chris Gammell>You know, you've given some seminars before, haven't you?

00:12:36.400 --> 00:12:37.720
<v Chris Gammell>There's always that guy in the back.

00:12:37.840 --> 00:12:39.160
<v Chris Gammell>He's like, well, wait a second.

00:12:39.420 --> 00:12:40.160
<v Chris Gammell>Wait a second.

00:12:40.720 --> 00:12:41.700
<v Chris Gammell>I've written assembly.

00:12:42.720 --> 00:12:46.600
<v Chris Gammell>So what is pipeline hot?

00:12:46.660 --> 00:12:46.980
<v Chris Gammell>I'm sorry.

00:12:47.180 --> 00:12:50.480
<v Chris Gammell>You might have to explain more to me, but hopefully this also translates to listeners.

00:12:51.800 --> 00:12:54.300
<v Mike Englehart>The Mathco processor has this pipeline.

00:12:54.860 --> 00:12:55.020
<v Mike Englehart>Okay.

00:12:55.620 --> 00:12:57.500
<v Mike Englehart>Normally the pipeline is empty.

00:12:57.500 --> 00:12:58.460
<v Mike Englehart>Okay.

00:12:59.540 --> 00:13:04.060
<v Mike Englehart>There's nothing in it because it takes so long to clock the data from memory.

00:13:04.180 --> 00:13:06.120
<v Mike Englehart>You have to take the address of the address of data.

00:13:06.220 --> 00:13:09.940
<v Mike Englehart>Usually you're indexing off of the address of the address of the data.

00:13:10.040 --> 00:13:13.820
<v Mike Englehart>You index off that and you get the data and you clock that into your floating point unit.

00:13:14.080 --> 00:13:17.800
<v Mike Englehart>Once all that happens, that takes a lot more than three clock cycles.

00:13:18.900 --> 00:13:19.340
<v Chris Gammell>Okay.

00:13:19.420 --> 00:13:19.660
<v Chris Gammell>All right.

00:13:19.720 --> 00:13:20.980
<v Mike Englehart>And the pipeline is empty.

00:13:20.980 --> 00:13:30.320
<v Mike Englehart>But if you do self-authoring code, then you're actually doing code with these final addresses in line in the object code.

00:13:30.580 --> 00:13:30.680
<v Mike Englehart>Okay.

00:13:30.740 --> 00:13:33.820
<v Mike Englehart>Now the data is not because you reuse this code many times.

00:13:33.920 --> 00:13:34.380
<v Mike Englehart>I might agree.

00:13:34.600 --> 00:13:39.780
<v Mike Englehart>When I write this program, I may never have to rewrite it for the whole time that the simulation is running.

00:13:39.860 --> 00:13:42.120
<v Mike Englehart>I'll just keep using the same code over and over again.

00:13:42.120 --> 00:13:44.180
<v Mike Englehart>So the variables themselves change.

00:13:44.320 --> 00:13:50.040
<v Mike Englehart>The data is not in line, but the address of the data is actually in line instead of the address of the address of the data.

00:13:50.840 --> 00:13:59.320
<v Mike Englehart>And in fact, it's actually some, you know, if the high-level equivalent code, the high-level C code would be indexed off of the address of the address.

00:13:59.760 --> 00:14:03.840
<v Mike Englehart>But anyway, if I do that, then the pipeline is full.

00:14:03.840 --> 00:14:08.480
<v Mike Englehart>And as a sloppy manner of speaking, I just say I'm running the pipeline hot instead of empty.

00:14:08.980 --> 00:14:09.000
<v Chris Gammell>Okay.

00:14:09.300 --> 00:14:09.560
<v Chris Gammell>Okay.

00:14:09.660 --> 00:14:10.060
<v Chris Gammell>So, yeah.

00:14:10.140 --> 00:14:11.380
<v Chris Gammell>So you're removing overhead.

00:14:11.520 --> 00:14:12.860
<v Chris Gammell>That's basically what you're saying, right?

00:14:12.900 --> 00:14:24.160
<v Chris Gammell>I mean, all of those things that computers abstract out because you don't want to have to hard-code this necessarily on other programs where you're more interested in other things, right?

00:14:24.200 --> 00:14:26.660
<v Chris Gammell>You're trying to get this efficiency so that you do it up front.

00:14:27.480 --> 00:14:27.740
<v Mike Englehart>Yeah.

00:14:27.840 --> 00:14:29.740
<v Mike Englehart>This is basically removing overhead.

00:14:29.740 --> 00:14:42.520
<v Mike Englehart>And it – when basically every time the floating point unit gets a clock, it actually does something instead of simply getting the data the next step along in the pipeline.

00:14:42.700 --> 00:14:43.240
<v Mike Englehart>I get you.

00:14:43.660 --> 00:14:44.000
<v Mike Englehart>Yeah, that's crazy.

00:14:44.000 --> 00:14:44.760
<v Mike Englehart>So you have a pipeline.

00:14:44.940 --> 00:14:48.460
<v Mike Englehart>So you're loading data while you're executing other instructions.

00:14:48.460 --> 00:15:01.540
<v Mike Englehart>But if you are only doing addition, subtraction, multiplication, then getting the data to the executed – the thing that executes, it takes a lot longer than the actual execution.

00:15:02.420 --> 00:15:04.040
<v Mike Englehart>And the pipeline is empty.

00:15:04.160 --> 00:15:10.280
<v Mike Englehart>So you do clocks that don't – you spend a lot of clock cycles in your floating point unit where no instructions are executed.

00:15:10.560 --> 00:15:14.240
<v Mike Englehart>You simply sequence the data the next step along the pipeline.

00:15:14.240 --> 00:15:14.880
<v Chris Gammell>Huh.

00:15:14.880 --> 00:15:14.940
<v Chris Gammell>Huh.

00:15:15.420 --> 00:15:18.980
<v Chris Gammell>That's – so why don't more people do this then?

00:15:19.060 --> 00:15:21.020
<v Chris Gammell>I mean, maybe they do and I just don't know that.

00:15:21.120 --> 00:15:23.700
<v Chris Gammell>But why don't we hear about other people doing this?

00:15:26.060 --> 00:15:29.300
<v Mike Englehart>I think that it's perceived as something that's pretty difficult.

00:15:30.320 --> 00:15:32.440
<v Mike Englehart>There's very little code that does this.

00:15:32.580 --> 00:15:38.500
<v Mike Englehart>In academic stuff, I've had various mentors in writing L.T. Spice.

00:15:38.500 --> 00:15:51.880
<v Mike Englehart>And one of my mentors mentioned to me maybe 20 years ago that there was a thing in academia that the fastest way of plotting the data would be to write a program to plot it and then just execute the programming, the data, and plotting it.

00:15:52.400 --> 00:15:55.820
<v Mike Englehart>And that was of academic interest and no one actually implemented it.

00:15:56.060 --> 00:15:58.140
<v Mike Englehart>But it always stuck in my ear as something interesting.

00:15:59.080 --> 00:16:04.400
<v Mike Englehart>And I found a good use for that sort of thing.

00:16:04.960 --> 00:16:05.420
<v Chris Gammell>Okay.

00:16:05.420 --> 00:16:07.800
<v Mike Englehart>You know, it is a little tricky.

00:16:07.960 --> 00:16:10.340
<v Mike Englehart>You know, it's ambitious.

00:16:10.960 --> 00:16:11.100
<v Mike Englehart>Okay.

00:16:11.280 --> 00:16:16.140
<v Mike Englehart>I like to joke about – I like to say that the hard part is convincing people that it's difficult.

00:16:16.540 --> 00:16:19.680
<v Mike Englehart>But, you know, there's a lot of software technician work to it.

00:16:19.720 --> 00:16:24.400
<v Mike Englehart>I mean, just getting an address that you execute is going to take you an afternoon.

00:16:24.980 --> 00:16:25.220
<v Chris Gammell>Yeah.

00:16:25.280 --> 00:16:25.580
<v Chris Gammell>Oh, yeah.

00:16:25.600 --> 00:16:28.320
<v Mike Englehart>You can't call Malik and call it as an address.

00:16:28.920 --> 00:16:29.800
<v Mike Englehart>You know, that's a bus error.

00:16:30.220 --> 00:16:31.860
<v Mike Englehart>Your program will crash if you do that.

00:16:31.860 --> 00:16:34.600
<v Chris Gammell>I am so out of my element right now.

00:16:34.660 --> 00:16:35.760
<v Chris Gammell>But I'm trying to – hold on, Mike.

00:16:35.780 --> 00:16:36.180
<v Chris Gammell>I'm telling you.

00:16:36.220 --> 00:16:36.740
<v Chris Gammell>I'm trying to – hang on.

00:16:37.400 --> 00:16:37.700
<v Chris Gammell>All right.

00:16:37.720 --> 00:16:37.900
<v Chris Gammell>All right.

00:16:37.920 --> 00:16:37.920
<v Speaker ?>

00:16:37.920 --> 00:16:38.020
<v Chris Gammell>All right.

00:16:38.020 --> 00:16:38.500
<v Chris Gammell>Here's the deal.

00:16:38.820 --> 00:16:42.740
<v Mike Englehart>So, here's the – you know the address called Malik or you know the function called Malik?

00:16:42.740 --> 00:16:42.940
<v Mike Englehart>Yeah.

00:16:43.160 --> 00:16:43.700
<v Mike Englehart>Right, right, right.

00:16:43.780 --> 00:16:44.140
<v Mike Englehart>Okay, great.

00:16:44.140 --> 00:16:44.640
<v Mike Englehart>Memory allocation.

00:16:44.640 --> 00:16:46.360
<v Mike Englehart>Okay, now you – memory allocation.

00:16:46.520 --> 00:16:49.220
<v Mike Englehart>You allocate some memory and you can write to it and you can read to it.

00:16:49.220 --> 00:16:59.300
<v Mike Englehart>However, if you cast that address as a function and then call it, the operating system will say, no, that's not a function.

00:16:59.720 --> 00:17:00.640
<v Mike Englehart>That's data.

00:17:00.840 --> 00:17:02.420
<v Mike Englehart>You must be making a mistake.

00:17:02.640 --> 00:17:03.180
<v Mike Englehart>Oh.

00:17:03.380 --> 00:17:07.340
<v Mike Englehart>I'm going to stop this program because it's either a mistake or it's a virus.

00:17:07.860 --> 00:17:09.620
<v Mike Englehart>Yeah, some virus is doing that.

00:17:09.740 --> 00:17:09.920
<v Mike Englehart>Right, right.

00:17:09.920 --> 00:17:20.560
<v Mike Englehart>And so, Unix has basically always had this kind of protected memory thing where some data would be classed as code and some of these as data.

00:17:20.980 --> 00:17:26.040
<v Mike Englehart>And it would be okay to execute code, but it's not okay to execute data because it can't be correct.

00:17:26.040 --> 00:17:49.360
<v Mike Englehart>And then since Windows Vista and the PC had – well, actually, on the Intel platform, I forget which Pentium chip, they eventually had hardware support of that that you could set up addresses as data or code so that with minor extensions to the operating system, you could make a – give hardware support to making sure that you never executed data.

00:17:49.360 --> 00:17:57.660
<v Mike Englehart>Because if you execute data, it has to be incorrect and you should just stop and say this program has a bug in it instead of executing whatever was in that data because it would have to be wrong.

00:17:58.160 --> 00:17:58.160
<v Speaker ?>

00:17:58.220 --> 00:18:01.780
<v Mike Englehart>So you can't just – you can't just – normally, you can't just call malloc.

00:18:01.840 --> 00:18:09.240
<v Mike Englehart>Well, you cannot call malloc, you know, poke a bunch of bytes into it and call it even if it's perfectly valid and call it before it executes the first code.

00:18:09.320 --> 00:18:11.440
<v Mike Englehart>It says, no, those addresses are not code.

00:18:11.560 --> 00:18:12.000
<v Mike Englehart>It's data.

00:18:12.500 --> 00:18:13.560
<v Mike Englehart>And so you can't execute it.

00:18:13.560 --> 00:18:29.600
<v Mike Englehart>So you have to go into every operating system and find out what means exists for calling so that you can execute something, you know, a code that you basically already – you know, that you're assembling yourself, that you're assembling and linking yourself on the fly.

00:18:29.880 --> 00:18:31.800
<v Mike Englehart>Well, then it's different in every operating system.

00:18:31.980 --> 00:18:33.820
<v Mike Englehart>Oh, macOS has one way of doing it.

00:18:34.140 --> 00:18:35.840
<v Mike Englehart>Windows has another way of doing it.

00:18:35.840 --> 00:18:36.980
<v Mike Englehart>Okay.

00:18:37.540 --> 00:18:37.740
<v Chris Gammell>Yeah.

00:18:38.100 --> 00:18:48.480
<v Chris Gammell>So that was going to bring me to my next question, which was do you kind of curse the sky every time Windows is like, we have a new release or Mac now that you've released for Mac, is it the same kind of thing?

00:18:48.540 --> 00:18:51.340
<v Chris Gammell>It's like, crud, new software.

00:18:53.040 --> 00:19:00.700
<v Mike Englehart>Oh, you know, I – it's just too popular to dislike Windows, you know.

00:19:00.880 --> 00:19:03.680
<v Mike Englehart>I just deal with whatever it does.

00:19:03.680 --> 00:19:05.640
<v Mike Englehart>I don't really get personally involved in it.

00:19:05.840 --> 00:19:08.040
<v Chris Gammell>Right, but you get to dislike OS X now too.

00:19:08.100 --> 00:19:09.380
<v Chris Gammell>I just mean like every time there's –

00:19:09.380 --> 00:19:21.500
<v Chris Gammell>How often do you – like does it – but is it like every time there's a software update that kind of – because it's like you're – I mean, it seems to me like you're running kind of close to the metal, right?

00:19:21.540 --> 00:19:24.320
<v Chris Gammell>As close as people do on CPUs, right?

00:19:25.120 --> 00:19:27.280
<v Chris Gammell>And so does that end up affecting you?

00:19:27.280 --> 00:19:27.460
<v Chris Gammell>Sure.

00:19:27.620 --> 00:19:30.820
<v Mike Englehart>I mean, what I do is I look at that CPU.

00:19:31.260 --> 00:19:32.540
<v Mike Englehart>I look at the input data.

00:19:32.660 --> 00:19:34.660
<v Mike Englehart>I look at the output bit pattern I want.

00:19:34.820 --> 00:19:40.920
<v Mike Englehart>I figure out what's the least amount – what instructions can I execute to pump the least amount of charge through that CPU to get that final bit pattern.

00:19:41.140 --> 00:19:42.140
<v Mike Englehart>I mean, that's the problem.

00:19:42.280 --> 00:19:42.740
<v Mike Englehart>I like that.

00:19:42.820 --> 00:19:46.060
<v Chris Gammell>You should market the software as well as being energy efficient.

00:19:46.060 --> 00:19:48.600
<v Chris Gammell>No wasted cycles.

00:19:48.600 --> 00:19:49.040
<v Chris Gammell>It is.

00:19:49.380 --> 00:19:49.580
<v Chris Gammell>Yeah.

00:19:49.880 --> 00:19:50.900
<v Mike Englehart>You know, it's funny.

00:19:51.260 --> 00:19:58.800
<v Mike Englehart>You know, after – I was like in year two or three at Linear, you know, Robert Dobkin pulled me into his office and he asked me about this thing.

00:19:58.860 --> 00:19:59.920
<v Mike Englehart>He heard about all these things.

00:20:00.040 --> 00:20:01.800
<v Mike Englehart>I was, what's the advantage of this?

00:20:01.800 --> 00:20:07.140
<v Mike Englehart>And I said, when you run it, if you hook up an amp meter to the power cord, it will draw less power.

00:20:08.120 --> 00:20:08.160
<v Chris Gammell>Right.

00:20:08.320 --> 00:20:09.560
<v Mike Englehart>And that spoke his language, right?

00:20:11.280 --> 00:20:16.520
<v Mike Englehart>No, he didn't quite know what value that was because he didn't care how much power the computer drew.

00:20:17.640 --> 00:20:18.640
<v Chris Gammell>Does that sell more chips?

00:20:20.760 --> 00:20:22.380
<v Chris Gammell>We have not yet had Bob on the show.

00:20:22.480 --> 00:20:23.940
<v Chris Gammell>That's a long-term goal of ours.

00:20:23.940 --> 00:20:27.620
<v Chris Gammell>So we'll be sure to remind him of that story when he finally capitulates.

00:20:27.620 --> 00:20:28.300
<v Chris Gammell>He won't remember.

00:20:28.620 --> 00:20:28.960
<v Chris Gammell>It's okay.

00:20:29.680 --> 00:20:31.240
<v Mike Englehart>That was like 14 years ago.

00:20:31.800 --> 00:20:32.240
<v Chris Gammell>Wow.

00:20:32.340 --> 00:20:33.100
<v Chris Gammell>So 14 years ago.

00:20:33.160 --> 00:20:36.940
<v Chris Gammell>So what was the landscape like before that then?

00:20:37.020 --> 00:20:44.740
<v Chris Gammell>I mean, so you've been in the software game and the simulator game a long time, but I'm guessing you had a cognizance of what it was like before that.

00:20:44.820 --> 00:20:48.740
<v Chris Gammell>Was it mostly people paying gobs of money for off-the-shelf tools?

00:20:48.960 --> 00:20:50.000
<v Chris Gammell>It was at Linear.

00:20:50.200 --> 00:20:50.420
<v Mike Englehart>Yeah.

00:20:50.580 --> 00:20:54.880
<v Mike Englehart>Before I was here, they did not use their own – they didn't have an in-house spice program.

00:20:55.240 --> 00:20:55.500
<v Chris Gammell>Okay.

00:20:55.640 --> 00:20:58.060
<v Chris Gammell>And so I guess I think about it from the user side as well.

00:20:58.060 --> 00:20:59.460
<v Chris Gammell>And I don't think every analog – huh?

00:20:59.960 --> 00:21:00.880
<v Chris Gammell>I was thinking from the user.

00:21:00.880 --> 00:21:04.280
<v Chris Gammell>So like from the – I'm thinking about number one here, right?

00:21:04.280 --> 00:21:11.800
<v Chris Gammell>So like, you know, LTSpice is a really good service to all of the users of components from LT, right?

00:21:12.240 --> 00:21:16.020
<v Chris Gammell>And so I was thinking on that side of things as well.

00:21:16.020 --> 00:21:18.140
<v Mike Englehart>I'm sorry.

00:21:18.240 --> 00:21:19.400
<v Mike Englehart>I don't understand the question.

00:21:19.400 --> 00:21:30.300
<v Chris Gammell>So kind of what was the – before you showed up at Linear Tech and started working on LTSpice and, you know, it was released into the world as this free product that people used.

00:21:30.600 --> 00:21:33.680
<v Chris Gammell>Kind of what was the world like before that then?

00:21:33.760 --> 00:21:39.800
<v Chris Gammell>I mean, was it mostly people going and paying a bunch of money for a P-Spice or an H-Spice or a TopSpice or something like that?

00:21:40.660 --> 00:21:43.340
<v Chris Gammell>Was there any other similar type of solution out there in the marketplace?

00:21:43.340 --> 00:21:48.320
<v Mike Englehart>I don't know if there was a free Spice.

00:21:49.720 --> 00:21:51.320
<v Mike Englehart>There were some low costs.

00:21:52.640 --> 00:21:57.360
<v Mike Englehart>I used – I tend to use – well, I had my own.

00:21:57.420 --> 00:22:01.200
<v Mike Englehart>I would actually just compile the source code of Berkeley Spice.

00:22:01.200 --> 00:22:11.540
<v Mike Englehart>But, you know, the source code to Berkeley Spice has a lot of problems to it.

00:22:12.620 --> 00:22:13.120
<v Chris Gammell>What kind of stuff?

00:22:14.080 --> 00:22:19.440
<v Mike Englehart>Well, you know, first of all, it doesn't solve very many devices.

00:22:20.100 --> 00:22:22.420
<v Mike Englehart>You know, you actually – okay.

00:22:23.320 --> 00:22:27.520
<v Mike Englehart>You know, part of the Spice program is that it has the IV curves of all these semiconductors in it.

00:22:27.520 --> 00:22:28.240
<v Mike Englehart>Right.

00:22:28.240 --> 00:22:35.280
<v Mike Englehart>The problem is that Berkeley Spice can't actually execute the IV curves of any commercial semiconductor.

00:22:36.240 --> 00:22:40.080
<v Mike Englehart>You know, it doesn't have all the – it doesn't – you know, like even a diode.

00:22:40.600 --> 00:22:46.900
<v Mike Englehart>There's – if you get a diode model from a semiconductor manufacturer, it actually will not run in Berkeley Spice.

00:22:47.300 --> 00:22:48.160
<v Mike Englehart>It just doesn't.

00:22:48.160 --> 00:22:57.540
<v Mike Englehart>You know, it's – maybe it uses a recombination charge model, a recombination current model, and it won't handle that.

00:22:58.220 --> 00:23:02.620
<v Mike Englehart>H Spice has other ways of making the IV curve non-purely exponential.

00:23:03.160 --> 00:23:05.400
<v Mike Englehart>So it has deviations from exponential IV curve.

00:23:06.320 --> 00:23:09.140
<v Mike Englehart>I mean, above and beyond a series impedance of resistance.

00:23:09.620 --> 00:23:12.580
<v Mike Englehart>There's intrinsic, you know, non-linear parts.

00:23:12.680 --> 00:23:13.700
<v Mike Englehart>It's not actually exponential.

00:23:13.700 --> 00:23:19.180
<v Mike Englehart>And Berkeley Spice won't handle anything that's not exponential.

00:23:20.140 --> 00:23:21.400
<v Mike Englehart>So there's that.

00:23:21.600 --> 00:23:23.020
<v Mike Englehart>And that's just a diode.

00:23:23.180 --> 00:23:27.340
<v Mike Englehart>The transistors, you won't get – you won't get – you won't be able to execute transistors at all.

00:23:28.660 --> 00:23:35.540
<v Mike Englehart>The – there's other problems is that, you know, because Spice is doing successive linear approximations to the non-linear system,

00:23:35.540 --> 00:23:40.760
<v Mike Englehart>you need to have the IV curves be continuous in value and slope.

00:23:40.920 --> 00:23:44.100
<v Mike Englehart>That is, they need to have a continuous value and it was first derivative.

00:23:44.520 --> 00:23:52.940
<v Mike Englehart>And if they don't, it's very hard to iterate to the exact point on this curvy line if it's not a smooth curve with a continuous first derivative.

00:23:53.940 --> 00:23:58.300
<v Mike Englehart>And every semiconductor in Berkeley Spice has a bug in it one place or another.

00:23:58.820 --> 00:24:01.280
<v Mike Englehart>The curves are not continuous in value and slope.

00:24:01.900 --> 00:24:04.180
<v Mike Englehart>And a lot of those bugs are actually in commercial Spice programs.

00:24:04.180 --> 00:24:06.640
<v Mike Englehart>Just because it got copied over or what?

00:24:06.680 --> 00:24:07.620
<v Mike Englehart>Because they got copied over.

00:24:07.820 --> 00:24:08.940
<v Mike Englehart>P-Spice has that.

00:24:09.060 --> 00:24:12.380
<v Mike Englehart>P-Spice has discontinuities in the – even the diode IV curve.

00:24:12.940 --> 00:24:13.260
<v Chris Gammell>Really?

00:24:13.420 --> 00:24:14.520
<v Chris Gammell>So what – so what would happen?

00:24:14.620 --> 00:24:18.940
<v Chris Gammell>So I guess – I guess that's kind of interesting to me because, I mean, I always think about Spice at a very high level.

00:24:19.000 --> 00:24:23.640
<v Chris Gammell>And I'm guessing you're – you're like staring at the atoms of the universe where I'm kind of looking at a forest, right?

00:24:23.640 --> 00:24:31.700
<v Chris Gammell>And so what would happen – so I put a diode in a P-Spice or someone using the original model.

00:24:32.460 --> 00:24:38.920
<v Chris Gammell>And it would be like – would it just be that if I hit that very particular operating point, the whole thing would blow up or –?

00:24:38.920 --> 00:24:46.900
<v Mike Englehart>It would be – the discontinuity left in P-Spice from the academic code is pretty small.

00:24:47.000 --> 00:24:51.940
<v Mike Englehart>You would have to say I want an extremely tight relative tolerance.

00:24:52.020 --> 00:24:57.560
<v Mike Englehart>I want to solve this thing, you know – I want to solve the point on the IV curve to like 10 to the minus 10 or something.

00:24:57.640 --> 00:25:02.360
<v Mike Englehart>I'm certain that would cause problems if you try to hit this discontinuity.

00:25:02.800 --> 00:25:05.900
<v Mike Englehart>The discontinuity is something like a few parts per million, I think.

00:25:06.260 --> 00:25:06.700
<v Mike Englehart>Oh, okay.

00:25:06.700 --> 00:25:08.080
<v Mike Englehart>I haven't looked at it in a long time ago.

00:25:08.540 --> 00:25:08.780
<v Mike Englehart>Okay.

00:25:08.800 --> 00:25:09.220
<v Mike Englehart>So, yeah.

00:25:09.320 --> 00:25:11.340
<v Mike Englehart>It's there in every – it's there in every device.

00:25:11.440 --> 00:25:15.860
<v Mike Englehart>But anyway, yeah, every IV curve in Berkeley Spice has discontinuities in it.

00:25:16.060 --> 00:25:17.220
<v Mike Englehart>None of them are correct.

00:25:17.660 --> 00:25:25.740
<v Chris Gammell>So what kind of crossover then – so like if we took LT Spice at a very high level and compared it to Berkeley Spice, how much effective crossover is there?

00:25:25.740 --> 00:25:27.640
<v Chris Gammell>I mean like how similar does it look?

00:25:27.640 --> 00:25:37.880
<v Mike Englehart>What is similar is that they both use a global Jacobian and by that I mean – you know what a derivative is, okay?

00:25:37.980 --> 00:25:41.320
<v Mike Englehart>If you have a multidimensional derivative, that's called the Jacobian matrix.

00:25:42.600 --> 00:25:50.840
<v Mike Englehart>And the intrinsic part of – the thing that makes a Spice program a Spice program to me is if they use a global Jacobian.

00:25:50.900 --> 00:25:53.300
<v Mike Englehart>The whole circuit is solved in one huge matrix.

00:25:53.300 --> 00:25:56.740
<v Mike Englehart>That's the most accurate way of solving a circuit.

00:25:57.560 --> 00:26:01.080
<v Mike Englehart>And both Berkeley Spice and LT Spice use a global Jacobian.

00:26:02.460 --> 00:26:09.600
<v Mike Englehart>And they both use implicit integration of the differential equations.

00:26:11.400 --> 00:26:17.220
<v Mike Englehart>Their syntax is mostly – yeah, I would say their syntax is essentially 100% compatible.

00:26:17.220 --> 00:26:21.520
<v Mike Englehart>But the implementation is different.

00:26:21.920 --> 00:26:24.140
<v Mike Englehart>I use a different parser and such.

00:26:24.260 --> 00:26:26.940
<v Mike Englehart>I think the – you know, that's mostly for performance reasons.

00:26:27.040 --> 00:26:31.260
<v Mike Englehart>I started using the Berkeley's parser, but it was just really slow.

00:26:31.340 --> 00:26:33.120
<v Mike Englehart>It couldn't expand subcircuits very fast.

00:26:33.880 --> 00:26:38.400
<v Mike Englehart>You know, you couldn't design an IC because you'd spend 10 minutes expanding all the subcircuits.

00:26:38.800 --> 00:26:39.060
<v Mike Englehart>Right.

00:26:39.120 --> 00:26:41.740
<v Mike Englehart>Instancing all the thing out to Netlist.

00:26:41.740 --> 00:26:54.060
<v Mike Englehart>Actually, let me give you a little bit more detailed answer because people always – you know, I'm kind of in a rant mode here because so many people think that –

00:26:54.060 --> 00:26:54.580
<v Mike Englehart>Well, that's good for the empire.

00:26:55.100 --> 00:26:55.240
<v Chris Gammell>Yeah.

00:26:55.380 --> 00:26:55.780
<v Chris Gammell>Yeah.

00:26:56.220 --> 00:26:56.420
<v Mike Englehart>Yeah.

00:26:56.500 --> 00:27:04.700
<v Mike Englehart>See, people often think that the only difference between one Spice program and another is the user interface and not so much the Spice program.

00:27:04.700 --> 00:27:11.000
<v Mike Englehart>In Berkeley Spice – in LTE Spice, that's actually not true at all.

00:27:11.700 --> 00:27:16.500
<v Mike Englehart>And it can be quantified from a source line count point of view.

00:27:17.140 --> 00:27:24.160
<v Mike Englehart>If you download LTE – if you download Berkeley Spice, you get about 200,000 lines of code of stuff.

00:27:24.760 --> 00:27:25.160
<v Mike Englehart>Okay?

00:27:25.320 --> 00:27:27.860
<v Mike Englehart>If you just, you know, word count every file you get.

00:27:27.940 --> 00:27:28.140
<v Mike Englehart>Right.

00:27:28.280 --> 00:27:28.620
<v Chris Gammell>Yeah, yeah.

00:27:29.620 --> 00:27:31.700
<v Mike Englehart>Most of it is actually dead code.

00:27:31.700 --> 00:27:37.000
<v Mike Englehart>You know, if you delete a line of code from Berkeley Spice and recompile, you'll have exactly the same object code.

00:27:37.260 --> 00:27:38.360
<v Mike Englehart>Most of it is dead code.

00:27:38.900 --> 00:27:38.960
<v Mike Englehart>Huh.

00:27:39.420 --> 00:27:46.540
<v Mike Englehart>And once you get rid of all the dead code and then use, you know, forget the line wraps.

00:27:46.840 --> 00:27:47.120
<v Mike Englehart>Okay?

00:27:47.180 --> 00:27:48.920
<v Mike Englehart>Don't line wrap it to 80 columns.

00:27:49.120 --> 00:27:53.480
<v Mike Englehart>But, you know, just use natural line lengths for the whole thing.

00:27:53.620 --> 00:27:56.620
<v Mike Englehart>You end up with about 85,000 lines of code of stuff.

00:27:56.940 --> 00:27:57.260
<v Mike Englehart>Okay?

00:27:57.380 --> 00:27:57.520
<v Mike Englehart>Okay.

00:27:58.040 --> 00:27:58.220
<v Mike Englehart>Yep.

00:27:58.220 --> 00:28:03.260
<v Mike Englehart>Now, LTE Spice is not 85,000 lines of code of stuff.

00:28:03.480 --> 00:28:06.060
<v Mike Englehart>It's a little over half a million lines of code.

00:28:06.680 --> 00:28:14.380
<v Mike Englehart>So right there you say, okay, you can't really say that LTE Spice and Berkeley Spice are particularly similar.

00:28:15.060 --> 00:28:15.140
<v Mike Englehart>Right.

00:28:15.140 --> 00:28:18.000
<v Mike Englehart>Because LTE Spice is, you know, six times larger or whatever.

00:28:18.000 --> 00:28:26.920
<v Mike Englehart>But also, every single line of code of those 85,000 lines of code, they've all been re-implemented or corrected for bugs.

00:28:27.560 --> 00:28:31.060
<v Chris Gammell>Oh, so there's a lot of hot fixes and patches and stuff like that.

00:28:31.060 --> 00:28:37.120
<v Mike Englehart>Well, it's like every Berkeley Spice semiconductor has discontinuities in value or slope.

00:28:37.240 --> 00:28:38.520
<v Mike Englehart>So all of those have been removed.

00:28:38.520 --> 00:28:46.880
<v Mike Englehart>Another aspect to making a Spice program is, you know, you need to know the differential behavior.

00:28:47.020 --> 00:28:50.720
<v Mike Englehart>You have to compute this multidimensional derivative thing I call the Jacobian.

00:28:51.440 --> 00:28:52.420
<v Mike Englehart>Berkeley Spice has bugs.

00:28:52.540 --> 00:28:54.640
<v Mike Englehart>They don't get every Jacobian element correct.

00:28:54.640 --> 00:29:00.680
<v Mike Englehart>So you have to figure out systematic ways finding these errors in the Jacobian and, you know, getting those.

00:29:00.760 --> 00:29:02.220
<v Mike Englehart>And then there's other problems, you know.

00:29:02.520 --> 00:29:10.060
<v Mike Englehart>Some of the things in Berkeley Spice are machine-generated derivatives, you know, with like symbolic math programs.

00:29:10.280 --> 00:29:16.440
<v Mike Englehart>And those things won't catch singularities that you have to, like, work around, say, applying L'Hopital's rule to, you know.

00:29:16.520 --> 00:29:20.220
<v Mike Englehart>You may have an expression which is physically correct but numerically singular.

00:29:20.220 --> 00:29:29.120
<v Mike Englehart>And you have to use some other mathematical method to get a non-singular to remove the convergence error that you would get if you were to use that.

00:29:29.280 --> 00:29:31.540
<v Mike Englehart>So there's not very much.

00:29:31.700 --> 00:29:38.720
<v Mike Englehart>So Berkeley Spice and L.T. Spice have very little in common as far as the implementation of the code itself.

00:29:38.980 --> 00:29:40.280
<v Mike Englehart>It's precious little.

00:29:41.040 --> 00:29:41.060
<v Chris Gammell>Okay.

00:29:41.360 --> 00:29:43.380
<v Chris Gammell>So it's mostly name.

00:29:44.560 --> 00:29:45.900
<v Chris Gammell>It's still Spice, right?

00:29:45.900 --> 00:29:46.440
<v Chris Gammell>Yeah, there you are.

00:29:46.860 --> 00:29:47.040
<v Chris Gammell>Yeah.

00:29:47.240 --> 00:29:50.100
<v Mike Englehart>And for me, Spice is anything that uses a global Jacobian.

00:29:50.600 --> 00:29:50.860
<v Chris Gammell>Okay.

00:29:51.080 --> 00:29:56.200
<v Chris Gammell>That's a really unique and interesting way of classifying it, actually.

00:29:56.720 --> 00:29:59.680
<v Chris Gammell>I just – I wouldn't have ever come up with that, you know.

00:29:59.800 --> 00:30:02.120
<v Chris Gammell>I would think something that helps me solve circuits.

00:30:02.880 --> 00:30:05.240
<v Chris Gammell>I guess that's kind of abstracted for me, you know.

00:30:05.320 --> 00:30:09.460
<v Chris Gammell>But, you know, and I guess it depends on the level of usage as well, right?

00:30:09.460 --> 00:30:25.560
<v Chris Gammell>I mean, if it's a student, you know, using it to get around their homework where they should be calculating a voltage divider, that's a lot different than someone who's doing, you know, deep simulation of physical parameters and, you know, actually trying to model physical circuits, right?

00:30:25.980 --> 00:30:27.040
<v Chris Gammell>I appreciate that.

00:30:27.040 --> 00:30:29.180
<v Chris Gammell>So what about that?

00:30:29.220 --> 00:30:33.820
<v Chris Gammell>I mean, what about that span of usage, right?

00:30:33.820 --> 00:30:42.780
<v Chris Gammell>So the – I'm guessing the people, you know, the chip designers at LT are using this in some capacity in, you know, I don't know if it's the applications group or the design groups.

00:30:42.780 --> 00:30:45.240
<v Mike Englehart>LT Spice is used in-house for IC design.

00:30:45.780 --> 00:30:49.300
<v Mike Englehart>It's used as a – I mean, I wrote it to be the world's fastest Spice.

00:30:49.460 --> 00:30:51.100
<v Mike Englehart>I mean, you know, that's why I wrote it.

00:30:51.100 --> 00:30:55.880
<v Mike Englehart>I wrote it because if you had this thing, you could design better analog circuits than if you didn't have this thing.

00:30:56.360 --> 00:30:59.060
<v Mike Englehart>So it's used in-house for IC design.

00:30:59.160 --> 00:31:01.380
<v Mike Englehart>And it's exactly the same executable that you use.

00:31:01.760 --> 00:31:03.420
<v Mike Englehart>You know, and it's not crippled in any way.

00:31:03.500 --> 00:31:06.560
<v Mike Englehart>It doesn't look for some – it doesn't look at your IP address or whatever.

00:31:06.700 --> 00:31:12.700
<v Mike Englehart>You know, it's not crippled by, you know, node count or, you know, it doesn't – it's not crippled.

00:31:12.780 --> 00:31:14.080
<v Mike Englehart>It doesn't apply circuit content either.

00:31:14.180 --> 00:31:15.860
<v Mike Englehart>You don't have to have a linear tech part in it.

00:31:16.360 --> 00:31:19.820
<v Mike Englehart>And, you know, and you're okay to use, you know, third-party models in it.

00:31:19.860 --> 00:31:31.400
<v Mike Englehart>You know, we're okay if not every – if you as a non-linear tech employee or customer or whatever use LT Spice for something other than trying to sell an LT Spice part to yourself.

00:31:31.560 --> 00:31:34.220
<v Mike Englehart>You know, that's – we're totally down with that.

00:31:34.340 --> 00:31:40.160
<v Mike Englehart>You know, we're just going to be the analog company with the world's best Spice and we're going to let people use it.

00:31:40.160 --> 00:31:50.080
<v Chris Gammell>Well, and actually – so that's actually a really interesting point as well with the, you know, the chip designers use it because I think about, again, that scale and that kind of dynamic range of usage cases, right?

00:31:50.340 --> 00:31:57.920
<v Chris Gammell>I mean, me as just a casual user, even, you know, an intermediate user is a lot different than, you know, someone designing the chips as well.

00:31:57.920 --> 00:32:16.980
<v Chris Gammell>But I think in those extreme cases, that time speed up that you're allowing for that much faster, that allows for more iterations on the actual design cycle of the chips themselves, which could take, you know, large amounts of processing cycles that, you know, normally – that outside users might not have or experience that often.

00:32:16.980 --> 00:32:32.020
<v Mike Englehart>It's a real big deal for in-house design because, you know, the typical linear tech part has between 5,000 and 8,000 transistors in it to simulate – if it's a – you know, we have about – slightly more of the majority of our business is switchboard power supply components.

00:32:32.020 --> 00:32:56.980
<v Mike Englehart>So to simulate, you know, the first five milliseconds of a startup transit analysis, you know, it could take 30 hours on something like Pspice, but I can compute it in six hours and the guy can get the result, process it while he's still aware of why he thought that simulation would be useful to himself and make – you know, and iterate something in it and come back in the morning and look at something new.

00:32:56.980 --> 00:33:13.700
<v Chris Gammell>Yeah, yeah. And so I'm not sure how much you're allowed to say with this, but is it like – is it using like a server model where it's thrown to a central – centralized processing at linear tech or is it just everybody on their PCs and, you know, doing it there?

00:33:13.720 --> 00:33:26.240
<v Mike Englehart>Everyone uses it on their own local PCs. The server model, I just don't understand for numerical methods. I mean, a server isn't any faster than your home computer, so why would you try to put everybody's computation on the same server?

00:33:26.240 --> 00:33:32.260
<v Chris Gammell>Oh, so you wouldn't want to use queuing because you'd want to be able to basically distribute the workload over –

00:33:32.260 --> 00:33:42.280
<v Mike Englehart>We just give – you know, well, about once every year or two, I go get the Extreme Edition i7 and I get the, you know, the best Asus motherboard I can.

00:33:42.640 --> 00:33:56.160
<v Mike Englehart>I get a water-cooled thing. I get some G-Skill RAM. I build this thing. I benchmark it. And then I say, okay, here's your recipe. Give every IC designer this water-cooled Extreme Edition IC thing like that, and that's what they use.

00:33:56.160 --> 00:33:56.760
<v Chris Gammell>Oh, that's awesome.

00:33:57.080 --> 00:34:04.480
<v Mike Englehart>And they do it locally. So, yeah. I haven't done that in a few years, though. I'm interested in – I did it about – the last time I revved it was about two years ago.

00:34:05.460 --> 00:34:11.300
<v Mike Englehart>And with the X79, I'm kind of wondering if they're going to do something – get something new about the X79 chipset.

00:34:11.720 --> 00:34:16.500
<v Chris Gammell>Yeah, I guess you're probably staring at the data sheet, huh, for the, like, the Intel processors and everything as well.

00:34:16.500 --> 00:34:22.800
<v Chris Gammell>You're probably – because you're doing all that lower-level stuff that you really want to see the specs on that thing.

00:34:23.880 --> 00:34:27.260
<v Mike Englehart>You know, I look at the assembly manuals for them.

00:34:28.220 --> 00:34:41.480
<v Mike Englehart>But ultimately, you just have to benchmark it because, you know, you can – an unhausted hypothesis in numerical methods is really worthless.

00:34:41.480 --> 00:34:46.080
<v Mike Englehart>You know, it's just – I have to build the hardware and measure how fast it runs.

00:34:47.080 --> 00:34:53.860
<v Mike Englehart>And that has to be – that's what guides what algorithms I try.

00:34:53.960 --> 00:34:56.120
<v Mike Englehart>I try different algorithms. I have to try it on a hardware.

00:34:56.360 --> 00:35:00.700
<v Mike Englehart>I mean, I can have ideas about, you know, which would run faster or slower.

00:35:01.020 --> 00:35:02.800
<v Mike Englehart>But these things are so complicated.

00:35:02.800 --> 00:35:08.840
<v Mike Englehart>You know, there's been a number of times I've been strongly surprised with what Intel made and the performance of their machines.

00:35:09.400 --> 00:35:12.880
<v Chris Gammell>So this is, like, a beautiful piece of irony.

00:35:13.080 --> 00:35:18.960
<v Chris Gammell>Like, the guy that makes a great simulation engine says, don't just simulate it, folks.

00:35:19.140 --> 00:35:21.220
<v Chris Gammell>Make sure you try it in the real world as well.

00:35:21.740 --> 00:35:23.520
<v Chris Gammell>That's a beautiful statement.

00:35:23.520 --> 00:35:30.560
<v Mike Englehart>I'll tell you – no, but they're actually related to a different – that's true, too.

00:35:30.780 --> 00:35:33.060
<v Mike Englehart>But there's a – what I'm actually referring to is a different issue.

00:35:33.200 --> 00:35:35.700
<v Mike Englehart>One time I was really surprised with Intel hardware.

00:35:36.360 --> 00:35:42.340
<v Mike Englehart>When I was making LTSpice multi-threaded, which is also in the year 2008.

00:35:42.340 --> 00:35:42.620
<v Mike Englehart>Oh, yeah.

00:35:42.620 --> 00:35:50.300
<v Mike Englehart>In the middle of that project, they had – you know, there were quad-core processors out there.

00:35:51.140 --> 00:35:55.060
<v Mike Englehart>And that was when the i7 was announced.

00:35:55.620 --> 00:35:57.900
<v Mike Englehart>I was just making LTSpice.

00:35:58.020 --> 00:36:02.040
<v Mike Englehart>I'd made it multi-released it for a couple of months, and then the i7 was out there.

00:36:02.680 --> 00:36:05.680
<v Mike Englehart>It was four threads, and it was hyper-threaded.

00:36:05.880 --> 00:36:07.340
<v Mike Englehart>And I says, oh, crap.

00:36:07.360 --> 00:36:08.260
<v Mike Englehart>It's hyper-threaded.

00:36:08.260 --> 00:36:14.960
<v Mike Englehart>I'm going to have to write an algorithm, find out how many floating-point processors are physically there,

00:36:15.040 --> 00:36:17.340
<v Mike Englehart>and then limit the threads to the number of floating-point processors.

00:36:17.500 --> 00:36:18.760
<v Mike Englehart>The thing is going to run slower.

00:36:18.900 --> 00:36:19.640
<v Mike Englehart>Oh, right, right.

00:36:19.700 --> 00:36:22.380
<v Mike Englehart>Because you're trying to divvy up tasks over the virtual processors.

00:36:22.560 --> 00:36:23.980
<v Mike Englehart>Yeah, because I thought they'd hash it.

00:36:24.000 --> 00:36:27.480
<v Mike Englehart>Because I remember when multi-threaded came in and out, it didn't work very fast.

00:36:27.620 --> 00:36:29.620
<v Mike Englehart>It wasn't exactly exciting.

00:36:30.120 --> 00:36:32.900
<v Mike Englehart>So I built up an i7.

00:36:33.440 --> 00:36:34.100
<v Mike Englehart>I tried it all.

00:36:34.100 --> 00:36:45.560
<v Mike Englehart>I wrote this algorithm, and I was dumbfounded by the fact that the hyper-threaded quad-core was indistinguishable from having eight cores.

00:36:46.020 --> 00:36:48.140
<v Mike Englehart>You could not tell the difference with software.

00:36:48.300 --> 00:36:48.600
<v Mike Englehart>Interesting.

00:36:48.920 --> 00:36:50.360
<v Mike Englehart>And I had to think a long time ago.

00:36:50.460 --> 00:36:51.880
<v Mike Englehart>Oh, yeah.

00:36:52.820 --> 00:36:55.600
<v Mike Englehart>Hyper-threading means having two decoders.

00:36:56.160 --> 00:37:02.260
<v Mike Englehart>And for the instruction set I'm using, it actually takes longer to decode the instruction than execute it.

00:37:02.260 --> 00:37:05.340
<v Mike Englehart>It only has to take a picosecond longer.

00:37:05.440 --> 00:37:13.420
<v Mike Englehart>But if the thing, if it takes longer to decode than execute, if you have decoders, you can't distinguish that from having two cores.

00:37:13.880 --> 00:37:14.000
<v Chris Gammell>Huh.

00:37:14.320 --> 00:37:14.980
<v Chris Gammell>That's interesting.

00:37:15.420 --> 00:37:23.140
<v Mike Englehart>You know, because think about, two are decoding, and it says, okay, I need the core, and they say they both need the core at the same time.

00:37:23.320 --> 00:37:24.000
<v Mike Englehart>Well, you wait.

00:37:24.340 --> 00:37:30.540
<v Mike Englehart>One decoder gets the core, and then 300 picoseconds later, the other one gets the core and executes its instructions.

00:37:30.540 --> 00:37:34.920
<v Mike Englehart>And both of those are running at full till, and the cores are running at full till.

00:37:35.100 --> 00:37:42.720
<v Mike Englehart>As long as it takes longer to decode than execute, you can't tell the performance difference from having two physical cores.

00:37:42.980 --> 00:37:43.080
<v Mike Englehart>Huh.

00:37:43.220 --> 00:37:48.640
<v Mike Englehart>I mean, it's okay, yes, the two threads, one thread was delayed by 300 picoseconds.

00:37:48.640 --> 00:37:52.320
<v Mike Englehart>But you're never going to be able to measure that, not from outside of the drive.

00:37:52.940 --> 00:37:53.340
<v Mike Englehart>Right.

00:37:53.340 --> 00:37:54.920
<v Mike Englehart>So that was a big surprise.

00:37:55.040 --> 00:38:00.540
<v Mike Englehart>I mean, I assumed I was going to have to write an algorithm for detecting how many cores were there and limit my threads to the number of cores.

00:38:00.640 --> 00:38:01.220
<v Mike Englehart>It wasn't true.

00:38:01.540 --> 00:38:11.000
<v Chris Gammell>So the multi-threading, the decision behind that was just, again, another optimization to try and up the speed for your chip designers effectively?

00:38:11.000 --> 00:38:11.300
<v Chris Gammell>Yeah.

00:38:11.440 --> 00:38:11.880
<v Mike Englehart>Yeah.

00:38:12.040 --> 00:38:15.720
<v Mike Englehart>It's mostly, it's more of use for chip designer than for board-level work.

00:38:15.760 --> 00:38:17.380
<v Mike Englehart>I mean, it has some use in board-level work.

00:38:17.460 --> 00:38:17.580
<v Chris Gammell>Yeah.

00:38:17.780 --> 00:38:37.400
<v Mike Englehart>But for chip design, you know, if it's some by CMOS design with, you know, 4,000 B-SIM4 devices, and, you know, then the simulation speeds improves somewhat linearly with the number of cores you have, at least up to the 12 cores that I've tried it in.

00:38:37.400 --> 00:38:37.600
<v Mike Englehart>Huh.

00:38:38.100 --> 00:38:41.040
<v Chris Gammell>So could you tell us a little bit more about that chip design side of things?

00:38:41.540 --> 00:38:43.260
<v Chris Gammell>So I have a model open.

00:38:43.320 --> 00:38:49.180
<v Chris Gammell>I have the, if people want to follow along at home, I have LTSpice 4 open right now, and it is up to date.

00:38:51.340 --> 00:38:56.000
<v Chris Gammell>And I am the LM741 model open, right?

00:38:56.040 --> 00:38:57.900
<v Chris Gammell>That's one of the example models.

00:38:58.140 --> 00:39:00.300
<v Chris Gammell>I have that open, and I'm looking at the model.

00:39:00.460 --> 00:39:01.220
<v Chris Gammell>Which one did you say?

00:39:01.300 --> 00:39:02.380
<v Chris Gammell>The LM741.

00:39:03.480 --> 00:39:03.640
<v Mike Englehart>LM741?

00:39:04.160 --> 00:39:05.100
<v Chris Gammell>Ah, yes.

00:39:05.220 --> 00:39:06.740
<v Chris Gammell>It's the examples educational.

00:39:06.740 --> 00:39:07.300
<v Chris Gammell>Yep, exactly.

00:39:07.400 --> 00:39:07.780
<v Chris Gammell>Okay, sure.

00:39:07.820 --> 00:39:08.280
<v Chris Gammell>Oh, yeah, sorry.

00:39:08.380 --> 00:39:08.740
<v Chris Gammell>It's in the middle.

00:39:09.800 --> 00:39:09.980
<v Chris Gammell>Yeah.

00:39:10.940 --> 00:39:16.740
<v Chris Gammell>So this is how, I mean, this is basically a pretty good approximation of how chip designers would actually be doing it, right?

00:39:16.760 --> 00:39:21.100
<v Chris Gammell>And they have discrete transistors with model parameters and all that other stuff.

00:39:21.100 --> 00:39:34.780
<v Chris Gammell>And I've always been really interested in the construction of the models themselves and all of the parameters that are actually inside of that, of the model parameters, basically, for each transistor.

00:39:34.780 --> 00:39:39.340
<v Chris Gammell>And I know that these match against physical characteristics.

00:39:39.340 --> 00:39:51.820
<v Chris Gammell>But I was wondering if you can give us, like, a higher level overview of if someone wanted to try and read this, human readable, try and read this to say, oh, well, this transistor will do this.

00:39:51.820 --> 00:39:55.040
<v Chris Gammell>And, like, oh, this, you know, the BF value goes up a little bit.

00:39:55.120 --> 00:39:58.580
<v Chris Gammell>What would be the output, effectively, for the actual model?

00:39:58.580 --> 00:39:59.300
<v Chris Gammell>Okay.

00:39:59.300 --> 00:40:04.020
<v Mike Englehart>In that 741 example, you'll find the model statements written at the bottom of the schematic.

00:40:04.520 --> 00:40:11.240
<v Mike Englehart>It says the model for the NP, beta of 125, and it has some capacitances and has some base resistance.

00:40:11.240 --> 00:40:17.200
<v Mike Englehart>And then the lateral PNP has a lower beta and different capacitances and a different RB.

00:40:19.000 --> 00:40:26.520
<v Mike Englehart>That is actually not a particularly good model for those things.

00:40:26.680 --> 00:40:36.600
<v Mike Englehart>That's just something I made to the oldest guy in the building who designed op amps and said, what would be about the beta capacitances and the RB?

00:40:36.900 --> 00:40:39.100
<v Mike Englehart>So I would make something that works for a 741.

00:40:39.100 --> 00:40:43.040
<v Mike Englehart>But those models are not good enough for IC design.

00:40:43.280 --> 00:40:43.400
<v Mike Englehart>Oh, okay.

00:40:43.540 --> 00:40:51.200
<v Mike Englehart>You know, if you were to, you know, hork up this design, you could, you know, optimize the design, but then you'd find silicon didn't work better because your model wasn't that accurate.

00:40:51.520 --> 00:40:58.920
<v Mike Englehart>The process of making a model is for these bipolar transistors.

00:40:59.460 --> 00:41:02.380
<v Mike Englehart>It's a field in and of itself.

00:41:03.880 --> 00:41:08.840
<v Mike Englehart>And we have actually a different group than my group that does that.

00:41:09.100 --> 00:41:15.340
<v Mike Englehart>They make test structures and they spend time in the lab and they microprobe these things.

00:41:15.440 --> 00:41:19.420
<v Mike Englehart>They look at IV curves and, you know, ring oscillators.

00:41:19.700 --> 00:41:24.600
<v Mike Englehart>And, you know, they extract the DC and AC characteristics of these things, small signal, large signal.

00:41:24.860 --> 00:41:26.220
<v Mike Englehart>And they offer these models.

00:41:26.220 --> 00:41:28.900
<v Mike Englehart>And that's what IC designers use.

00:41:28.900 --> 00:41:29.340
<v Chris Gammell>Okay.

00:41:29.340 --> 00:41:37.140
<v Mike Englehart>So if you wanted to know about, well, semiconductor modeling, there's a book you need.

00:41:37.520 --> 00:41:40.540
<v Mike Englehart>And it's called Semiconductor Device Modeling with Spice.

00:41:40.900 --> 00:41:46.080
<v Mike Englehart>It's written by Quincipe, Mario, and Palmo Anategetti, two Italians.

00:41:46.780 --> 00:41:49.860
<v Mike Englehart>Though the English is of native English quality.

00:41:49.860 --> 00:41:50.540
<v Mike Englehart>Okay.

00:41:50.540 --> 00:41:52.760
<v Mike Englehart>You need the second edition of that book.

00:41:54.000 --> 00:41:55.300
<v Mike Englehart>And you need to read it.

00:41:55.480 --> 00:41:56.860
<v Mike Englehart>You need to read it cover to cover.

00:41:58.040 --> 00:42:01.700
<v Mike Englehart>And that would be what you would basically need.

00:42:01.840 --> 00:42:02.020
<v Mike Englehart>Okay.

00:42:02.060 --> 00:42:08.200
<v Mike Englehart>Once you read this book cover to cover, you would have, you would be able to make diode and bipolar models.

00:42:08.500 --> 00:42:10.460
<v Mike Englehart>You might get some luck with JFETs.

00:42:10.600 --> 00:42:10.880
<v Chris Gammell>Okay.

00:42:11.180 --> 00:42:11.420
<v Mike Englehart>Right.

00:42:11.800 --> 00:42:12.180
<v Mike Englehart>Okay.

00:42:12.360 --> 00:42:16.200
<v Mike Englehart>Now, to make MOSFETs, MOSFETs, they keep changing things.

00:42:16.240 --> 00:42:19.260
<v Mike Englehart>They keep changing the equations used to model them.

00:42:19.640 --> 00:42:21.900
<v Mike Englehart>So there's other references you'd need beyond that.

00:42:21.960 --> 00:42:23.920
<v Mike Englehart>But that's your prerequisite there.

00:42:24.060 --> 00:42:27.920
<v Mike Englehart>You'd have to do that, read that book, and decide what else you wanted to study.

00:42:28.000 --> 00:42:30.920
<v Mike Englehart>And at that point, you need to decide whether or not you really wanted to do it for a living.

00:42:31.260 --> 00:42:32.140
<v Mike Englehart>I mean, it's the fine living.

00:42:32.140 --> 00:42:37.200
<v Mike Englehart>They got, you know, famously smart people making these models if that's what you want to do for a living.

00:42:37.440 --> 00:42:37.840
<v Chris Gammell>Right, right.

00:42:37.840 --> 00:42:41.980
<v Chris Gammell>Yeah, I guess I was, I didn't take a close enough look at the actual model that was down there.

00:42:42.280 --> 00:42:47.640
<v Chris Gammell>I was thinking more on the, because I guess the thing that I've always run into has been trying.

00:42:47.900 --> 00:42:52.680
<v Chris Gammell>So I'll be going down a list, right, and I'll have a transistor that I'm using on a board.

00:42:52.960 --> 00:42:56.320
<v Chris Gammell>More likely, I was finding transistors that I hadn't designed in.

00:42:56.740 --> 00:43:01.140
<v Chris Gammell>And it'd be like, okay, well, I want to try and model what's going on here and see what happens.

00:43:01.240 --> 00:43:04.760
<v Chris Gammell>Basically, trying to match behavior against a known new model, right?

00:43:04.760 --> 00:43:06.720
<v Chris Gammell>So if I'm replacing a part or something like that.

00:43:06.720 --> 00:43:11.820
<v Chris Gammell>And what I would do is I would go in and I'd say, you know, I'd right click on a part and I'd say pick a new transistor.

00:43:12.020 --> 00:43:14.340
<v Chris Gammell>And then I'd see, you scroll to the right and I'd see the SPICE model there.

00:43:14.740 --> 00:43:17.880
<v Chris Gammell>And then I'd see all of these, oh my goodness, all of these different parameters.

00:43:18.340 --> 00:43:21.520
<v Chris Gammell>And then I'd think, well, I can probably try and do this from the data sheet, right?

00:43:21.520 --> 00:43:23.240
<v Chris Gammell>Trying to create something from a data sheet.

00:43:23.820 --> 00:43:27.180
<v Chris Gammell>And it seems like that that is incorrect assumption.

00:43:27.180 --> 00:43:31.300
<v Chris Gammell>That a model can do that.

00:43:31.320 --> 00:43:34.840
<v Mike Englehart>It's real hard to make a model from the data sheet itself.

00:43:36.060 --> 00:43:41.580
<v Mike Englehart>And you have to assume a lot of characteristics of that device.

00:43:41.580 --> 00:43:44.200
<v Mike Englehart>You have to bring a lot of characteristics to the data sheet.

00:43:44.560 --> 00:43:46.180
<v Mike Englehart>So, you know, then you're basically...

00:43:47.180 --> 00:43:52.260
<v Mike Englehart>Basically, making a model from a data sheet is essentially impossible.

00:43:52.260 --> 00:43:57.080
<v Mike Englehart>And it depends on the nature of the transistor.

00:43:57.840 --> 00:44:06.880
<v Mike Englehart>For the bipolars, you know, there's no way because you have this whole quasi-saturation region that will never be documented very well in the data sheet.

00:44:07.380 --> 00:44:08.820
<v Mike Englehart>It's basically impossible.

00:44:09.560 --> 00:44:18.260
<v Mike Englehart>For the MOSFETs, you can make a model for a MOSFET that's good enough for...

00:44:18.260 --> 00:44:21.960
<v Mike Englehart>Switchwood power supplies.

00:44:22.080 --> 00:44:24.100
<v Mike Englehart>In fact, it's probably good enough for everything.

00:44:24.280 --> 00:44:26.500
<v Mike Englehart>But particularly Switchwood power supplies, it's certainly good enough.

00:44:27.200 --> 00:44:31.840
<v Mike Englehart>But the process is fairly laborious.

00:44:32.540 --> 00:44:38.400
<v Mike Englehart>What I do is I make little test fixtures that will curve trace...

00:44:38.400 --> 00:44:40.140
<v Mike Englehart>Or duplify the curves in the data sheet.

00:44:40.280 --> 00:44:41.860
<v Mike Englehart>You know, I'll do one to output characteristics.

00:44:42.080 --> 00:44:44.680
<v Mike Englehart>One will be RDS on for different gate voltages.

00:44:45.160 --> 00:44:46.280
<v Mike Englehart>Then there'll be gate charge.

00:44:46.280 --> 00:44:51.720
<v Mike Englehart>And then I'll keep twiddling the model parameters to duplicate these curves in the data sheet.

00:44:52.400 --> 00:44:54.360
<v Mike Englehart>However, the problem you'll often run...

00:44:54.360 --> 00:44:56.060
<v Mike Englehart>And it's a laborious thing that'll take, you know...

00:44:56.060 --> 00:44:56.940
<v Mike Englehart>If you're...

00:44:56.940 --> 00:44:58.280
<v Mike Englehart>If you're...

00:44:58.880 --> 00:45:01.580
<v Mike Englehart>Like the best in the world, you might be able to get it done in 45 minutes.

00:45:01.700 --> 00:45:01.880
<v Mike Englehart>Yeah.

00:45:01.980 --> 00:45:02.200
<v Mike Englehart>Okay.

00:45:02.280 --> 00:45:03.040
<v Mike Englehart>You gotta want it, right?

00:45:03.380 --> 00:45:03.620
<v Mike Englehart>Okay.

00:45:04.400 --> 00:45:05.340
<v Mike Englehart>You gotta want it.

00:45:05.880 --> 00:45:06.360
<v Mike Englehart>So...

00:45:06.360 --> 00:45:08.840
<v Mike Englehart>And then there's another problem that you run into.

00:45:09.020 --> 00:45:12.940
<v Mike Englehart>And that is that there often is no transistor that behaves like the data sheet.

00:45:13.360 --> 00:45:14.700
<v Mike Englehart>There's no transistor that exists.

00:45:14.700 --> 00:45:17.920
<v Mike Englehart>And that's because they use different transistors for extracting different curves.

00:45:18.020 --> 00:45:23.440
<v Mike Englehart>Like if you look at the gate charge characteristics, you know, it shows the amount of charge you have to put in the gate to charge up the gate while it's switching.

00:45:23.780 --> 00:45:29.140
<v Mike Englehart>Well, they might have used a particular MOSFET with a different threshold voltage than they used for getting output characteristics.

00:45:29.280 --> 00:45:30.800
<v Mike Englehart>There's no way you can match both curves.

00:45:30.980 --> 00:45:31.080
<v Chris Gammell>Right.

00:45:31.400 --> 00:45:31.620
<v Mike Englehart>Right.

00:45:31.620 --> 00:45:34.000
<v Mike Englehart>You know, so you're basically hedging...

00:45:34.000 --> 00:45:38.100
<v Mike Englehart>You know, you're basically hedging ignorance at that point, you know, trying to make a model.

00:45:38.180 --> 00:45:44.900
<v Mike Englehart>You have to guess what you think they did and didn't screw up or what you think was the most likely behavior characteristics of the MOSFET.

00:45:44.900 --> 00:45:44.940
<v Mike Englehart>Yeah.

00:45:45.940 --> 00:45:55.380
<v Mike Englehart>But that's not a concern because there's so many MOSFET models in LTSpice, you might find an appropriate MOSFET to use.

00:45:55.800 --> 00:45:57.900
<v Mike Englehart>And if there's not, you can sort...

00:45:57.900 --> 00:46:03.020
<v Mike Englehart>Sort, when you open up a MOSFET and LTSpice and right-click on it, you can sort by different headings.

00:46:03.100 --> 00:46:03.880
<v Mike Englehart>You can sort them.

00:46:03.960 --> 00:46:17.060
<v Mike Englehart>We recommend sorting them first by the gate charge and then by the RDS on and then find a MOSFET with the same RDS on and the same gate charge and simulate with that guy and then use whichever source you're interested in for a supplier.

00:46:17.260 --> 00:46:17.480
<v Mike Englehart>Right.

00:46:17.580 --> 00:46:19.460
<v Chris Gammell>And you'll get pretty close with that, you're saying?

00:46:19.760 --> 00:46:22.640
<v Mike Englehart>You're probably going to be good enough for that.

00:46:22.640 --> 00:46:30.840
<v Mike Englehart>Now, and there's some MOSFET vendors that if the model isn't there, you can contact the MOSFET vendor and have that and they will make you an LTSpice model.

00:46:30.960 --> 00:46:40.520
<v Mike Englehart>Some vendors have taken over the responsibility of their modeling, their MOSFETs, notably International Rectifier, Infineon, and just NXP.

00:46:40.680 --> 00:46:43.780
<v Mike Englehart>NXP just sent me some models about a week ago that I included in the distribution.

00:46:44.580 --> 00:46:45.300
<v Mike Englehart>Well, that's nice.

00:46:45.900 --> 00:46:46.040
<v Mike Englehart>Yeah.

00:46:46.300 --> 00:46:47.620
<v Mike Englehart>Yeah, that's nice of them, huh?

00:46:47.840 --> 00:46:50.140
<v Chris Gammell>So is that something that they would have to do that same...

00:46:50.140 --> 00:46:52.020
<v Chris Gammell>So they'd have to buy that book, Semiconductor Device?

00:46:52.020 --> 00:46:54.140
<v Chris Gammell>I mean, they're doing all this stuff anyways, though, right?

00:46:54.200 --> 00:46:56.040
<v Chris Gammell>They're characterizing their parts.

00:46:56.220 --> 00:46:57.160
<v Mike Englehart>Oh, the people that...

00:46:57.160 --> 00:47:00.580
<v Mike Englehart>Anyone that's in Semiconductor Device Modeling has that book and has read it.

00:47:00.620 --> 00:47:00.800
<v Mike Englehart>Yeah.

00:47:00.960 --> 00:47:02.940
<v Mike Englehart>Okay, so NXP has that book.

00:47:03.060 --> 00:47:04.840
<v Mike Englehart>I mean, the people that do it, I'm certain they've read the book.

00:47:04.960 --> 00:47:10.560
<v Chris Gammell>Yeah, but I guess my real question is then why would some vendors not give a model?

00:47:11.240 --> 00:47:13.760
<v Chris Gammell>Is it just a convenience thing, a time thing, money?

00:47:13.760 --> 00:47:30.620
<v Mike Englehart>Well, you know, you have to understand that when you're making a power MOSFET, what you want to do is you want to make a MOSFET that's as wide as possible and as narrow as possible.

00:47:30.620 --> 00:47:36.820
<v Mike Englehart>So for the same gate source voltage, you get a larger change in drain source current.

00:47:37.180 --> 00:47:38.100
<v Mike Englehart>A job, okay?

00:47:38.260 --> 00:47:39.600
<v Mike Englehart>And you don't want to break down.

00:47:39.700 --> 00:47:41.480
<v Mike Englehart>So they might use very smart engineering methods.

00:47:41.560 --> 00:47:45.240
<v Mike Englehart>You know, they might use all sorts of 3D finite element programs to do all of that, okay?

00:47:45.460 --> 00:47:48.300
<v Mike Englehart>You know, they could have infinitely smart people doing that.

00:47:48.560 --> 00:47:49.520
<v Mike Englehart>But that's what they want to do.

00:47:49.620 --> 00:47:52.440
<v Mike Englehart>They want to make it as wide as possible and as narrow as possible.

00:47:52.440 --> 00:47:58.120
<v Mike Englehart>Now, making a SPICE model for that is not part of that process.

00:47:58.300 --> 00:48:01.220
<v Mike Englehart>SPICE is not part of power MOSFET design.

00:48:01.680 --> 00:48:07.480
<v Mike Englehart>There's no reason why somebody who knows how to make the best power MOSFET in the world would know how to make a SPICE model.

00:48:07.960 --> 00:48:08.440
<v Mike Englehart>Interesting.

00:48:08.900 --> 00:48:09.080
<v Mike Englehart>Oh.

00:48:09.220 --> 00:48:10.880
<v Mike Englehart>There's just an unrelated skill.

00:48:11.920 --> 00:48:19.200
<v Mike Englehart>So to, you know, to be mad at somebody who makes the best MOSFET in the world to not have SPICE models, well, you know, it's an unrelated thing.

00:48:19.360 --> 00:48:19.740
<v Chris Gammell>Really?

00:48:19.740 --> 00:48:19.900
<v Chris Gammell>Yeah.

00:48:19.900 --> 00:48:31.700
<v Chris Gammell>So that narrow and wide thing that the designers are trying to do, is that more of a – is that a trial – not a trial and error, but is that, you know, an optimization process more than anything else?

00:48:31.760 --> 00:48:33.300
<v Chris Gammell>It's not necessarily –

00:48:33.300 --> 00:48:39.740
<v Mike Englehart>Well, basically, I mean, the practical dimensions of a power MOSFET channel is a half micron long and 10 meters wide.

00:48:41.280 --> 00:48:41.680
<v Mike Englehart>Okay.

00:48:42.060 --> 00:48:44.960
<v Mike Englehart>I mean, if you put a MOSFET in your circuit, it's about 10 meters wide.

00:48:45.080 --> 00:48:47.080
<v Mike Englehart>Maybe it's an older one, like 5 meters wide.

00:48:47.080 --> 00:48:51.220
<v Mike Englehart>But it's this very wide channel folded into this little tiny package.

00:48:52.120 --> 00:48:53.040
<v Chris Gammell>Oh, you're serious?

00:48:53.120 --> 00:48:53.360
<v Chris Gammell>Yeah, yeah.

00:48:53.360 --> 00:48:53.600
<v Chris Gammell>Sorry.

00:48:53.980 --> 00:48:55.180
<v Chris Gammell>I'm, like, thinking 5 meters.

00:48:55.260 --> 00:48:58.020
<v Chris Gammell>You're talking about – because, like, trenching and stuff like that, right?

00:48:58.020 --> 00:48:58.500
<v Chris Gammell>Oh, yeah, yeah, yeah, yeah.

00:48:58.500 --> 00:48:58.720
<v Mike Englehart>Yeah.

00:48:58.920 --> 00:49:00.140
<v Mike Englehart>I was very confused for a second.

00:49:00.160 --> 00:49:00.900
<v Mike Englehart>It's a tiny structure.

00:49:01.000 --> 00:49:04.820
<v Mike Englehart>You could put six of them inside of a TO220 package and it would rattle around.

00:49:04.960 --> 00:49:05.200
<v Chris Gammell>Yeah.

00:49:05.400 --> 00:49:05.660
<v Chris Gammell>Okay.

00:49:05.840 --> 00:49:06.180
<v Chris Gammell>You know?

00:49:06.280 --> 00:49:06.900
<v Chris Gammell>Yeah, right, right.

00:49:06.900 --> 00:49:07.100
<v Mike Englehart>You know?

00:49:07.340 --> 00:49:10.700
<v Mike Englehart>And there's all sorts of smarts that goes into making a power MOSFET.

00:49:10.840 --> 00:49:11.100
<v Chris Gammell>Right.

00:49:11.100 --> 00:49:14.260
<v Mike Englehart>You know, in history, there's a time where they knew how to – they forgot.

00:49:14.460 --> 00:49:15.240
<v Mike Englehart>They lost the recipe.

00:49:15.360 --> 00:49:16.360
<v Mike Englehart>They weren't for sale anymore.

00:49:16.800 --> 00:49:18.900
<v Mike Englehart>I mean, you know, there's a lot of smarts that goes into that.

00:49:19.440 --> 00:49:25.620
<v Mike Englehart>But SPICE is not part of any aspect of power MOSFET design.

00:49:26.080 --> 00:49:26.500
<v Chris Gammell>Interesting.

00:49:26.880 --> 00:49:35.880
<v Chris Gammell>That is really – especially because that's such a big part of LT's business with modeling the switcher side of things, which utilize these power MOSFETs, right?

00:49:36.660 --> 00:49:36.920
<v Mike Englehart>Yeah.

00:49:37.120 --> 00:49:46.260
<v Mike Englehart>I mean, it was – we actually developed our own charge model for power MOSFETs because the gate drain capacitance of power MOSFET depends on whether it's on or off.

00:49:46.800 --> 00:49:55.000
<v Mike Englehart>Normally, see, in a normal lateral MOSFET, like you can print on an IC, the gate and drain, the polysilicon of the gate and the drain metalization are side by side.

00:49:55.000 --> 00:50:01.320
<v Mike Englehart>And whether the transistor is on or off, does it really change the capacitance between the two because the channel is underneath the gate?

00:50:01.440 --> 00:50:03.140
<v Mike Englehart>I mean, it changes the fringe field a little bit.

00:50:03.140 --> 00:50:08.120
<v Mike Englehart>But in a power transistor, the channel is in between the gate and the drain.

00:50:08.220 --> 00:50:11.200
<v Mike Englehart>So whether it's conducting or not, it moves the distance between the gate and drain.

00:50:11.960 --> 00:50:19.220
<v Mike Englehart>And you have a different capacitance between the gate and drain depending on whether it's on or off.

00:50:19.500 --> 00:50:31.280
<v Mike Englehart>And since that's the Miller capacitance and it's the quantity that determines the switching characteristics of the transistor, if you don't have that modeled, you don't have a device that behaves like a power MOSFET at all.

00:50:31.280 --> 00:50:31.700
<v Mike Englehart>Right.

00:50:31.800 --> 00:50:34.480
<v Mike Englehart>So that's why at Linear, we actually have our own MOSFET device.

00:50:35.140 --> 00:50:41.240
<v Mike Englehart>You know, we did that by looking at, you know, we looked at simulation and we looked at the bench.

00:50:41.480 --> 00:50:45.680
<v Mike Englehart>We said, why don't these waveforms on bench look anything like the things we simulate?

00:50:46.040 --> 00:50:52.700
<v Mike Englehart>We found, oh, well, SPICE is about IC design and you can't print a power transistor on an IC.

00:50:52.700 --> 00:50:57.700
<v Mike Englehart>These power transistors don't behave like monolithic transistors because they have a different charge model.

00:50:58.500 --> 00:51:07.600
<v Mike Englehart>So we, you know, found out why they have a different charge model and we implemented, you know, this VD MOS thing and LT SPICE has a charge model that behaves like a power MOSFET.

00:51:07.600 --> 00:51:14.340
<v Chris Gammell>Wow. So I should, I should mention for our listening audience as well, which is very wide, very varied.

00:51:14.460 --> 00:51:17.120
<v Chris Gammell>I mean, a very wide variety of people listening.

00:51:17.620 --> 00:51:28.880
<v Chris Gammell>If, if, if what Mike is saying here does not necessarily make sense to you, there are lots and lots and lots of good books out there for learning about the semiconductor character.

00:51:28.880 --> 00:51:42.140
<v Chris Gammell>I mean, this is basically semiconductors one-on-one, right? But it's, it's, you know, for, I think, people that are doing board level stuff and, and, you know, just hoping that it plugs in and works at some point, you know, that you have to dig in a little bit more.

00:51:42.200 --> 00:51:46.240
<v Chris Gammell>And it's, it's, it can be a little scary, but it's, it's, it's very, very interesting, I think.

00:51:46.460 --> 00:51:48.740
<v Mike Englehart>Yeah. I might, sorry if I got carried away.

00:51:49.080 --> 00:51:49.540
<v Mike Englehart>No, that's okay.

00:51:51.220 --> 00:51:54.840
<v Mike Englehart>I just, just got, you know, in the excitement of all, you know, I just got carried away.

00:51:55.120 --> 00:51:55.680
<v Mike Englehart>That's perfect.

00:51:55.680 --> 00:51:59.960
<v Chris Gammell>And honestly, like, and, and that's what it's about. It's like, it's about, you need to get that exposure beforehand.

00:51:59.960 --> 00:52:04.020
<v Chris Gammell>I mean, I, I never had any of that exposure beforehand. I, I didn't even know what I was getting into.

00:52:04.020 --> 00:52:08.420
<v Chris Gammell>And then, you know, but it's, it's good to learn about that because I think it's, it's very interesting.

00:52:08.420 --> 00:52:16.520
<v Chris Gammell>And, and, and understanding, I think the, from that super low level stuff up to the high level stuff, you know, if you, it seems like, I mean, you understand all of it.

00:52:16.540 --> 00:52:19.360
<v Chris Gammell>That's, that's what you need to do at a certain point.

00:52:19.360 --> 00:52:25.320
<v Chris Gammell>You need to have some knowledge of, of every, every bit of it in order to understand these, these corner, corner effects.

00:52:25.320 --> 00:52:27.820
<v Chris Gammell>And all the, all the weird stuff that can happen in your circuits.

00:52:28.600 --> 00:52:38.360
<v Chris Gammell>I did want to ask about the, you know, you brought up before the, the, the difficulties with simulating switchers and power circuits and stuff like that.

00:52:38.600 --> 00:52:43.880
<v Chris Gammell>Could you kind of expand on that a little bit more in terms of what the difficulty is with that?

00:52:43.880 --> 00:52:59.680
<v Mike Englehart>Well, I don't know that I, I don't, I don't remember seeing it was, well, the, the power transistors are hard because generic spice programs don't have a circuit element that behaves like a power transistor.

00:52:59.680 --> 00:53:00.520
<v Mike Englehart>Oh.

00:53:00.540 --> 00:53:02.460
<v Mike Englehart>But, but, but LTSpice has fixed that.

00:53:02.580 --> 00:53:04.100
<v Mike Englehart>So that's probably the main thing.

00:53:04.100 --> 00:53:16.400
<v Mike Englehart>The cool thing about power supply simulation is you usually don't have useful models for the controller ICs.

00:53:16.400 --> 00:53:20.200
<v Mike Englehart>And that's actually a big part of, of LTSpice.

00:53:20.320 --> 00:53:26.000
<v Mike Englehart>We've have this, this way of modeling switchboard power supply controllers and regulators.

00:53:26.740 --> 00:53:31.380
<v Mike Englehart>That's just a field that I've, I've pioneered.

00:53:31.680 --> 00:53:32.400
<v Chris Gammell>Yeah, definitely.

00:53:32.520 --> 00:53:32.620
<v Chris Gammell>Yeah.

00:53:32.660 --> 00:53:36.700
<v Chris Gammell>And that, and, and that's the kind where it's, you know, usually those are macro models as well, right?

00:53:36.700 --> 00:53:37.920
<v Chris Gammell>You can't necessarily dig down into them.

00:53:37.920 --> 00:53:38.880
<v Chris Gammell>They are macro models, yes.

00:53:38.880 --> 00:53:39.000
<v Chris Gammell>Yeah.

00:53:39.520 --> 00:53:48.940
<v Chris Gammell>So those are like encoded, like basically, is that the, the, the compiled function you were talking about before where it's already optimized and everything?

00:53:49.560 --> 00:53:55.120
<v Mike Englehart>Well, the, it's a different type of compiling.

00:53:56.460 --> 00:53:59.540
<v Mike Englehart>When I was talking about compiling before, I was talking about self-authoring.

00:53:59.540 --> 00:53:59.980
<v Mike Englehart>Okay.

00:54:00.080 --> 00:54:07.740
<v Mike Englehart>And that's just a, that's just a software technician thing that deals with getting the math to the floating point processor fast.

00:54:08.060 --> 00:54:08.420
<v Mike Englehart>Okay.

00:54:08.880 --> 00:54:14.140
<v Mike Englehart>The, the macro models are written with a combination of techniques.

00:54:14.680 --> 00:54:20.080
<v Mike Englehart>And honestly, we just implement whatever is necessary to model the controller.

00:54:20.680 --> 00:54:21.600
<v Chris Gammell>Oh, okay.

00:54:21.600 --> 00:54:22.200
<v Mike Englehart>That's necessary.

00:54:22.380 --> 00:54:22.620
<v Mike Englehart>Okay.

00:54:22.660 --> 00:54:24.340
<v Mike Englehart>So we just do what's ever necessary.

00:54:24.520 --> 00:54:27.660
<v Mike Englehart>You know, we, you know, we, to keep our job.

00:54:27.660 --> 00:54:33.580
<v Mike Englehart>So we, we just do what is ever necessary to make, to model any controller that linear models.

00:54:33.680 --> 00:54:38.380
<v Mike Englehart>Now for most of it, you know, some of it consists of, um,

00:54:38.380 --> 00:54:43.560
<v Mike Englehart>new circuit elements that have behavior that helps encapsulate the behaviors, which will power supply.

00:54:43.560 --> 00:54:49.900
<v Mike Englehart>Uh, and that's, uh, uh, so those things are reused from, uh, product to product model.

00:54:49.900 --> 00:55:10.320
<v Mike Englehart>Um, we also have, um, um, sort of primitive hardware description languages that, um, uh, we, we kind of write a little program in this kind of ugly language that LTSpice can parse, compile, and, uh, and execute.

00:55:10.320 --> 00:55:13.320
<v Mike Englehart>But by compiling there, I don't mean compiling to object code.

00:55:13.400 --> 00:55:23.720
<v Mike Englehart>I mean, compiling the data structures that can be, um, uh, uh, uh, executed more like a, more like a standard, um, hardware description language like Verilog or VHDL.

00:55:23.820 --> 00:55:25.460
<v Mike Englehart>But it's a very diverse version of that language.

00:55:25.540 --> 00:55:28.940
<v Mike Englehart>It's a language that we don't make publicly available.

00:55:29.320 --> 00:55:32.540
<v Mike Englehart>And we're not doing that out of some mean spiritedness.

00:55:32.540 --> 00:55:38.580
<v Mike Englehart>We're doing it because it's a really ugly language and we just implemented whatever was necessary to model that particular product.

00:55:39.160 --> 00:55:39.440
<v Mike Englehart>Interesting.

00:55:39.800 --> 00:55:45.200
<v Chris Gammell>So, so is that, um, is that still looking at like the, the transistor level or is it more behavioral level where it's like.

00:55:45.280 --> 00:55:46.600
<v Chris Gammell>That's all be, that is all behavioral.

00:55:46.800 --> 00:55:47.060
<v Chris Gammell>Okay.

00:55:47.140 --> 00:55:48.680
<v Chris Gammell>So it's like it should ramp here.

00:55:48.800 --> 00:55:53.380
<v Chris Gammell>So it gets this input and the output should start to ramp and yank on this transistor gate and that kind of idea.

00:55:54.500 --> 00:55:54.900
<v Mike Englehart>Yeah.

00:55:54.900 --> 00:55:58.840
<v Mike Englehart>You know, it's like, it's, it's, it's, some of it is, is simple things like a voltage control.

00:55:58.960 --> 00:56:07.400
<v Mike Englehart>We have, uh, uh, we have this like a voltage controlled barista, which means it's a barista that will break down with a programmable, uh, external voltage.

00:56:07.480 --> 00:56:13.040
<v Mike Englehart>So we use those sort of like a, as emitter followers for, um, for the old fashioned and current mode controllers.

00:56:13.040 --> 00:56:24.760
<v Mike Englehart>You used to have a soft start that would ramp the, um, that would clamp the, uh, uh, uh, compensation node voltage, uh, during soft start that people's that, that, that method really isn't used very much.

00:56:24.760 --> 00:56:29.120
<v Mike Englehart>And the only thing that soft start does is make the power supply more polite to the rest of the system.

00:56:29.120 --> 00:56:38.920
<v Mike Englehart>So it doesn't draw too much current during startup for, um, a current, uh, uh, current, the more modern way of doing soft start is actually just ramp the reference voltage.

00:56:39.000 --> 00:56:52.060
<v Mike Englehart>So the output is a nice linear ramp up to the voltage that you want, uh, because that, um, yeah, because that, that's, that's what a lot of loads like a lot of loads are specified to have their, their supplies ramped in a certain way.

00:56:52.060 --> 00:56:59.960
<v Mike Englehart>Maybe if it's some PGA and they need the voltages scheduled up, well, this thing will just paint those waveforms on your, on your load and go from there.

00:57:00.120 --> 00:57:04.200
<v Chris Gammell>And that's actually how it's, it's physically implemented as well as, as in this modeling language as well.

00:57:04.640 --> 00:57:09.760
<v Mike Englehart>Yeah. We just, no, we, the, the model will act like the part. I mean, that's, you know, we want to keep our job, right?

00:57:09.860 --> 00:57:12.340
<v Mike Englehart>I mean, it's gotta, it's gotta happen.

00:57:12.640 --> 00:57:15.120
<v Mike Englehart>Yeah. Right. Right. Right. And it's, it's great. I mean,

00:57:15.120 --> 00:57:20.800
<v Mike Englehart>we've had some parts that were so complicated. We couldn't do that. We had to do a, uh, uh, mixed mode simulation.

00:57:20.800 --> 00:57:26.420
<v Mike Englehart>We actually wrote a digital simulator to, you know, um, uh, to solve for what the, the part does.

00:57:27.280 --> 00:57:31.440
<v Mike Englehart>There's a couple of parts. Like the 3780 was just such a complicated part.

00:57:31.700 --> 00:57:37.600
<v Mike Englehart>I actually wrote a digital simulator, a dedicated digital simulator that runs in parallel to LTSpice.

00:57:38.720 --> 00:57:39.780
<v Mike Englehart>And that's the way we modeled that.

00:57:39.780 --> 00:57:42.220
<v Chris Gammell>What does, what does the 3780 do? I'm sorry. I don't.

00:57:42.220 --> 00:57:49.200
<v Mike Englehart>It controls four switches and the way it works is it's okay. So it controls four MOSFETs.

00:57:49.240 --> 00:57:55.520
<v Mike Englehart>It will switch from buck mode to boost mode. It's current mode. Um, if you have a buck boost mode

00:57:55.520 --> 00:57:59.640
<v Mike Englehart>controller, it's not too hard to do is voltage mode. Cause you can just dither the, all the

00:57:59.640 --> 00:58:05.260
<v Mike Englehart>waveforms and get a linear relation between, uh, uh, compensation node voltage and output voltage,

00:58:05.260 --> 00:58:09.580
<v Mike Englehart>you know, and, and duty cycle. But if you have, if you want a current mode, buck boost mode regulator,

00:58:09.580 --> 00:58:13.820
<v Mike Englehart>I mean something that switches from buck mode or boost mode. So the output can be above or below

00:58:13.820 --> 00:58:19.680
<v Mike Englehart>the input voltage and stay reading a switch mode regulator throughout that. Then, um, uh, you have

00:58:19.680 --> 00:58:26.180
<v Mike Englehart>to switch topologies dynamically while it's, um, um, while it's, uh, running. And the, what the 30,

00:58:26.180 --> 00:58:31.520
<v Mike Englehart>with, with 3780 does it, is it, you know, it does, you know, a switching cycle. And then at the end of

00:58:31.520 --> 00:58:36.180
<v Mike Englehart>every switching cycle, it does a forensic analysis of how that switching cycle went. And then it decides

00:58:36.180 --> 00:58:40.560
<v Mike Englehart>whether the next mode should be buck, next switch cycle should be buck mode or boost mode. And then

00:58:40.560 --> 00:58:45.140
<v Mike Englehart>it does that cycle, that one switching cycle. Then it does a forensic analysis, how that went,

00:58:45.140 --> 00:58:48.280
<v Mike Englehart>makes a decision about the next side, and just keeps doing that over and over and over again.

00:58:48.700 --> 00:58:54.240
<v Mike Englehart>So that was a complicated controller. And, uh, that's implemented in LTSpice as a, uh, as a mixed

00:58:54.240 --> 00:58:54.840
<v Mike Englehart>mode simulator.

00:58:55.420 --> 00:59:01.380
<v Chris Gammell>So, so in the, in the, the physical, uh, implementation, is there, there's not like a micro in there or

00:59:01.380 --> 00:59:05.300
<v Chris Gammell>anything, right? It's just, it's doing some, or, or is there a micro internal that you're,

00:59:05.300 --> 00:59:06.300
<v Chris Gammell>you're simulating?

00:59:06.300 --> 00:59:11.500
<v Mike Englehart>I don't know if I would call it a micro in the sense that if having separate object code

00:59:11.500 --> 00:59:16.640
<v Mike Englehart>and, you know, as a, you know, as something, you know, I don't think I would call it a micro

00:59:16.640 --> 00:59:21.700
<v Mike Englehart>controller in the sense of having, you know, code data and an X and an ALU.

00:59:21.840 --> 00:59:24.760
<v Chris Gammell>Maybe a state machine though, like state machine and some kind of logic.

00:59:24.760 --> 00:59:27.980
<v Mike Englehart>Oh yeah. Oh yeah. Oh boy. It's got state machines and it's got enough state machines to sink a

00:59:27.980 --> 00:59:28.500
<v Mike Englehart>battleship.

00:59:29.080 --> 00:59:29.440
<v Mike Englehart>Okay.

00:59:29.520 --> 00:59:33.800
<v Mike Englehart>You know, it's, it's, it's, it's, it's, it's many thousands of gates. I'm sorry.

00:59:33.800 --> 00:59:34.800
<v Mike Englehart>Really? Oh wow.

00:59:34.960 --> 00:59:38.920
<v Mike Englehart>Yeah. It's more than a thousand gates. Yeah. It's, it's more than a thousand gates and every

00:59:38.920 --> 00:59:42.900
<v Mike Englehart>single gate is doing something. Cause another thing in this is that it has all of these,

00:59:42.900 --> 00:59:48.780
<v Mike Englehart>um, switching in buck mode or boost mode. All of the FETs are N channel. And so it has these

00:59:48.780 --> 00:59:53.740
<v Mike Englehart>floating gate drivers with bootstrap voltages above the input voltage or above the output

00:59:53.740 --> 00:59:57.680
<v Mike Englehart>voltage, depending on whether it's in buck mode or boost mode. Boost mode uses synchronous

00:59:57.680 --> 01:00:02.180
<v Mike Englehart>rectum. So the output diode is a MOSFET. And when that output MOSFET is on, you want that gate

01:00:02.180 --> 01:00:07.540
<v Mike Englehart>voltage filled well above that output voltage. And so, uh, in these floating gate drivers,

01:00:07.600 --> 01:00:13.640
<v Mike Englehart>you have these boost capacitors and these boost capacitors have to, um, uh, cycle sometimes.

01:00:13.640 --> 01:00:17.980
<v Mike Englehart>But if you're just staying cycle by cycle and, and, you know, in buck mode, then you have

01:00:17.980 --> 01:00:21.880
<v Mike Englehart>this input MOSFET and you need a voltage on it above the input voltage. Well, what the thing

01:00:21.880 --> 01:00:27.580
<v Mike Englehart>does is every 10th cycle, it will commutate all four MOSFETs to recharge the boost capacitor

01:00:27.580 --> 01:00:33.260
<v Mike Englehart>switches. And, um, so it's got that logic going on too. It's a lot of logic. It's a

01:00:33.260 --> 01:00:39.100
<v Chris Gammell>very complicated part, you know? Yeah. That's, and so, so how did that, how did that, how did

01:00:39.100 --> 01:00:43.340
<v Chris Gammell>that come down then? So, so you, did they, did they come to you and say, well, we got to

01:00:43.340 --> 01:00:47.900
<v Chris Gammell>get this working and the standard models aren't going to necessarily be able to cut it. We need

01:00:47.900 --> 01:00:54.680
<v Mike Englehart>to figure something else out. Uh, the guy, it was a product. Uh, it was released as a product.

01:00:54.880 --> 01:00:59.960
<v Mike Englehart>And then, um, uh, I was dealing with the, and it was an important product, you know,

01:00:59.960 --> 01:01:03.700
<v Mike Englehart>cause that, that, that, that is a really useful part. We sold a lot of those. I used like an

01:01:03.700 --> 01:01:08.800
<v Mike Englehart>automotive. A lot of times you need 12 volt out and you have 12 volt in, but the input can go down

01:01:08.800 --> 01:01:13.860
<v Mike Englehart>to, you know, who knows what while cranking and, and, and, you know, so it's used. Yeah. You had four

01:01:13.860 --> 01:01:19.440
<v Mike Englehart>volts on a cold day, right? Uh, no, it's a very popular part and we're, you know, we're going to

01:01:19.440 --> 01:01:24.400
<v Mike Englehart>do whatever's necessary to, to, uh, we'll implement in simulation, anything necessary to model a part.

01:01:24.900 --> 01:01:32.980
<v Mike Englehart>So I, uh, after the, the product was released, I talked to the, um, uh, designer, actually all

01:01:32.980 --> 01:01:39.020
<v Mike Englehart>these parts, we, the, the guy making the model, I personally made the 30, the 3780 model, but, um,

01:01:39.180 --> 01:01:43.440
<v Mike Englehart>we have a group of people making models. Whoever's making the model interacts with the IC designer.

01:01:43.860 --> 01:01:50.920
<v Mike Englehart>Okay. And he extracts the behavior from the IC designer. Now he may use, um, you know, crowbar

01:01:50.920 --> 01:01:55.560
<v Mike Englehart>or, you know, um, a bolt cutters, whatever. He extracts the information from the, from the

01:01:55.560 --> 01:02:01.280
<v Mike Englehart>designer to get that. It's not, it's not pretty, but, um, you were talking like crowbar and, and,

01:02:01.280 --> 01:02:04.680
<v Chris Gammell>and cutters are like on their pinky fingers or toes or anything like that.

01:02:04.780 --> 01:02:06.580
<v Mike Englehart>Yeah. Yeah. Yeah. Yeah. Cause we'd be able to find out while this part works, you know.

01:02:06.580 --> 01:02:14.940
<v Mike Englehart>Okay. And, uh, so, uh, you know, I, uh, I'd ask him how this thing works and he'd tell

01:02:14.940 --> 01:02:18.440
<v Mike Englehart>me enough information and I'd come back a week later and I was ready to metabolize

01:02:18.440 --> 01:02:24.260
<v Mike Englehart>more of what he had to say. And five weeks later, we had a model of a 3780 and I had

01:02:24.260 --> 01:02:27.960
<v Mike Englehart>to write, um, uh, a mixed mode simulator to do it.

01:02:27.960 --> 01:02:34.720
<v Chris Gammell>That, that is, I, I, I'm just trying to imagine how many different aspects of the business you

01:02:34.720 --> 01:02:38.700
<v Chris Gammell>get to see as well, because I mean, man, this, this has got to cut across everything.

01:02:38.900 --> 01:02:44.120
<v Mike Englehart>You know what? Let me tell you something. Simulation is just another thing that shows

01:02:44.120 --> 01:02:49.080
<v Mike Englehart>it's just the gosh darnedest thing what a guy will do for a buck. You know, there's just no

01:02:49.080 --> 01:02:50.980
<v Mike Englehart>accounting. Okay. That's all it is.

01:02:53.120 --> 01:02:56.840
<v Chris Gammell>That's what, that's what it is. It's not, it's not your, your curiosity about the world. That's,

01:02:56.840 --> 01:03:00.080
<v Chris Gammell>that's probably how I would, I would, I would have said it because I think only people that

01:03:00.080 --> 01:03:04.560
<v Chris Gammell>are curious about how the hell all this stuff works would keep plotting away at this because

01:03:04.560 --> 01:03:08.880
<v Chris Gammell>this does not seem, uh, you know, you said you have to convince people that this is difficult,

01:03:08.880 --> 01:03:11.160
<v Chris Gammell>but this, this is, this is difficult, man.

01:03:11.820 --> 01:03:17.600
<v Mike Englehart>I'm actually, I'm being, I was being facetious. It was a really delightful challenge. The 3780

01:03:17.600 --> 01:03:23.340
<v Mike Englehart>was a delightful challenge. It was an interesting thing. There's a 3789 also with a similar amount

01:03:23.340 --> 01:03:26.540
<v Mike Englehart>of stuff inside it. Actually the 3789 is a more complicated product.

01:03:26.840 --> 01:03:31.760
<v Mike Englehart>But it was a little bit easier to, um, uh, implement because it did, it did less forensic

01:03:31.760 --> 01:03:32.400
<v Mike Englehart>analysis.

01:03:33.120 --> 01:03:36.660
<v Chris Gammell>That's, that's an interesting term to me too. The, the forensic analysis. I mean,

01:03:36.700 --> 01:03:40.220
<v Chris Gammell>so when you say you're still saying the state machine kind of thing and, and, uh,

01:03:40.220 --> 01:03:42.760
<v Chris Gammell>Forensic analysis, forensic means after the fact.

01:03:42.800 --> 01:03:43.860
<v Mike Englehart>Yeah. Right, right.

01:03:44.140 --> 01:03:48.480
<v Mike Englehart>Okay. Like if you do a, if you do a forensic analysis of a cadaver is after he's died.

01:03:48.840 --> 01:03:52.900
<v Mike Englehart>So a forensic analysis of a switching cycle is that after that cycle has happened,

01:03:52.900 --> 01:03:56.320
<v Mike Englehart>you'll look at it, you consider it, then you can decide what to do the next. That's, that's,

01:03:56.380 --> 01:03:57.820
<v Mike Englehart>I'm just using it to mean after a fact.

01:03:57.820 --> 01:04:03.400
<v Chris Gammell>Yeah. Okay. That's, that's, that's very, very cool. I, you know, I, again, I, I, you know,

01:04:03.420 --> 01:04:07.240
<v Chris Gammell>I, I view a lot of these, these components as, you know, high level things to me and it's like,

01:04:07.280 --> 01:04:11.940
<v Chris Gammell>oh yeah, of course it should, you know, make the output go to where I tell it to go with that simple

01:04:11.940 --> 01:04:17.840
<v Chris Gammell>resistor setting. Right. That's the, that's the, the Cro-Magnon way of, of using a switching supply,

01:04:17.840 --> 01:04:21.520
<v Chris Gammell>but the, you know, there's so much magic underneath and all this, you know, there's all this other

01:04:21.520 --> 01:04:30.060
<v Chris Gammell>stuff going on that I'm a little, I'm a little spoiled. I, I, I do realize this. Um, I did want

01:04:30.060 --> 01:04:36.380
<v Chris Gammell>to ask you about, uh, so I think the Berkeley, not to go back to Berkeley too much, but the Berkeley

01:04:36.380 --> 01:04:44.040
<v Chris Gammell>one was open source. Is that correct? Yes. Is, is LT spice open source? No, no. Okay. So because

01:04:44.040 --> 01:04:49.860
<v Chris Gammell>there's all the, all these other constructs in there, basically you guys keep it as a trade secret

01:04:49.860 --> 01:04:56.420
<v Mike Englehart>kind of thing. Yeah. I just got no reason to make it open source. I mean, uh, you know, there's no

01:04:56.420 --> 01:05:03.500
<v Mike Englehart>reason for me to do it. If I did, all that would happen is you're right now you have a small, you

01:05:03.500 --> 01:05:08.320
<v Mike Englehart>know, you have like, uh, uh, uh, uh, uh, small companies trying to make a, a, a gooey around Berkeley

01:05:08.320 --> 01:05:13.180
<v Mike Englehart>spice and they'll try to say that all spice programs are the inside of the same. The only difference is

01:05:13.180 --> 01:05:18.900
<v Mike Englehart>the, um, uh, is the, uh, gooey. Right. Well, and they do that because they have their agenda

01:05:18.900 --> 01:05:23.260
<v Mike Englehart>to, to make people want to believe that so they can believe that, you know, what they have is,

01:05:23.420 --> 01:05:28.380
<v Mike Englehart>is as good as something else, which probably is not true. Right. We see that a lot with, uh,

01:05:28.380 --> 01:05:32.760
<v Chris Gammell>web-based tools, right? That's a, that's a big trend these days is they put a nice gooey on an HTML

01:05:32.760 --> 01:05:36.940
<v Chris Gammell>five page or something like that. And it's using Berkeley on the backend. Yeah. Well, I, I just have,

01:05:36.940 --> 01:05:43.460
<v Mike Englehart>uh, I have no reason to make LT spice open source. Yeah. You know, if I, if I did, what they'd say

01:05:43.460 --> 01:05:50.240
<v Mike Englehart>would actually be true and I have no reason to, you know, after they've been, I just have no reason,

01:05:50.300 --> 01:05:54.140
<v Mike Englehart>I have no motivation to do it. People do what they're motivated to do. And I'm not motivated to

01:05:54.140 --> 01:05:58.640
<v Mike Englehart>make LT spice open source. I do not recommend making it that way. Right. Yeah. It's such,

01:05:58.740 --> 01:06:02.520
<v Chris Gammell>it's such a competitive amount, uh, advantage for, you know, LT, like you said at the beginning,

01:06:02.580 --> 01:06:06.620
<v Chris Gammell>right? I mean, you, you, you saw this as a competitive advantage. I completely agree that it's

01:06:06.620 --> 01:06:12.040
<v Chris Gammell>a competitive advantage because I I've had situations where I went into LT spice,

01:06:12.040 --> 01:06:19.160
<v Chris Gammell>I pulled up, I was in a bind, right? I went in, I used a, uh, you know, a, a macro model and

01:06:19.160 --> 01:06:24.480
<v Chris Gammell>simulation. I tweak some parameters. I dropped that into a design. The next day I got it fabricated

01:06:24.480 --> 01:06:30.620
<v Chris Gammell>and it worked right. That right there is a competitive advantage because if I, if I do that

01:06:30.620 --> 01:06:34.660
<v Chris Gammell>enough times and then I'm confident enough that that's going to keep working, then why wouldn't

01:06:34.660 --> 01:06:38.760
<v Chris Gammell>I mean like price is no issue at that point then. Right. I mean like that's, that's, that's what

01:06:38.760 --> 01:06:45.640
<v Chris Gammell>it says to me at least. Sure. Okay, cool. Yeah. And then the real reason I was asking about the

01:06:45.640 --> 01:06:49.960
<v Chris Gammell>open source thing is actually cause I, uh, I'm doing a presentation about open source and I,

01:06:49.960 --> 01:06:55.100
<v Chris Gammell>I had listed LT spice at one point, but I think that I, I had confused the LT versus the,

01:06:55.100 --> 01:06:59.780
<v Chris Gammell>the Berkeley stuff as well. Right. I mean the, the difference there. Um, but I think you really

01:06:59.780 --> 01:07:05.400
<v Mike Englehart>enumerated that well. Yeah. The Berkeley is, uh, is open source. Actually open source is maybe,

01:07:05.520 --> 01:07:11.220
<v Mike Englehart>when people think of open source, they think of like, um, uh, GNU copy lefted stuff. Uh,

01:07:11.540 --> 01:07:17.280
<v Mike Englehart>uh, Berkeley spices, uh, is more free than that. Basically you can use it however you want.

01:07:17.460 --> 01:07:23.300
<v Mike Englehart>You can compile it in your own code and keep it a secret. Um, you know, be basically just can't

01:07:23.300 --> 01:07:29.320
<v Mike Englehart>say that you wrote it. Right. And then there's, there's, you know, I don't want to, uh, interpret

01:07:29.320 --> 01:07:33.860
<v Mike Englehart>their licensing agreement for them, but, um, you could read their license agreement, but it's,

01:07:33.860 --> 01:07:40.700
<v Mike Englehart>it's not like GNU. You actually can compile these by right here, uh, uh, a commercial product

01:07:40.700 --> 01:07:47.560
<v Mike Englehart>and you don't have to, uh, um, uh, reveal the source code you used. Um, so we did have one

01:07:47.560 --> 01:07:52.860
<v Chris Gammell>or two questions on our, uh, I think we covered some of these questions on our subreddit. Um,

01:07:53.300 --> 01:07:59.140
<v Chris Gammell>uh, one of the questions was about the MOSFET thing that I brought up. Uh, someone else asked

01:07:59.140 --> 01:08:03.900
<v Chris Gammell>about integration and, you know, so KiCad or sorry, uh, LTSpice and then they were asking

01:08:03.900 --> 01:08:07.980
<v Chris Gammell>about KiCad. Um, was there ever a drive to, you know, integrate with other tools outside

01:08:07.980 --> 01:08:11.520
<v Mike Englehart>of it? I mean, or is it? Oh yeah. It's no problem to integrate with KiCad. What I do

01:08:11.520 --> 01:08:16.420
<v Mike Englehart>is I just have my secretary redrafted. Like the schematic? Yeah. Yeah. There you go.

01:08:17.640 --> 01:08:21.280
<v Chris Gammell>Problem solved. Yeah. There you go. Have your secretary redrafting. You're done. Right.

01:08:21.280 --> 01:08:29.200
<v Chris Gammell>Step one, uh, get, get an assistant. Uh, actually though, there is, well, there's one

01:08:29.200 --> 01:08:34.160
<v Mike Englehart>other, um, I'm saying this answer more for technical complete completion and saying something

01:08:34.160 --> 01:08:39.540
<v Mike Englehart>that's actually useful. The useful thing to do is to redraft it. But in fact, LTSpice can

01:08:39.540 --> 01:08:49.280
<v Mike Englehart>generate, um, netless for CAD programs. Um, and, um, you know, it'll do Tango and CalA, CalA 90,

01:08:49.280 --> 01:08:54.440
<v Mike Englehart>EE design. There's like 30 different formats. Yeah. Right. Right. But I'm telling you this for,

01:08:54.580 --> 01:08:59.580
<v Mike Englehart>for academic correctness, not, not actual practical utility, because the fact of the matter is that is

01:08:59.580 --> 01:09:03.620
<v Mike Englehart>a deep feature unless you, you know, make a whole bunch of symbols and footprints that'll

01:09:03.620 --> 01:09:08.640
<v Mike Englehart>netlist against the netlist that comes out of that thing. Yeah. It's pretty worthless. Right. So

01:09:08.640 --> 01:09:13.760
<v Mike Englehart>I will, I will mention it to be correct, but I will not mention it as a, as a, as an advice of what

01:09:13.760 --> 01:09:18.320
<v Chris Gammell>you ought to do and saying it's a useful thing. Right. I, I'm, I'm in the same boat. I mean, I,

01:09:18.360 --> 01:09:23.740
<v Chris Gammell>I always think I keep them separate because I want, I want a, a physical, you know, a physical

01:09:23.740 --> 01:09:28.760
<v Chris Gammell>schematic that's something that's going to be on a board to be pristine. And I know that my

01:09:28.760 --> 01:09:34.040
<v Chris Gammell>spice models are a mess because I'm, you know, I'm playing around in there. I'm, I'm experimenting.

01:09:34.280 --> 01:09:38.500
<v Mike Englehart>I'm doing a lot of stuff like that. Yeah. And also the whole point of being an engineer,

01:09:38.500 --> 01:09:41.980
<v Mike Englehart>I mean, the reason why you get paid the big bucks is you cut a big problem into a bunch of little

01:09:41.980 --> 01:09:46.500
<v Mike Englehart>problems. I mean, hopefully you, hopefully you don't have to simulate the whole thing all at once.

01:09:46.700 --> 01:09:52.280
<v Mike Englehart>Right. So the schematic for simulation, the schematic for layout are not particularly related.

01:09:52.600 --> 01:09:56.780
<v Chris Gammell>Right. You know, that was, I don't think I was alone. And that was, that was a big problem that

01:09:56.780 --> 01:10:01.340
<v Chris Gammell>I had when I was starting out that I, I did try that, you know, I tried to do the whole model. I,

01:10:01.340 --> 01:10:05.220
<v Chris Gammell>I took the whole page and I'm like, Oh, I'll just put everything in there. And, uh, yeah,

01:10:05.220 --> 01:10:10.440
<v Chris Gammell>that's definitely, that's, that's, that's silly. Uh, and then that does speak to the whole idea of,

01:10:10.440 --> 01:10:15.220
<v Chris Gammell>you know, using, using spice as a, you know, a tool for, for specific things that you,

01:10:15.580 --> 01:10:19.320
<v Chris Gammell>because you understand most components. And when you don't get to, when you get to something that

01:10:19.320 --> 01:10:24.180
<v Chris Gammell>you don't necessarily understand, you can start to dig in and play around with those individual areas.

01:10:24.180 --> 01:10:32.540
<v Chris Gammell>Right. Um, I did want to ask, uh, I know we're kind of running out of time here. Um,

01:10:32.540 --> 01:10:41.920
<v Chris Gammell>I did want to ask about the, uh, the, the different types of simulation, uh, the convergence models and

01:10:41.920 --> 01:10:45.660
<v Chris Gammell>all the other stuff that I had this in my notes from before when we were talking about it. Um,

01:10:46.080 --> 01:10:51.980
<v Chris Gammell>could you help quantify, uh, I'm trying to find the, the, not here, it was control panel. So the,

01:10:51.980 --> 01:10:56.580
<v Chris Gammell>the different types of, uh, uh, integration method, all the other stuff, is there any reason

01:10:56.580 --> 01:11:02.500
<v Mike Englehart>that people should ever mess with that kind of stuff? There is, um, okay. When you see the control

01:11:02.500 --> 01:11:07.240
<v Mike Englehart>panel, there should like be this audio recording that plays. It says, you know, kind of thing of

01:11:07.240 --> 01:11:15.760
<v Mike Englehart>poking, hand it in them pocket and keep it, you know, but, um, okay. Kind of thing of poking. Okay.

01:11:15.760 --> 01:11:25.220
<v Mike Englehart>Okay. Um, there is, there is, um, now you actually, and your hint there is that these,

01:11:25.520 --> 01:11:30.620
<v Mike Englehart>all of these values are lobotomized every single time you start the program. Okay. Okay. And the

01:11:30.620 --> 01:11:35.860
<v Mike Englehart>reason why they're lobotomized is because I'm pretty sure that I have a better value for those

01:11:35.860 --> 01:11:40.240
<v Mike Englehart>things than you do. Yeah. Okay. Okay. Now there are exceptions and let me go through the exceptions

01:11:40.240 --> 01:11:44.080
<v Mike Englehart>because that's where something's important. Okay. And you'll notice the things that are asterisk.

01:11:44.080 --> 01:11:51.280
<v Mike Englehart>Solver is asterisk. Okay. Um, and you have the normal or alternate solver. Okay. Now the

01:11:51.280 --> 01:11:55.600
<v Mike Englehart>difference between these two is the alternate solver uses a different sparse matrix package.

01:11:55.720 --> 01:12:01.260
<v Mike Englehart>It uses one rewrote at linear tech and it uses a different method for eliminating unknowns,

01:12:01.440 --> 01:12:06.540
<v Mike Englehart>different method of pivoting the matrix, and it ends up with less roundoff error. That is,

01:12:06.560 --> 01:12:12.080
<v Mike Englehart>it's more accurate, but it's slower. Okay. So this is what you should do, but okay, it's slower.

01:12:12.080 --> 01:12:18.360
<v Mike Englehart>So what you should do is your algorithm you should apply, uh, is that you always use the normal solver

01:12:18.360 --> 01:12:23.220
<v Mike Englehart>unless it doesn't work. You know, you get some convergence error message. Okay. This sounds

01:12:23.220 --> 01:12:28.700
<v Mike Englehart>familiar. Yeah. Yeah. You always use the normal solver unless it doesn't work. Then you try the

01:12:28.700 --> 01:12:33.100
<v Mike Englehart>alternate solver. Okay. If it still can't solve with the alternate solver, you're going to have to

01:12:33.100 --> 01:12:37.400
<v Mike Englehart>fix your circuit. There's something very non-physical about your circuit. Right. Okay. Yeah. So that's

01:12:37.400 --> 01:12:43.700
<v Chris Gammell>one asterisk thing is the solver. So I shouldn't get, uh, 2.7 gigavolts, uh, for the, uh, the output

01:12:43.700 --> 01:12:47.860
<v Chris Gammell>put to my circuit. Is that, is that incorrect? Well, that sounds like you're using a Boyle model

01:12:47.860 --> 01:12:51.500
<v Mike Englehart>for your op amp and that'll linear tech op amp model, but I want to get into that right now. Right. Of

01:12:51.500 --> 01:12:57.100
<v Mike Englehart>course. Of course. Okay. All right. So that's one asterisk thing that can be remembered or not. Now,

01:12:57.100 --> 01:13:08.160
<v Mike Englehart>the other asterisk thing is TR tall. Now, the TR tall is a, um, um, it says it, it tells it, it, it,

01:13:08.160 --> 01:13:14.180
<v Mike Englehart>it's a directive on how accurately you should integrate the differential equations. This is an

01:13:14.180 --> 01:13:20.020
<v Mike Englehart>entirely different thing than how accurately it should solve the nonlinear aspect of the circuit.

01:13:20.140 --> 01:13:24.840
<v Mike Englehart>See, in Spice, there's two things going on. You have these nonlinear IV curves and you have

01:13:24.840 --> 01:13:30.260
<v Mike Englehart>capacitors and inductors. So you have ordinary difference equations to integrate. They're two

01:13:30.260 --> 01:13:35.820
<v Mike Englehart>entirely, they're completely different aspects of the program. And, uh, that thing says how accurately

01:13:35.820 --> 01:13:42.620
<v Mike Englehart>you need to integrate them. Now in industry, TR tall is normally seven. Every single Spice program

01:13:42.620 --> 01:13:49.000
<v Mike Englehart>in the world uses seven interesting because, but I set it to one on the PC and as I'm solving things

01:13:49.000 --> 01:13:53.100
<v Mike Englehart>basically in order, order magnitude more accurately than normal. And the reason why I did that

01:13:53.100 --> 01:13:58.780
<v Mike Englehart>because the Spice program was fast enough, I could afford to do it. And if I saw, if I set TR tall to

01:13:58.780 --> 01:14:04.440
<v Mike Englehart>one, no one would ever see a simulation artifact and wonder why it was showing what it was showing.

01:14:05.660 --> 01:14:11.780
<v Mike Englehart>However, if you're a big boy, you might want to use a larger value for TR tall, let the thing run

01:14:11.780 --> 01:14:17.560
<v Mike Englehart>faster. And if you see a simulation artifact, you see something you don't understand, you could try

01:14:17.560 --> 01:14:23.300
<v Chris Gammell>tightening TR tall and see if it goes away. I gotcha. Okay. So this is the, this is the smoothing it out

01:14:23.300 --> 01:14:29.620
<v Mike Englehart>for, uh, or not smoothing it out, but, but, uh, it's, it's, uh, uh, it's, uh, it, it, it's used as a

01:14:29.620 --> 01:14:35.520
<v Mike Englehart>directive to guess how big you can make the time step as far as how accurately you need to integrate

01:14:35.520 --> 01:14:40.280
<v Mike Englehart>differential equations. The error goes to zero if you take very small time steps, right? Right.

01:14:40.280 --> 01:14:46.880
<v Mike Englehart>And if you don't take very small time steps, you have an error. And this is, uh, uh, um, uh, directive

01:14:46.880 --> 01:14:51.580
<v Mike Englehart>that says how, how perspicuous you should try to be on integrating those differential equations.

01:14:52.020 --> 01:14:55.880
<v Mike Englehart>Seven is the normal number for every Spice program in the world, but you will occasionally see

01:14:55.880 --> 01:15:02.360
<v Mike Englehart>simulation artifacts. Um, on the PC, it's set to one on the Mac version. I've loosened it to two by

01:15:02.360 --> 01:15:06.600
<v Mike Englehart>default. You might want to set that to two or three. You get a little, to simulate a little bit

01:15:06.600 --> 01:15:10.880
<v Mike Englehart>faster. You'll probably never see a simulation artifact. So it's different windows and Mac.

01:15:11.020 --> 01:15:15.980
<v Mike Englehart>That's kind of weird. Well, the, the Mac is a, uh, yeah, it is a little weird. I, when I made it one,

01:15:16.360 --> 01:15:20.940
<v Mike Englehart>I just had second thoughts. I decided I made it too, I made it too, um, uh, too critical.

01:15:21.200 --> 01:15:25.760
<v Mike Englehart>So the Mac version, I set it to two. This is essentially the same solver. Yeah. I mean,

01:15:25.760 --> 01:15:30.680
<v Mike Englehart>it's the same solver, except the Mac version is 64 bit instead of 32 bit. So all these compilers

01:15:30.680 --> 01:15:36.360
<v Mike Englehart>are making X64 code instead of 32 bit code. So that was the self-authoring code is in fact

01:15:36.360 --> 01:15:42.520
<v Mike Englehart>doing 64 bit code too. But, um, uh, so there's that, but otherwise it's essentially the same

01:15:42.520 --> 01:15:48.400
<v Mike Englehart>solver. And the third thing that's asterisked is whether or not you should accept, um, the European

01:15:48.400 --> 01:15:56.660
<v Mike Englehart>style, um, K for a period. And, um, I don't care how you feel on that. It's not, that's a style,

01:15:56.820 --> 01:16:03.740
<v Mike Englehart>right? Yeah. It's a stylistic thing. It's, it's, you know, it's not really correct to use 3k

01:16:03.740 --> 01:16:09.840
<v Mike Englehart>for to mean 3.4 K and circuit simulation, but enough people wanted it and it was not destructive

01:16:09.840 --> 01:16:16.200
<v Mike Englehart>to the rest of the, um, uh, syntax that, um, if you allow it, all you do is maybe messages that

01:16:16.200 --> 01:16:20.600
<v Mike Englehart>you should have gotten and circuits, you know, it's, it, it doesn't really hurt anything to accept

01:16:20.600 --> 01:16:25.300
<v Chris Gammell>it. Hmm. The only other thing I've ever played with, the only other ones I've ever played with

01:16:25.300 --> 01:16:29.440
<v Chris Gammell>are Gmin and Abstal, but that was because it was at Keithley and we were doing super low stuff

01:16:29.440 --> 01:16:33.540
<v Mike Englehart>anyways. And they told me to. Now if you're, if you're at Keithley, yeah, you have all those

01:16:33.540 --> 01:16:39.600
<v Mike Englehart>electrometer things. Yes. You may need a smaller Gmin. Yes. What Gmin is, here's the issue. Um,

01:16:40.940 --> 01:16:48.180
<v Mike Englehart>a diode, you know, it has, um, a low impedance if it's forward conducting, if it's forward biased

01:16:48.180 --> 01:16:55.220
<v Mike Englehart>and a low impedance of reverse biased. Well, it turns out you can't actually express the, uh, the,

01:16:55.220 --> 01:17:02.600
<v Mike Englehart>the, uh, uh, if you have one diode that's forward, uh, um, the trouble is that with double precision,

01:17:02.600 --> 01:17:07.740
<v Mike Englehart>you can't solve a circuit with a diode. The physical system is more dynamic range required

01:17:07.740 --> 01:17:13.220
<v Mike Englehart>than what you have with double precision math. That's the problem. Wow. Okay. That's crazy.

01:17:13.360 --> 01:17:16.840
<v Mike Englehart>So it's, it's unusual. You don't usually see that in simulation, but it happens in electronics

01:17:16.840 --> 01:17:21.320
<v Mike Englehart>because you have all these exponential curves that are more or less faithfully, uh, uh, you know,

01:17:21.320 --> 01:17:27.060
<v Mike Englehart>delivered, you know, in reality. And it means that if you have two diodes in series and you reverse

01:17:27.060 --> 01:17:32.280
<v Mike Englehart>bias them, you can't solve for the bias point because they both look like currents. So you can't

01:17:32.280 --> 01:17:37.920
<v Mike Englehart>solve for the, uh, uh, intermediate value between the two diodes and you end up with the numerical

01:17:37.920 --> 01:17:43.920
<v Mike Englehart>error message instead of a, instead of a solution. So what, what's done is every single GN, every single

01:17:43.920 --> 01:17:50.600
<v Mike Englehart>PN junction is shorted out with something called Gmin so that if it's reverse bias, it still has some

01:17:50.600 --> 01:17:56.160
<v Mike Englehart>conductivity. Now, if you don't have diodes in series, you might be able to set Gmin equal to zero

01:17:56.160 --> 01:18:01.920
<v Mike Englehart>and still solve the circuit. Right. Right. So you can try Gmin equals zero. And for electrometer

01:18:01.920 --> 01:18:05.780
<v Mike Englehart>circuits, I would definitely, if you can solve it with Gmin equals zero, I would do that. In fact,

01:18:05.820 --> 01:18:10.260
<v Mike Englehart>for electrometers, I would use the alternate solver and Gmin equals zero. That would be my preferred

01:18:10.260 --> 01:18:14.660
<v Mike Englehart>mode of operation for doing anything with electrometers. Usually I would just, uh, build in

01:18:14.660 --> 01:18:20.620
<v Chris Gammell>leakage paths with really, really high frequency or high, high resistance, uh, uh, parts, you know,

01:18:20.620 --> 01:18:24.760
<v Chris Gammell>just kind of try and try and fake around it, that kind of thing. Yeah. Build it up on Teflon

01:18:24.760 --> 01:18:29.860
<v Chris Gammell>standoffs and... Yep. Yep. All the fun stuff. Oh, you, you know, all this stuff, this, this is so

01:18:29.860 --> 01:18:35.120
<v Chris Gammell>great talking to you, man. This is just like, like, you know, all of the secrets. That's what's crazy to

01:18:35.120 --> 01:18:38.700
<v Chris Gammell>me. It's like all of this stuff that's under the hood. It's just like, oh yeah, I wrote that. So,

01:18:38.700 --> 01:18:44.220
<v Chris Gammell>you know, no big deal. Right. And yet to me, like, I feel like this has been, you know, this is,

01:18:44.320 --> 01:18:48.680
<v Chris Gammell>this is battle scars for me. I'm like, oh God, Gmin, you know,

01:18:48.980 --> 01:18:54.920
<v Chris Gammell>and it's, it's not your fault. It's my fault for not understanding it. But, uh, yeah, it's,

01:18:55.440 --> 01:19:00.200
<v Mike Englehart>that's crazy. Yeah. Gmin isn't described very well in literature. It's kind of disappointing.

01:19:00.860 --> 01:19:04.180
<v Chris Gammell>But, you know, it's, it's like any other engineering type thing. You learn it from the old

01:19:04.180 --> 01:19:08.560
<v Chris Gammell>guy sitting in the corner. Do you try and, you know, like when you go crying to, I go,

01:19:08.560 --> 01:19:11.120
<v Chris Gammell>go crying to them. They say, oh, here's what you're doing wrong. You know,

01:19:11.440 --> 01:19:17.440
<v Chris Gammell>it's pretty standard, right? It's a lot of engineering companies. Are there any, uh,

01:19:17.440 --> 01:19:20.880
<v Chris Gammell>what about the hacks thing? Cause I'm always, I'm always, uh, curious about this too.

01:19:21.140 --> 01:19:30.940
<v Mike Englehart>Okay. The hacks is, um, okay. Um, now one thing about inductors in LT Spice is that

01:19:30.940 --> 01:19:41.700
<v Mike Englehart>there'll be a, um, uh, um, okay. The series, okay. An inductor has a series resistance in LT Spice by

01:19:41.700 --> 01:19:48.360
<v Mike Englehart>default, unless it's coupled to another inductor. Okay. Now the reason why it has a series inductance,

01:19:48.460 --> 01:19:53.940
<v Mike Englehart>a series of resistance is it, it's a, it's a node reduction technique. If the resistant,

01:19:53.940 --> 01:19:59.440
<v Mike Englehart>if an inductor has a series resistance, I can represent, I can report the solution of the

01:19:59.440 --> 01:20:03.560
<v Mike Englehart>integration of differential equations to the part that solves the nonlinear circuit. I can report

01:20:03.560 --> 01:20:08.120
<v Mike Englehart>the solution as a Norton equivalent circuit. That is a current source in parallel with the

01:20:08.120 --> 01:20:13.100
<v Mike Englehart>conductivity. Yeah. That's how I would report the solution of the inductor. If it didn't have that

01:20:13.100 --> 01:20:17.660
<v Mike Englehart>ESR, I would have to use a Theven equivalent circuit. It would be a voltage source in series

01:20:17.660 --> 01:20:21.900
<v Mike Englehart>with a resistance. And if I have a voltage source in series with the resistance, I have a node in

01:20:21.900 --> 01:20:28.300
<v Mike Englehart>between them and that increases the size of the matrix. Oh man, that's crazy. That's, that's,

01:20:28.660 --> 01:20:35.340
<v Mike Englehart>yeah, that's that, that makes sense to me. Okay. So I default to a minimum, I default that to one

01:20:35.340 --> 01:20:40.660
<v Mike Englehart>milli-ohm and I do the one milli-ohm value because that usually it's more accurate. Not only is it fast,

01:20:40.680 --> 01:20:45.660
<v Mike Englehart>it's actually more physically representative. It actually is one inductor with a half milli-ohm ESR

01:20:45.660 --> 01:20:50.880
<v Mike Englehart>and the manufacturer wanted to complain to me about it. And I told them to, you know,

01:20:50.880 --> 01:20:56.360
<v Mike Englehart>it will then specify what it is and it will follow that. If you say it's equal to zero,

01:20:56.480 --> 01:21:00.220
<v Mike Englehart>we'll use a Theven equivalent, you know, no problem. Now, the other thing is that it will

01:21:00.220 --> 01:21:05.100
<v Mike Englehart>assume that the thing just has a little bit of damping. And I forget the time constant that's

01:21:05.100 --> 01:21:11.860
<v Mike Englehart>used, but it's, it's really minor. It's very, very small. It's a very small amount of damping.

01:21:11.860 --> 01:21:19.560
<v Mike Englehart>Um, but, um, um, and usually it, and what it does is it prevents the cue going to infinity for,

01:21:19.660 --> 01:21:24.360
<v Mike Englehart>at very high frequencies. It makes it easier to solve, uh, makes it again, more physically.

01:21:25.060 --> 01:21:30.180
<v Mike Englehart>That's just a convergence hack. Yeah. And it's usually more physically accurate. However,

01:21:30.180 --> 01:21:34.520
<v Mike Englehart>if you're modeling, if you're not modeling an electrical circuit, you know, a lot of times people

01:21:34.520 --> 01:21:41.700
<v Mike Englehart>do electrical analogies, in fact, the term analog of analog electronics came from, um, you know,

01:21:41.780 --> 01:21:48.200
<v Mike Englehart>uh, Philbrick doing analog, analog, analog, uh, computers, you know? Yeah. I mean, the old days,

01:21:48.320 --> 01:21:52.680
<v Mike Englehart>all electronics is analog, but there was a guy doing analog electronics. He meant to do analog

01:21:52.680 --> 01:21:56.860
<v Mike Englehart>computers. Anyway, if you're, if you're the thing you're simulating actually isn't a circuit,

01:21:56.860 --> 01:22:03.240
<v Mike Englehart>then that damping might not be appropriate. And, um, you may want to turn off that damping.

01:22:03.240 --> 01:22:09.320
<v Chris Gammell>Hmm. So this is, this is, this is just a big page of corner cases that like, again,

01:22:09.320 --> 01:22:13.720
<v Chris Gammell>most people won't need to do. Yeah. Most people don't need this. Yeah. Most people don't need that

01:22:13.720 --> 01:22:19.460
<v Chris Gammell>at all. Huh. So can I, can I put feature requests in now since I have your ear? You can email them to

01:22:19.460 --> 01:22:30.520
<v Mike Englehart>me. Oh, okay, fine. I have this, uh, I went to Staples. I have this great big red button and across it

01:22:30.520 --> 01:22:36.000
<v Mike Englehart>has black letters called delete. Yeah. It plugs into the USB port. Nice. That's where all the,

01:22:36.060 --> 01:22:39.640
<v Mike Englehart>all the stuff goes, all of the feature requests. No, no, no. Some of them, some of them get

01:22:39.640 --> 01:22:44.560
<v Chris Gammell>implemented right away. Yeah. You know, see mine were just going to be based on my stupidity. Like,

01:22:44.920 --> 01:22:50.620
<v Chris Gammell>like the error where it says you can't put in zero resistance. Uh, that's just my stupidity. Right.

01:22:50.620 --> 01:22:56.600
<v Chris Gammell>But I want it to be like, oh, he's trying to simulate a shunt. Right. And, uh, just stupid,

01:22:56.780 --> 01:23:01.740
<v Mike Englehart>stupid stuff on my part. Well, actually now, if you put in a resistor and if you give it a value

01:23:01.740 --> 01:23:08.040
<v Mike Englehart>of zero ohms, it does treat it as a shunt. Oh, did this change recently? Maybe a few months ago.

01:23:08.600 --> 01:23:12.000
<v Mike Englehart>Oh, okay. See, look at this. Someone did make that recommendation. I said that was right. Of course,

01:23:12.040 --> 01:23:17.020
<v Mike Englehart>he was also, he also worked for linear tech. So I, I did it for him, you know? Okay. Yeah.

01:23:17.020 --> 01:23:21.360
<v Mike Englehart>So you get extra, extra points. I got, um, I got that recommendation last December. I was in Japan

01:23:21.360 --> 01:23:26.500
<v Mike Englehart>last December and one of our, uh, uh, linear tech FEs said that they said it would help them

01:23:26.500 --> 01:23:31.600
<v Mike Englehart>communicate the circuit to customers better if they meant zero ohm resistors to me. Yeah.

01:23:31.600 --> 01:23:36.860
<v Mike Englehart>Give a placeholder on a PC board. Okay. And so I said, and I implemented it.

01:23:37.500 --> 01:23:40.980
<v Chris Gammell>Yeah. It's like a usability thing, right? Where it's like, that doesn't actually affect the

01:23:40.980 --> 01:23:46.300
<v Chris Gammell>engine at all, but it's just a, you know, communication type of thing. So yeah, it's

01:23:46.300 --> 01:23:53.200
<v Chris Gammell>huh. So, uh, I don't need to ask how big your team is, but, uh, if you get hit by a bus tomorrow,

01:23:53.380 --> 01:24:00.380
<v Chris Gammell>uh, you know, God forbid, uh, uh, is, is LT Spice doomed? Uh, because it seems like it from the,

01:24:00.440 --> 01:24:04.520
<v Chris Gammell>from my perspective right now, I can't imagine how many other people in the world know all the stuff,

01:24:04.580 --> 01:24:09.780
<v Mike Englehart>you know, uh, well, you know, I'm sure life will go on without me.

01:24:09.780 --> 01:24:17.960
<v Chris Gammell>I don't know, man, this is, this is some crazy stuff. I mean, so, uh, yeah, it's crazy.

01:24:19.900 --> 01:24:23.920
<v Mike Englehart>I mean, I certainly am the most visible person with LT Spice because I do a bunch of seminars

01:24:23.920 --> 01:24:29.360
<v Mike Englehart>and stuff all over, but, um, there's other people. Yeah. Okay. That's, that's good enough. That's

01:24:29.360 --> 01:24:32.300
<v Chris Gammell>good enough. I, I, I don't want you to go anywhere though. That's, that's the main thing. Let's,

01:24:32.360 --> 01:24:35.580
<v Chris Gammell>let's talk about that as the last thing. Uh, so tell me about these seminars real quick. Uh,

01:24:35.580 --> 01:24:43.080
<v Mike Englehart>you've been traveling the world. Yes, I am. I'm going to, um, six continents. Wow. I'm going,

01:24:43.180 --> 01:24:49.880
<v Mike Englehart>this year I'll go to Europe three times. I'll go to Asia three times. I'll go to Australia once.

01:24:50.300 --> 01:24:58.040
<v Mike Englehart>I'll go to South Africa in a couple of weeks and I'll go to, um, Brazil. Wow. And of course,

01:24:58.080 --> 01:25:03.280
<v Mike Englehart>everywhere in North America. Like I say, I was just in, uh, Cleveland, Ohio, not very long ago.

01:25:03.620 --> 01:25:05.080
<v Mike Englehart>Yeah. You should have come up. I will miss you.

01:25:05.080 --> 01:25:10.240
<v Mike Englehart>I know. I, I'm kicking myself. If you would have come, I would have given you a bass scaler.

01:25:10.680 --> 01:25:15.080
<v Mike Englehart>I was giving away prizes and the prize I was giving away was a bass scaler. So everyone in

01:25:15.080 --> 01:25:20.980
<v Mike Englehart>Cleveland who came to the seminar has a bass scaler from me. Am I hearing this wrong? A bass scaler?

01:25:21.260 --> 01:25:26.760
<v Chris Gammell>Yeah. Well, what if you catch a delicious bass? You going to eat the scales? Oh, scaler. Okay. Right,

01:25:26.760 --> 01:25:31.160
<v Chris Gammell>right, right. So yeah, that makes sense. Actually up here it would be walleye. Uh, walleye is pretty big.

01:25:31.160 --> 01:25:33.920
<v Mike Englehart>Well, you know, the pike were running or the perch were running while I was there.

01:25:33.920 --> 01:25:38.120
<v Chris Gammell>Oh yeah. Did you get out and start to get, get any, uh, fish? That's what they told me. I started

01:25:38.120 --> 01:25:42.980
<v Chris Gammell>giving away bass scalers and I started hearing, you know? Yeah, right. Yeah. You get, uh, you know,

01:25:42.980 --> 01:25:45.900
<v Chris Gammell>you get a bunch of Midwestern engineers. You're bound to hear about fishing once or twice.

01:25:46.200 --> 01:25:52.780
<v Chris Gammell>Yeah. That's awesome. So, and, and these are, uh, through a distributor. Is that correct?

01:25:52.780 --> 01:25:59.360
<v Mike Englehart>Yes. This year they're being done by arrow. I'm doing 57 seminars and, um, no, they're,

01:25:59.420 --> 01:26:04.740
<v Mike Englehart>they're doing a great job. Yeah. Um, I, um, so I just got back from Turkey.

01:26:05.260 --> 01:26:10.760
<v Mike Englehart>Whoa. That was a lot of fun. Wow. That was serious. That was, that was like, I, that was a great trip.

01:26:10.760 --> 01:26:16.880
<v Chris Gammell>Yeah. That's, that's, I mean, so, so, so I, I, I know, I know what I am and not, and I'm not allowed

01:26:16.880 --> 01:26:23.960
<v Chris Gammell>to ask, but, uh, I mean, the people at these seminars are, what are the, uh, what's the, the,

01:26:24.040 --> 01:26:29.600
<v Chris Gammell>the range of users? I mean, these are probably NASA scientists and also, uh, you know, students

01:26:29.600 --> 01:26:37.300
<v Mike Englehart>or is it, is it more varied than that? Um, we, you know, they're not invitation only. You can find,

01:26:37.480 --> 01:26:43.800
<v Mike Englehart>you know, on our website, how to register for one. Uh, I think they started out invitation. I don't know.

01:26:44.340 --> 01:26:50.700
<v Mike Englehart>And if, you know, it's basically whoever wants to go to them. Uh, I don't see very many students at

01:26:50.700 --> 01:26:58.660
<v Mike Englehart>them and I don't know or care why that is. Most of the people doing it are actually some type of, um,

01:26:59.600 --> 01:27:04.480
<v Mike Englehart>um, uh, you know, they're, they're electronic engineers that, that, um, that design circuits,

01:27:04.640 --> 01:27:11.220
<v Mike Englehart>you know, either for instrumentation companies or, you know, uh, uh, uh, they may or may not be

01:27:11.220 --> 01:27:15.620
<v Mike Englehart>full-time analog engineers. I've certainly met a lot of outstanding analog engineers in my travels.

01:27:16.320 --> 01:27:21.620
<v Chris Gammell>Yeah. Yeah. I'm jealous. Uh, there's gotta be a lot of good, good stories and a lot of,

01:27:21.620 --> 01:27:25.180
<v Chris Gammell>a lot of war stories and stuff like that. And probably a lot of appreciative people too,

01:27:25.220 --> 01:27:27.240
<v Chris Gammell>right? I mean, basically you're making...

01:27:27.240 --> 01:27:32.120
<v Mike Englehart>I must, I must say, I, I, all of the internet, I, I'm grateful for every international trip I've

01:27:32.120 --> 01:27:36.640
<v Mike Englehart>ever done. They've all been very interesting to me. Yeah. That's actually how I started doing

01:27:36.640 --> 01:27:42.260
<v Mike Englehart>these seminars. I used to live in Germany as a student go and I wanted to go back to Europe,

01:27:42.260 --> 01:27:46.620
<v Mike Englehart>but I didn't want to pay for it, you know? And that's how the seminars tours started.

01:27:46.900 --> 01:27:47.220
<v Mike Englehart>Man.

01:27:47.220 --> 01:27:51.260
<v Mike Englehart>So for years I would, I would, for several years I'd spend like 15% of my time in Europe

01:27:51.260 --> 01:27:57.380
<v Mike Englehart>and I never did it doing seminars, but I never did a seminar in North America. I did that for

01:27:57.380 --> 01:28:02.220
<v Mike Englehart>like three years. Yeah. And then I started doing them in North America and then New Horizons,

01:28:02.220 --> 01:28:10.640
<v Mike Englehart>um, wanted to organize it as a, um, sing, you know, uh, uh, uh, they wanted to market as,

01:28:10.640 --> 01:28:18.200
<v Mike Englehart>as a world tour. So, um, then I started doing, uh, um, promoted as one tour of seminars. It would

01:28:18.200 --> 01:28:25.060
<v Mike Englehart>be, uh, like in North America and Asia and Europe. And then, uh, Arrow bought New Horizons and I,

01:28:25.120 --> 01:28:29.140
<v Mike Englehart>I believe they bought it because they wanted the Elty Spice world tour.

01:28:30.480 --> 01:28:32.520
<v Mike Englehart>That's all right. That's a goodbye then.

01:28:33.520 --> 01:28:38.100
<v Mike Englehart>Yeah. And, uh, so now as they're doing a, an absolute record tour, they're going,

01:28:38.100 --> 01:28:43.300
<v Chris Gammell>they're going to go everywhere. See guys, this, I think Mike has got it figured out here. You know,

01:28:43.300 --> 01:28:46.820
<v Chris Gammell>don't, don't go on travel on your own dime. This is, this is the way to do it. You know,

01:28:46.920 --> 01:28:52.340
<v Chris Gammell>first off create a simulator that everybody loves the world round and then, uh, you know,

01:28:52.340 --> 01:28:56.820
<v Chris Gammell>find people that will send you to teach people about it. I think that is, that's a good,

01:28:56.900 --> 01:28:59.500
<v Chris Gammell>that's a good long game. I have to say, got it all figured out, Mike.

01:28:59.820 --> 01:29:00.540
<v Mike Englehart>What it is.

01:29:01.000 --> 01:29:01.260
<v Mike Englehart>Yeah.

01:29:01.760 --> 01:29:05.980
<v Mike Englehart>Yeah. Well, you know, I'll tell you something. I'm just, you know, to, to paraphrase, uh,

01:29:05.980 --> 01:29:12.640
<v Mike Englehart>Christopher Walken from that cowbell skit from Saturday night life. Okay. I'm just an ordinary

01:29:12.640 --> 01:29:20.300
<v Mike Englehart>guy. You know, I put my pants on one leg at a time, like anybody else.

01:29:21.260 --> 01:29:21.860
<v Mike Englehart>That's right.

01:29:22.580 --> 01:29:27.380
<v Mike Englehart>While I got my pants on, I write the world's best simulators, but so there's that, but

01:29:27.380 --> 01:29:33.740
<v Mike Englehart>Christopher Walken did a, that's a paraphrase of Christopher Walken in Saturday night life skit.

01:29:33.740 --> 01:29:38.380
<v Mike Englehart>I was playing on the radio, but I had to pull, it was playing on the radio. I had to pull over. I just,

01:29:38.600 --> 01:29:39.880
<v Mike Englehart>I fell out of the car.

01:29:40.740 --> 01:29:41.160
<v Mike Englehart>I know.

01:29:42.340 --> 01:29:44.060
<v Mike Englehart>Uh, it's more a cowbell.

01:29:46.240 --> 01:29:51.400
<v Mike Englehart>Not getting enough cowbells. That's the, was where the skit went after that, but it was really funny.

01:29:51.880 --> 01:29:54.560
<v Chris Gammell>Oh, that's a good one. That and the googly eyes. I like that one too.

01:29:54.560 --> 01:30:03.000
<v Chris Gammell>Well, Mike, uh, thank you so much for being on the show. Um, obviously people, I, I will try and

01:30:03.000 --> 01:30:08.280
<v Chris Gammell>find a link and, uh, and post it so that people can find your seminars and mob you with questions and,

01:30:08.280 --> 01:30:13.180
<v Chris Gammell>and, uh, gratefulness. Um, but yeah, is there, is there anywhere else online people can find you?

01:30:13.240 --> 01:30:16.300
<v Chris Gammell>You're not a, you're not a Twitterer or anything, anything like.

01:30:16.300 --> 01:30:22.500
<v Mike Englehart>You know, there is a, uh, LTSpice Twitter. There is some social media on LTSpice. I'm not actually,

01:30:22.560 --> 01:30:27.100
<v Mike Englehart>they have a person that runs all of that. And I think for me, that's the ultimate measure of the

01:30:27.100 --> 01:30:32.140
<v Mike Englehart>fact that I've made it, that I have someone running social media for me. Yeah. Yeah. Um,

01:30:32.740 --> 01:30:41.680
<v Mike Englehart>but, um, uh, I myself can be on the help about box of LTSpice is an email address. Um, LTSpice at

01:30:41.680 --> 01:30:45.740
<v Mike Englehart>linear.com. That's actually my email address. If you have my business card, that's the address on it.

01:30:45.740 --> 01:30:51.820
<v Mike Englehart>That's how you would reach me for questions, input, complaints, whatever about LTSpice. Um,

01:30:51.820 --> 01:30:58.080
<v Mike Englehart>and, um, the, the, uh, the seminar series there, you can find those on both linears and arrows

01:30:58.080 --> 01:31:07.180
<v Mike Englehart>webpages. I, I went up, um, uh, in, you know, in, in, in so many things up here, I do want to,

01:31:07.180 --> 01:31:14.460
<v Mike Englehart>um, express my appreciation in, um, in LTSpice, um, not only to yourself, Chris, um, to your listeners.

01:31:14.460 --> 01:31:21.020
<v Mike Englehart>I mean, LTSpice is the only thing I do for a living. So in any final analysis,

01:31:22.060 --> 01:31:28.320
<v Mike Englehart>your interest in LTSpice is about as close to a matter of life and death as I get to care with,

01:31:28.400 --> 01:31:31.640
<v Mike Englehart>get to a bunch of strangers. Okay. So I do appreciate your interest in it.

01:31:31.960 --> 01:31:38.020
<v Chris Gammell>His life is in our hands, folks. And I think, I think I will personally guarantee that you are

01:31:38.020 --> 01:31:44.320
<v Chris Gammell>going to be doing just fine, my friend. We will be sending you on trips, hopefully as long as we can.

01:31:45.820 --> 01:31:49.640
<v Chris Gammell>All right. Cool. Well, thanks again for, uh, thanks again for being on the show. We're sorry

01:31:49.640 --> 01:31:53.480
<v Chris Gammell>that, uh, Dave couldn't make it, but, uh, I will be rubbing this in his face that I got to talk to

01:31:53.480 --> 01:31:57.760
<v Chris Gammell>and he did not. What it is. All right. Thanks a lot. All right. Take care.

01:31:57.760 --> 01:32:24.260
<v Chris Gammell>You know, I, I talked to Mike after the show and he said, Dave's actually never allowed to use

01:32:24.260 --> 01:32:28.720
<v Chris Gammell>LTSpice ever again. So there's that too.
