1,068 karma · joined June 21, 2011
A little nitpick: > И indicates a digital circuit, while ИЕ is a counter
digital circuits were not only [И-], this prefix means arithmetic and register-based circuits. Because there were a lot more “digital” circuits starting with [Л-] (L- means Logic), [A-] for transmission gates and bus arbiters. [B-] for microprocessors and related stuff, [Р-] for memory, etc... The almost complete list can be found here: https://electronics.fandom.com/ru/wiki/%D0%9E%D0%B1%D0%BE%D0...
Wait! You can’t benchmark on a CPU with unpredictable speed and mix of slow and fast cores. All kinds of effects come into play here, and the code itself is not the most prominent among them.
To measure which _code_ is better, you should use real SMP machine with fixed clock speed and turned off HT. On the machine from TFA you are just fighting with Intel’s thermal smarts and OS scheduling shenanigans. (edit: you can use the same machine, but configure it in BIOS. I, myself, use i9-12900k fixed to 5ghz@8P-cores as "Intel testing machine")
As a “petrolhead” this instantly triggered me: most cars won’t redline at 100mph, actually they won’t even break a sweat (at like 2.5krpm, when redline starts at 5-8krpm depending on engine type and model). Redlining is _accelerating_ too fast, not _driving_ (this means you cannot “redline” indefinitely long, only for short bursts, even if you are a racing or overly aggressive driver).
Of course FSB has a backdoor to *data* collected by Yandex, but the code itself (as well as coders) have nothing to do with any three-letter-agency within Russia.
Though, I did it in a 2U optical cross box. I paid $30 for it, and replaced some panels with fans and grilles. Not 200 euros, holy moly!
The best solution always lies somewhere in the middle. But finding this “middle” (and adhering to this approach) is the hard part.
That was my impression some time ago.
But last week I attempted to compile a couple of (not very big) tools from cargo. And it ended up downloading hundreds of dependencies and gigabytes of packages.
Looks like node_modules.jpg all over again :(
But it is nice to have this tool with more functionality on all platforms in unified way!
You should put a couple of inverters after the 555 timer to make signal fronts sharper. I recommend 74als series (older, bjt, easier to work with), or 74hct (more modern, mosfet-based, ttl-compatible). We even tried some 74act parts, but these are not designed for breadboards ;)
Though Ben Eater’s work is overall great and very instructive. You should follow his recommendations on breadboarding (board models, wires and stuff), they are stellar.
The hardest part, as usual in electronics, is contact quality, be careful diligent. For Nibbler we used around 5-6 breadboards.
P.S.: it was hard to source ALU. I scoured ebay for weeks and got some for exorbitant price + shipping. Then I found one factory in Belarus that still makes 74als181 (кр1533ип3 in cyrillic) chips in narrow dip packaging. I ordered a small box of these ;) It was cheaper than a single 74hc chip from eBay.
All the logic remaining are bus arbiters and IO access. You can replace 74-181 with one more rom though, but it will not decrease chip count...
EDIT: actually if you replace 74*181 with rom, you can get rid of NZERO flag detection gates (minus 1 chip)...
It was a very fun experience. And we liked the project very much.
It has a very small and concise schematics which makes it very easy and clear how CPU really works.
P.S.: the original simulator is written in C++/CLI (a .net flavour of c++), so I decided to refresh the project (to c#, it was easier to translate than to port to native c++), and added a real 1602-display simulator which looks nicer and support a “graphic” mode. You can play with it here https://github.com/omgtehlion/nibbler-sim
4-lane PCIe, as most nvme drives are. I havent seen drives with wider lanes though...
↑ this one does support gen3. Anyhow, with 4x@gen2 you’ll be fine at 10G speeds (I checked). Gen3 is strictly needed only if you want 2 (or 4) ports, or 25G...
Network cards: intel, mellanox, solarflare. Intel has a lot of drivers for all OSes, mellanox is most stable electrically (you can provide it with separate power, no need for fancy adapters, just plug any 12v in), solarflare is cheapest on ebay if you buy 2-3-generations old cards. Actually, any 10G network card will do, just check if they have drivers for your OS.
Thunderbolt: there are ready-made eGPU cases, they are costly but easier to handle. If you want to be cheap: wait for sale of any thunderbolt3-to-nvme adapter. PCBs for all of them are made by the same factory (you can find it on alibaba/taobao) they differ only by box and branding. Based on intel JHL6340
edit: I have got this, it was on-sale at the time https://www.aliexpress.com/item/4000200151507.html
edit2: just checked eBay, the cheapest solarflare "S7120" (it is SFN7022F actually) is $15 (!) + free shipping, wow. Though you'll need some sfps, they start from $6 (FTLX8571)