Signal integrity engineers working on high-speed serial links, Ethernet, USB, PCI Express, and DDR memory interfaces need powerful simulation tools, but commercial software licenses can be cost-prohibitive. In this episode of the Altium OnTrack Podcast, host Zach Peterson sits down with David Banas, Solutions Engineer at Keysight, to explore three open-source Python packages that are transforming how engineers approach serial link simulation, IBIS-AMI model testing, and channel operating margin analysis. David walks through PyBERT, his most popular tool, demonstrating live how it handles eye diagrams, bathtub curves, jitter analysis, and equalization techniques like CTLE, DFE, and TX de-emphasis.
The pair explore PyIBIS, a Python tool for IBIS-AMI model developers, demonstrating its capabilities in analyzing signal transmission parameters. They look at how it helps debug models and apply equalization techniques to address signal distortion. Understanding this tool is crucial for effective data transmission analysis and ensuring signal integrity, especially when working with complex designs in Altium Designer or Cadence Design Systems.
Key Moments
Links
Zach Peterson: So you have some other tools as well. I think one of them is PyIBIS-AMI, or PyAMI, for IBIS models.
David Banas: PyIBIS-AMI was written to allow IBIS-AMI model developers to use Python to test and debug and poke at their IBIS-AMI models. It started life as nothing but a very thin wrapper around the AMI DLL, a Python wrapper. And all that did was it allowed you to pull that DLL easily into the Python universe.
Zach Peterson: Hello everyone, welcome to the Altium OnTrack podcast. I'm your host, Zach Peterson. Today we're talking with David Banas, solutions engineer at Keysight. For those of you who follow SI-List, you've probably seen David's name come up in association with certain open-source packages for signal integrity analysis. So, I have been meaning to get David on the podcast for quite a long time. Very happy to have him on today. David, thank you so much for joining us.
David Banas: You bet. Great to be here, Zach. And thanks for asking me to join.
Zach Peterson: So, you are a new guest on the show, of course. But some folks may already be a bit familiar with your work with open source signal integrity packages. Before we talk about all of that, if you could tell us a little bit about your background and how you got into electronics.
David Banas: I was about 12 years old and flushed with some paper route money from the week, and I wandered into the Radio Shack store in our town and I saw these kits. They were called 25-in-1, 50-in-1. And they were these breadboards, you know, and they came with a manual that let you build like 10, 15, 25 different circuits. And one week when I had saved up enough from my paper route, I bought one of those and I brought it home. And for like the next month, I couldn't put the thing down. And I just wanted to build the next circuit in the manual. And so that's when I realized that, that's where I knew where my career was going when I was 12 years old.
Zach Peterson: That's interesting. And I've mentioned on the show a couple times, for me it was when I was in third grade and the teacher's husband taught me and another student QuickBasic, and that was what got me obsessed with computers. And then started taking apart the old computer in the garage that my dad or my mom had put out there, and that was it. It was all over.
David Banas: When the first TRS-80s hit the shelves at Radio Shack, I would offer to make McDonald's runs so that the manager wouldn't kick me off the machine and I could keep hacking.
Zach Peterson: Fast forward to today, if you could tell us what you do as a solutions engineer at Keysight.
David Banas: Sure. So, my role is a pre-sales one. I help the account managers, the sales guys, make sure that new customer evaluations of our tools go smoothly and are successful so that, you know, hopefully they place the order.
Zach Peterson: Well, that's a pretty simple description. I guess what I'm wondering is what are some of the things that potential customers are coming in and asking of Keysight? Because, you know, Keysight's software is probably not as well known as some of their hardware, in terms of, you know, test and measurement, oscilloscopes, that kind of stuff.
David Banas: Right. Yeah. So our software actually spans a pretty wide gamut, all the way from RF microwave through high-speed digital applications, which is what I specialize in, and now even covering photonics design as well as quantum computing most recently. So I specialize in high-speed digital. So I help people do very high-speed memory interfaces, very high-speed serial communication links like Ethernet, USB and PCI Express. And so my focus is on that segment of our tool.
Zach Peterson: So this is really pairing up the software solution with the interface and probably the product type as well. Like for example, if it's going in the data center versus if it's going to be, you know, airborne, let's say.
David Banas: Yeah. Exactly. We make an effort with our tools to support what's called standards-based product development, which is becoming more and more the norm, at least in the commercial sector, where design teams are targeting a particular standard, like maybe it's the new addition to Ethernet or maybe it's the latest version of USB, that kind of thing. So our tools are geared to help them meet compliance with a particular version of a particular standard.
Zach Peterson: And when you say compliance, I mean this could be signal integrity in terms of channel compliance, probably. I would imagine also maybe EMI/EMC using some of the simulation tools. Would that be fair?
David Banas: Yeah, that's right. You're absolutely right. Yeah, the primary use is to make sure that, for instance, in a serial interface that your eye diagram has enough opening relative to the mask that the standard specifies it must meet. But then also, yeah, there are emissions requirements that people have to meet, particularly for consumer products, and our tools also help with that. They even go beyond that and help with thermal analysis to make sure that you're not going to melt a chip or delaminate your circuit board.
Zach Peterson: Now, that's another thing that's interesting about Keysight products. I didn't know that Keysight did, well, anything with thermal analysis. What are some of the thermal solutions that you guys have? And I ask this because I've had some folks on recently who, you know, work in thermal simulators and analysis software. So what kind of stuff does Keysight have for thermal?
David Banas: Keysight offers both thermal and electrothermal analyses available in its SIPro and RFPro package. So these are our electromagnetic extractors. So for instance, if someone has a DDR, high-speed DDR5 interface on a memory board and they want to get the most accurate model of that interface, they put it through something called an electromagnetic extractor. And it, you know, solves Maxwell's equations and gives you the most accurate model of that interface you can possibly have. So we have two tools that do that. And each of them offers a DC analysis of that interface, an AC analysis of course, but then also thermal analysis and electrothermal, where the currents at a particular frequency are actually taken into account when doing the thermal analysis. In the simpler plain thermal analysis, you simply define how much heat is being consumed by the various big chips on your board. The electrothermal makes it a little bit more accurate and looks at what the traces are doing as well.
Zach Peterson: Interesting. Okay. So, that's maybe for more of those moderate frequency, like power designs, or possibly higher frequency RF designs and then looking at what happens with heat generation as those signals move through the system.
David Banas: Yeah, that's exactly right.
Zach Peterson: Yeah. Normally with thermal simulators, it's like you define DC current and you set it up and maybe it calculates the power, or just like you said, you have to actually know ahead of time what the power output is. And sometimes you don't even know that because maybe you're starting from measurements and maybe you have a thermal camera, right? So the only thing you know is the starting temperature distribution, let's say.
David Banas: Yeah. And typically you're guessing about the current draw of the various sinks in your system. You know, you're typically using some average number that you've monitored in, you know, normal mission mode operations.
Zach Peterson: One of the things that you are well known for, which I alluded to in our introduction, is actually not your work with Keysight. It is some of the open source packages that you have produced.
David Banas: Oh, yeah.
Zach Peterson: For signal integrity. And if you could, before we maybe kind of dive into a couple of them, just give us a broad overview. You know, what are some of the open source tools that you've created?
David Banas: So there are primarily three. I mean, I have a lot of GitHub archives. GitHub is typically where people stash their open source tools, and I think I have like 50 archives, but the three ones that are most interesting to the SI/PI community are PyBERT, of course. That's the one that I'm most well known for. Something called PyIBIS-AMI, which is a dependency of PyBERT that allows people to work with IBIS-AMI models, which is a kind of I/O model. And then a third one that's very recent called PyChOpMarg. ChOp Marg is short for channel operating margin, and that's a Python alternative to the MATLAB COM code, which is the not official but official implementation of COM for the community.
Zach Peterson: Okay. So, let's jump into each of those a little bit individually. So, you said the one that you're best known for is PyBERT. And for the folks out there who are interested in finding these packages, make sure to head over to YouTube, take a look at the video description. We'll have some links over to your GitHub. But PyBERT is definitely the most popular. And I know on SI-List I see you posting some PyBERT updates every so often. So it looks like you're definitely doing a great job of maintaining that.
David Banas: We've been busy the last year or so. Yeah, David, and I... David Patterson is my chief co-developer, and he and I have been quite busy over the last year or two making some additions to keep up with some coming advances, primarily to the Ethernet standard.
Zach Peterson: So tell us a little bit about PyBERT and what it does.
David Banas: So PyBERT is a serial link simulator. But it's a very simple one. It's kind of a learning toy for people who are wanting to learn the fundamentals of serial link design. And it offers a three-part channel. Very, very simple. It's just a transmitter, an interconnect and a receiver. And you don't get to choose the architecture. You're stuck with PyBERT's implicit architecture. PyBERT isn't in the genre of tools like ADS, for instance, where you can actually draw the schematic that you want. You kind of take what you get with PyBERT. It's really a learning toy is what it is. But it can do quite a good job in the preliminary phases of a design, helping you to zoom in on the right portion of the parameter space that you need to be in as far as equalization. It's written in Python, but it does all of its computing using the NumPy, SciPy and scikit-rf packages, which makes it quite performant. It's actually quite comparable to tools written in C and C++. And it will allow you to import a channel in the form of a Touchstone model, which is the most typical way of representing a channel, as well as IBIS-AMI models of your transmitter and your receiver. And then it will combine all three of those and run a simulation for you, which will result in a lot of output. The primary one that most people are interested in is the eye diagram. Of course, I have it up and running. If a screenshot or a short demo would help, let me know.
Zach Peterson: Yeah. Yeah. Let's go ahead and, I guess we might as well just jump right in. So, you have a nice GUI here.
David Banas: So, it's a lot to take in at one glance, I understand. I'll just kind of identify the general regions of this first tab. So, first of all, PyBERT uses a tabbed interface. You can see the main tabs across the top here. And some tabs have subtabs, but that's it. Two layers of depth, no more than that. So, this is the configuration tab where you set up the simulation you want to run. And it has really five main areas. At the top left here, there's the simulation control. This is where you're setting things like the bit rate and the modulation scheme you want to use, which test pattern you want to use, and what your output level and your noise additions are. Analysis parameters up here to the top right. These allow you to take a little more technical control over the internal calculations of PyBERT. They're more of an advanced feature, so I won't say much about them. And then down below, the three components of the channel that I mentioned earlier: you have the transmitter on the left, abbreviated TX. You have the interconnect, that'd be like your Ethernet cable. And then you have your receiver, abbreviated RX. And each of these three offers you two choices with regards to how it's modeled. You can use an internal native model that comes with PyBERT for each of these, but you also have a second option for each, for the transmitter and the receiver. That option is an IBIS-AMI model, and I've already loaded one for the receiver so that I can show you how that works. And you can choose individually. You can use, for instance, right now I'm using the native TX model, the native channel model, but an IBIS-AMI RX model. And you can mix and match. All possible combinations are valid. And so with that run, you can then run the simulation, and under the simulation menu bar, you can see there's a run option. I've already run it, so I'll take you to the results. Down at the bottom is a quick summary of the results. The more detailed are available in the results tab here. And the results tab has five subtabs. The one we're most often interested in is this third one called eyes. And what you're seeing here is the superposition of many, many, many, many bits that were transmitted from a pseudo-random pattern through the channel and then superimposed over each other to construct what we call the eye diagram, which is intended to give you an estimate how well you're going to be able to receive any arbitrary data stream that gets sent over this channel. And there are four different plots in this window. And what they're representing is the eye from the unassisted or unequalized channel itself. So just the raw analog channel produces this. And this eye is quite poor. This eye doesn't have much vertical clearance to work with. So a little bit of noise is all it would take to cause a bit error here. The next one we see on the top right here is that channel with any TX de-emphasis added to it. TX de-emphasis is one piece of equalization that you can use to improve the eye of a channel. And you can see it's had quite a good improvement here. And then if we come down to the lower left, we add a third, or sorry, a second piece of equalization, which is the CTLE, which means continuous time linear equalizer. That's typically the first piece of equalization that the signal goes through when it's in the receiver. And finally, we have what's called a DFE, or decision feedback equalizer. That's usually the last piece of equalization in the receiver that the signal goes through. And the idea is that each piece widens the eye a little bit. And you can see that's what we find happening here. So the eye is the primary way of looking at the quality of your link. But there are also others. The next, probably the most typical one that people like to use, are called bathtub curves. So I'll click on this bathtubs tab here and you can see what those look like. And what these are telling you is the estimate of the bit error ratio at a certain deviation from the center of the eye. So if you think about your clock that is controlling the timing with which you sample in the eye having some uncertainty in its position, right? It can wander left and right. We call that jitter. And if it jitters too far, you can see we start to climb up the error rate curve and our error rate is no longer, you know, somewhere below 10^-12, but starts to climb up to -9, -6, etc. And the further away from the center we go, the higher it gets until finally we're, you know, almost guaranteed to be taking bit errors. Now these are quite wide eyes and these correlate to a very stable link. But sometimes these can get quite narrow with particularly challenging channels.
Zach Peterson: Yeah. So in these bathtub curves, this basically accounts for what, just the skew between the traces in the differential pair, or does it account for random jitter as well as skew due to, let's say, routing through the board?
David Banas: In this particular, in PyBERT we're dealing with a serial channel as opposed to a parallel channel. So there is no skew considered because there's only one bit, if you will. But the noise and the jitter of the active electronic components causes a fair amount of uncertainty in the crossing points of the various bits in the pattern, as you can see here. And so that jitter has a distribution. Let me show that to you. So this is what the jitter distribution of this particular run looks like. And again these are the same four plots in terms of what they represent. This is the channel alone. This is the channel plus the TX equalization. This is the channel plus the TX plus the CTLE. And finally, this is everything. This is the channel plus TX plus CTLE plus DFE. And you can see how the jitter distribution is changing and getting narrower as we move through the various pieces of equalization. And that, in fact, is one of the goals of equalization. One way you achieve the target goal of widening the eye or widening the bathtub curve is by minimizing the jitter. And so what you can see is that these jitter curves, they tend to have this sort of dual-humped nature. But then out here, if you look at the tails, you can see them kind of rolling off in a Gaussian-esque kind of fashion here. And so the way serial link engineers quantify this, they use a standard model called the dual-Dirac model. And what the dual-Dirac model assumes is that you've got two parts to your jitter: a part that's deterministic and a part that is completely random. And the deterministic part is what is responsible for the separation of these two humps. And it has a very definite value. If you measure from the peak of one hump to the peak of the other, that gives you your deterministic jitter. But the random jitter has to be estimated by looking at this tail here and fitting that, finding the best fit of that to a Gaussian tail. And when you do that, what you find is the sigma that would have to be used in the Gaussian in order to match this tail. And it's that sigma that you actually use to extrapolate and estimate down to very low bit error ratios like 10^-12, for instance.
Zach Peterson: And then you have two curves here overlapping. One says data-independent.
David Banas: So what PyBERT does is it averages over several iterations of the bit pattern. And when it does that, what it does is it removes any jitter that is not dependent upon the data pattern. That's the purpose of that averaging. If we have our total jitter and if we then do that averaging, what we're left with is just the data-dependent jitter. And then if we subtract that from the total, of course, we're left with that portion of the jitter that is data-independent. So this is that portion of the jitter distribution that is coming from external noise sources.
Zach Peterson: From looking at these curves you can essentially estimate whether or not that bathtub curve has enough opening on it and whether you need to go further with equalization, just from looking at, you know, the eye diagram. It may not be perfectly clear unless you're able to overlay the mask and then actually, like, take the distribution directly from all these points. I know that, like, scopes will do it and then some other commercial software will do it. Does it calculate those distributions directly from this data that we see here?
David Banas: It might be more accurate to say that both the eye and the bathtubs are representations of the same analysis of the data, or the same data breakdown.
Zach Peterson: Nice.
David Banas: Yeah, they're showing us different things, but they're very tightly related. What they're showing us is very tightly related. Yeah. So, what's happening is, and you can kind of actually see it, I don't know if you can see this point of inflection here in this curve, above it and to the left of it, the curve is actually coming from the same data that we see in the eye diagram. But at this point of inflection where we see this line drop straight down, at this point we are extrapolating based on what we saw in those jitter distributions. Those jitter distribution tails, they matched, they were best fit to some particular sigma of a Gaussian curve. And it's that best-match sigma that is governing the slope of this line right here. So these bathtub curves are kind of a composite of an actual analysis of the eyes combined with a fit to those jitter tails.
Zach Peterson: So in order to get to here, right, you're loading in a Touchstone file, right, with S-parameters, right? Someone could really use this after, you know, simulation in another solver and then extraction of S-parameters, or they could go through and do measurements. They could de-embed their S-parameter for their test structure and then they can put it in here and then check and see how it works with serial links.
David Banas: That's exactly right. And that's actually the point. Yeah. Is to allow someone to open a file that they got, maybe from a measurement house, maybe from an extraction tool, that contains a very accurate frequency domain specification of this channel that they have designed. They load that file in and then PyBERT uses that file instead of its native model here in order to provide the interconnect model, and that's how one would test a new channel design.
Zach Peterson: Yeah, exactly what you said, right? And then this is where, for example, let's say you had maybe Keysight or maybe another simulator, but you know, you could actually take all of your individual S-parameter files for, let's say, a transmission line and some vias, and you could build up this whole interconnect and output a cascaded model and then even take that, put it in here, and then do all the simulations and figure out whether or not it's also going to be compliant.
David Banas: That's exactly right. Yeah. And you would have to do that concatenation outside of PyBERT. PyBERT's too simple to allow you to do that within. That would have to be done in a more powerful tool like ADS or one of its competitors.
Zach Peterson: Yeah. Would you ever consider adding S-parameter cascading in here for forming the interconnect?
David Banas: No, I don't think so. Just because there are already so many tools that do that so well, and we have other sort of development avenues with PyBERT that are more of a systems level kind of thing that people are interested in and wanting to see us undertake. Yeah, we want to try not to reinvent the wheel with PyBERT because it's, you know, it's an evenings and weekends labor of love that the crew does. And so we try to be real, make real judicious use of our time and make sure that when we spend time improving the code base for PyBERT, we're really doing something that a big portion of the community really wants to have available. And I just haven't heard much demand for, you know, S-parameter concatenation to be introduced into PyBERT. It's just too easy to do, either with a tool like ADS or just on your own using the scikit-rf library that's available for Python, for instance. And you can do it in MATLAB as well. So there's lots of different ways that you can get reliable S-parameter concatenation.
Zach Peterson: So you have some other tools as well. I think one of them is PyIBIS-AMI, or PyAMI, for IBIS models.
David Banas: Yeah, that's right. PyIBIS-AMI was written to allow IBIS-AMI model developers to use Python to test and debug and poke at their IBIS-AMI models. It started life as nothing but a very thin wrapper around the AMI DLL, a Python wrapper. And all that did was it allowed you to pull that DLL easily into the Python universe. And the reason that that was powerful, it doesn't sound on the surface like it's a very big deal, but the reason it was powerful is because there's so many libraries available in Python that provide exactly the kind of numerical routines people want to use to test IBIS-AMI models. And before, you know, they were having to write those in C or something. It was very time-consuming. And so if you can get the AMI model into the PyBERT universe, then suddenly you have this rich set of libraries available for you and you can move much faster in your testing. That's why I did that, and then it grew from there and now it does lots of things. The thing we're working on right now is actually full-blown testing of an IBIS-AMI model. So if you want to really poke at an IBIS-AMI model and try and flush out some of the common pathologies that often occur in them, you can use PyIBIS-AMI to do that.
Zach Peterson: Now, well, if you could, you're talking about testing a model, right?
David Banas: Yeah.
Zach Peterson: And if you could just tell our audience a little bit more about what that means and what you're looking for. And generally, when you're testing a simulation, you're actually comparing it to something else. So, elaborate just a little bit.
David Banas: So, this is a model testing report that you get from PyIBIS-AMI that I was speaking of. And so what we're doing here is a couple of things. This is the actual IBIS file for this one. It's a very simple example. This is the results of what we call the golden parser. This is an IBIS parser that is maintained by the IBIS committee and made available freely to the community for doing a very preliminary testing of IBIS models, IBIS or IBIS-AMI. And then what we're doing is we're doing a basic sanity check to make sure we can import it, make sure all the files are in place, make sure the OS doesn't complain that this DLL is a mismatch for its, you know, low-level binary things, like that, just sanity checking things. And then we actually dive into three real tests of the model that kind of flush out very typical pathologies. The first one is comparing... so for those that are unfamiliar with IBIS-AMI, there are really two primary functions that it offers. One is called Init and one is called GetWave. The Init is completely linear. It's kind of equivalent to statistical modeling in serial link simulation tools. GetWave can be linear or nonlinear, and it's more like the time domain or the bit-by-bit mode of running a serial link simulator. And so here what we're doing is we're comparing the two so that the user is alerted to any differences. The reason it looks like there's only one set of curves here is because this model overlaps them perfectly. So you're not seeing the separation between the two in this particular model. Init and GetWave overlap perfectly. And what we're doing here is we're sweeping some parameter of the model. In this case, it's the magnitude of the CTLE peaking, just to see if that, you know, causes any separation between Init and GetWave. Okay, so that's a very clean comparison of Init and GetWave. The other thing where these models often can exhibit pathologies is if you start changing the number of samples per bit that you use to provide their input signal. And so here we're testing that. So you can see we're sweeping through 16, 32 and 64x oversampling and we're just looking for differences. Now in the time domain, when we look at the step and the pulse response over here, we don't see any differences at all, and that's exactly what we want. In the frequency domain, unfortunately, at the high end of the band, there's always some difference that's unavoidable. And the reason is that the aliasing kicks in at different frequencies for the different oversampling rates, because when you change the oversampling rate and you're keeping the bit rate constant, you're necessarily changing the actual vector sampling rate. And when you do that, you move the Nyquist frequency. And when you move the Nyquist frequency, you move the point at which aliasing begins. And that's why you see these little aliasing tails begin at different frequencies. But this is expected and this is normal. And so this again is a very clean comparison. We run through the same sweeps. And then the third pathology that these models can often exhibit is that if you start feeding their GetWave function inputs of different length, they can exhibit different behavior. And this is undesirable. A GetWave function should produce the same output upon recombination no matter how you slice and dice the input. And so that's what we're testing here. This is the length that we've used. These numbers are all chosen at random except for the last two, which are pathological for a reason I won't get into. And what we're doing is we're overlaying all seven of these and we're looking for differences. And what we see here is that there are none. And that's what we want. We want them all to look the same no matter how we slice and dice the inputs. And then the very last thing we check for is we repeat this test for three different kinds of channels: a perfect one, a lossy one, and a reflective one. So this is lossy, here's reflective, and it's all the same other than that. And then finally, the final test we run on a model is we check the linearity of its Init function. The Init function is required to be linear. And so here what we're doing is we're checking that it's linear by running in two ways. We pick some number of channels, we run them independently and then we sum the results. And then the second thing we do is we sum all the channels, we run the model on that sum and we look at that result and we compare those two. And if the Init function is linear, they will be exactly the same, which is what we're seeing here. The reason you don't see a blue trace again is because they're perfectly overlapped.
Zach Peterson: So, this is an area where we may have to get more into the weeds another time.
David Banas: Too far down the rabbit hole.
Zach Peterson: Yeah, for sure. For sure. There's a lot going on there with testing IBIS models.
David Banas: Start talking to me about my tools and I get very excited.
Zach Peterson: No, I mean it's great. You know, this is really great information. And once again, anybody who's interested in learning or at getting access to some of these tools, you know, check out the link in the video description. You'll be able to get access to all the tools on David's GitHub.
David Banas: Better yet, jump in and help out with the development effort.
Zach Peterson: There you go. Right. That's the benefit of putting it all on GitHub. The third tool that you had mentioned, I forget the name, but it was not as intuitive...
David Banas: PyChOpMarg.
Zach Peterson: Okay.
David Banas: Okay. So as part of the Ethernet standard for the last few revisions, there's been an annex in it called COM, COM for channel operating margin. It's a way to more rapidly assess the quality of a serial link. I showed you the old way to do it when I demoed PyBERT, which is to run a simulation and look at the eyes and the bathtubs, but it takes a bit of time to get those simulations run. So the Ethernet standard includes an alternative, which is for more rapid iteration. It's called COM. And COM takes a look at your Touchstone file, for instance, like you were referring to, and it runs some calculations and it estimates how much margin it thinks that that channel will have for a given bit rate and a given set of equalization capabilities.
Zach Peterson: You said for a given bit rate, in terms of data rate, not a bit error rate.
David Banas: That's correct. Yeah. For a certain data rate. Sorry. Yeah.
Zach Peterson: Yeah.
David Banas: And so there's a default implementation of COM that is made available to the public. It's written in MATLAB. And so what my PyChOpMarg package is, it's just a Python alternative to the MATLAB code. And so I've written that and then I've done some work to correlate it against the MATLAB code so that people can trust it.
Zach Peterson: One question I have, because, you know, you're doing this all in Python, is how did you get started doing all of this?
David Banas: Oh, get started in Python.
Zach Peterson: Yeah. I mean, getting started doing all this Python, you know, because I mean there's, you know, it takes a lot of effort to build these tools. And, you know, not every hardware person is a Python expert, or at least good enough to build stuff like this. So I'm just interested.
David Banas: Yeah, it's interesting. Yeah. So I was a MATLAB user, actually, for 20 years. I was introduced to it in grad school, which for me was the early 1990s. I'm old. And I used it in grad school and then I used it for the next 20 years of my career. And then in 2010, 20 years later, I was at Xilinx, and the helm at Xilinx had just changed from Wim Roelandts to Moshe Gavrielov, and Moshe had implemented a fairly aggressive cost-cutting program. And one of the places where Xilinx was bleeding cash was in these MATLAB licenses, because a lot of us had them, and most of us that had them had them tricked out with all kinds of toolboxes. And if you know anything about MATLAB, you know that it can get pretty pricey when you start adding on lots of toolboxes. So they were looking for an alternative, and someone on his team of cost cutters had heard about this Python language and the libraries that it came with, the NumPy and the SciPy, and someone had told him that, you know, this actually is a reasonable alternative, a feasible alternative to MATLAB. So they chose about 5 or 10% of us MATLAB users and they took our licenses away and they said, here, we want you to see if you can get your job done with this Python thing we've heard about instead. Well, I flipped out because I really loved MATLAB. I had been using it for 20 years. You know, I was really good and I could make the thing dance. And they're taking my license away? What? Yeah. So I got really angry and I almost got fired, actually, because I said some things to my manager that nobody should really ever say to a boss. But fortunately, I had a really great manager and it was a real level-headed guy. We liked each other and he knew that I wasn't mad at him, you know, he knew that I was just mad at my bad luck for drawing a short straw. And so, you know, a couple days after my blowup, I apologized and we made up and got on with business and everything was okay. And so then I started learning Python, and I was fortunate because they tried to pair all the beginners up with someone who was at least six months down the Python path, you know, and I actually got paired up with a guy named Mark Marlett, who is an amazing individual, and who had already been doing Python for over a year. So he was well-versed and he's a great teacher and we got along on a personal level really well. And so I had a mentor in Mark that made the experience much more pleasant and much more productive and effective. And about three months into my learning of Python, I was in love and I never looked back. I never missed writing M code. I never wanted to write another line of M code. I mean, Python was just this amazingly constructed language. And I started attending the Bay Area Pythonistas. It's called BayPIGgies, and it's the Bay Area Python group. And in one of the meetings Guido van Rossum came and spoke, you know, about his design philosophy for the language. Guido van Rossum is the creator of Python. And I realized why Python is such a great language. It's because Guido is just such a brilliant, clear-thinking, you know, technical mind, particularly for, you know, understanding what languages should be and what they need to be and how they serve us. And it was really, really a great talk. And yeah, Guido just did a fantastic job with Python. And then the NumPy/SciPy library creators followed right in his footsteps and did an amazing job of giving us a MATLAB replacement. They knew exactly who their audience was, right? They knew it was MATLAB users that were going to want to move into the Python world. And so they gave us these functions whose, in a lot of cases, names and call signatures were exactly the same. So they minimized the burden of our relearning that we had to do in order to get effective quickly with Python as a replacement for MATLAB. So it's been a wonderful journey. 16 years in now, and I just, I still think it's the greatest language ever.
Zach Peterson: Yeah. Okay. That's a really interesting story. I guess all of this was kind of born out of necessity, I guess you could say, right? Because they kind of stole your MATLAB license from you and told you to figure it out, right?
David Banas: Yeah. Yeah. I lived Darwin's theory about, you know, the ones who survive are the ones who adapt. I had no choice. I had to adapt. So, I did. And in the end, it turned out to be a great stroke of luck, which I never saw at first that way, but that is what it ended up being. Now I have this wonderful head start in this language that's, you know, gradually taking over the world. I mean, I think two years ago it was Keysight publicly committed to Python as its new tool control language, and lots of other people are committing to Python in other ways that affect the engineering community. And so yeah, it's worked out really well.
Zach Peterson: Yeah. That's one thing I've noticed, is a lot of the tool control APIs and software that's out there is all Python. And I think it makes a lot of sense because, I mean, it's so easy to take a Python package and integrate it into some kind of custom application without having to, you know, go through whatever. I guess I should say without having to use, you know, the scripts and download it as they are. You know, you can just kind of pull functions out as you need them and build something totally custom, which is one of the things I always thought was really cool about Python.
David Banas: Yeah. And the other great thing is that we're moving away from this era where each tool had its own proprietary, you know, like Cadence has SKILL, Keysight has AEL, and they're totally proprietary and they're different. And so, you know, engineers who use a variety of tools or move around have to constantly relearn their tool control language. And, you know, now that's ending, because now everybody is sort of, you know, settling on Python, which is open, and, you know, now it'll be the same.
Zach Peterson: Yeah, I think it's going to be a pretty wonderful thing, actually. It's so easy to generate Python code with AI. So you can always control all this stuff.
David Banas: Yeah, Claude is pretty amazing. I can't believe the quality of the code it's putting out. I'm old, so I'm still a little skeptical. You know, I don't want to trust it. I don't want to go too far out on the limb of trusting it because I may have to debug code I don't understand six months from now. But I've been playing with it and it's pretty impressive, I got to say.
Zach Peterson: Yeah. Sometime around the end of last year, beginning of this year, it really, really got good, I've noticed. So, yeah. It's going to be interesting to see where it goes next. And I guess speaking of where things go next, what's your vision for the packages that you've built and where do you see them going next in terms of, you know, features, functionality, applicability?
David Banas: So, PyBERT will attempt to keep pace with the Ethernet standard as it evolves. That's our target. Last year we just made a major update to bring it up to the 802.3dj edition, which is scheduled for ratification a few months from now. That change made some fairly significant architectural changes to the reference receiver that's used in COM, and so we wanted to keep pace with that, so we'll continue to do that. We'll continue to keep an eye on the Ethernet standard to make sure that we're keeping PyBERT up to snuff with that.
Zach Peterson: When you say the reference receiver, you're talking about the built-in model at the RX side.
David Banas: That's right. Making sure that it has all of the architectural elements that it needs to keep up with the Ethernet standard. The most recent one, which is scheduled for ratification soon, is adding a very large feed-forward equalizer to the RX architecture, which was never there before. And so we needed to work that in. And then the other thing, of course, it's adding is maximum likelihood sequence estimation. So we very recently added a Viterbi decoder to the native RX model in PyBERT so that people can start working with and learning about how MLSE works as an alternative to, you know, standard slicing, symbol selection, because that'll get important now that the standard is emphasizing it. You know, it'll show up on more bullet lists that designers have to accommodate. We want to make sure that the tool is, you know, capable of helping people learn and come up to speed quickly with it. And then the PyChOpMarg, of course, will just attempt to stay in sync with the MATLAB COM implementation so that people can make a choice without, you know, risking getting different results. So we'll continually check the correlation of the two and make whatever adjustments we have to. The third one, the PyIBIS-AMI, that will be driven by the IBIS standard as it evolves. They just recently approved a change to it which brought in some very new and some very comprehensive testing mechanics. And so pretty soon now, we're going to want to do a code revision that accommodates and mimics those test mechanics so that people that are using PyIBIS-AMI can do so in a way that is consistent with the actual IBIS specification.
Zach Peterson: Well, you know, as all of this evolves and you continue to build these packages and keep them running, we'd love to have you come back on and talk about this some more.
David Banas: Thank you. Thank you. I appreciate that very much and I'd love to.
David Banas: So this is, I call this collage the faces of PyBERT. These are the individuals who have made the most significant contributions. And if you're familiar with the community, you recognize a few of these shots as, you know, industry heavy hitters. There's my Xilinx mentor Mark Marlett that I spoke of. This guy on my right, this is David Patterson. And he is my chief co-developer and my designated BDFL if I die for the project. He's the only other human on the planet that has write access to my main GitHub archive for this project. Everyone else has to work from their own fork. And actually David does too, just because it's good discipline. But in case I get hit by a bus tomorrow, David can take complete control over the GitHub archive so that it continues without any glitches. Thanks for letting me show this. I really wanted to just give credit to these folks because they've done some incredible work.
Zach Peterson: Absolutely. We also see Yuriy Shlepnev here, who folks will know from other podcast episodes. So yeah, we've got some heavy hitters in here. Thank you so much for showing this. And of course, yeah, these folks definitely deserve some recognition. So yeah, glad you got this on screen so we could see it.
David Banas: Thanks a lot, Zach. Appreciate it.
Zach Peterson: To everyone that's out there watching, we have been talking with David Banas, solutions engineer at Keysight. If you're watching on YouTube, make sure to hit the like button, hit the subscribe button. You'll be able to keep up with all of our podcast episodes and tutorials as they come out. And last but not least, don't stop learning, stay on track, and we'll see you next time. Thanks, everybody.