A few months ago, a tweet by [Ken Shirriff] asking about simple digital simulators caught my attention. The topic came up again in May when a repair video by [CuriousMarc] featured one such simulator called Logisim-evolution. It made me want to take a fresh look on what’s out there and which features set the different simulators apart.
So today, let’s take a quick survey of a few such simulators that I found. I’m focusing on plain logic simulators, analyzing ones and zeros using Boolean logic. They are not doing SPICE-like analog analysis of transistor logic gates, but they’re still quite handy for proofing out designs.
Continue reading “Survey Of Simple Logic Simulators”
We wish we had met [Mr. Mueller] when we were in high school. After 20 years as a digital design engineer, he decided to teach a digital electronics class at the high school level at LASA high school in Austin, Texas. He’s been doing it for seven years and has made his course material available via Google Docs.
Don’t let the high school level fool you. Topics range from simple electronics to Spice. There’s coverage of discrete devices, oscilloscopes, and Arduinos. There’s plenty of digital logic, of course, and a simple 16-bit microprocessor, too. There are labs for FPGAs using Verilog and talks about ARM. It’s pretty comprehensive and we wonder if they can really cram all this into a single school year. One thing we saw that caught our eye was the simulation of a transistor using Play-Doh. Turns out it isn’t an electrical simulation, but a simulation of how photolithography creates transistors. Still good stuff.
This would be great for teaching students of pretty much any age, even if you took only parts of it. It would also be worthwhile for self-study. We know how much work it takes to put something like this together, and we can’t commend [Mr. Mueller] and the LASA high school enough for making it available to everyone.
There is more and more course material out there at all levels and we think that’s a great thing. If you need something for a younger set, try a blindfold.
Imagine a robot with an all-around bump sensor. The response to the bump sensor activating depends on the previous state of the robot. If it had been going forward, a bump will send it backwards and vice versa. This robot exhibits behavior that is easy to model as a state machine. That is, the outputs of the machine (motor drive) depend not only on the inputs (the bump sensor) but also on the current state of the machine (going forward or backward).
As state machines go, that’s not an especially complicated one. Many state machines have lots of states with complex conditions. For example, consider a phone switchboard. The reaction to a phone going off hook depends on the state of the line. If the state is ringing, picking up the phone makes a connection. If the state is idle, the phone gets a dial tone. The switchboard also has to have states for timeouts, connection failures, three way calling, and more.
If you master state machines your design and debug cycles will both move along faster. Part of this is understanding and part is knowing about the tools you can choose to use. I’ll cover both below.
Continue reading “Becoming A State Machine Design Mastermind”
Late last week, we saw a rather clever combination lock build that used only a single 74xx logic chip. [J. Peterson] read this post, and in a battle royale of geek one upmanship sent us a write up of the logic chip computer he built nearly 30 years ago at the University of Utah.
Around 1982 or 1983, [J. Peterson] took the Digital Hardware Lab at the University of Utah. The class was split into two semesters; during the fall semester, students would build a four digit, stack-based calculator that could add and subtract. That may sound easy, but everything – including reading the keyboard, multiplexing LEDs, and performing the mathematical operations – was done with gates and latches.
After Christmas break, the poor souls who had just finished their calculator were presented with another challenge due in four short months. The calculator built during the fall would turn into a full-blown computer, functionally similar to a PDP-8.
After months of work, and seeing the 70 people who showed up on the first day of class in September dwindle down to a handful in late April, [J. Peterson]’s computer was complete. The test program ran through a couple iterations, and the computer was immediately disassembled.
An awesome tale of digital design from only a generation ago. And you thought Verilog was hard.