News for hackers. Stuff that matters.
Re:The 100 MHz 6502 by ryanianian on Wednesday October 13, 2021 @01:36PM (#28855044)
> The idea of implementing a CPU core inside an FPGA is not new, of course.

Indeed. I took a computer engineering class in undergrad. The capstone project was implementing from scratch a multi-pipeline RISC CPU (including the ALU and a very basic L1 cache) in Verilog that we flashed to FPGAs that we then programmed to play checkers using hand-compiled C. The FPGA was easier to flash and debug than the Spartan-6 mentioned in TFA but was significantly more expensive as well.

It was a brutal class, but it totally demystified computers and the whole industry in a way that made me feel like I really could understand the "whole" stack. Nothing scares me any more, and I no longer fear "magic" in software or hardware.

Re:The 100 MHz 6502 by jwineinger on Wednesday October 13, 2021 @05:15PM (#28857825)
I had a similar course, using VHDL going on to Spartan-3E kits (which I still have sitting in a box 14 years later). Our professor gave us three C programs -- with the input that would be entered and expected output -- and we had to implement everything to make it work: CPU, VGA output (with "font" definition), keyboard input, and translation of the C programs to our CPU's instruction set.

That was a difficult yet extremely rewarding class. My wife, then girlfriend, still remembers that semester because she barely saw me.

IIRC, bonus points were given to the team with the highest clock speed. I didn't win, but I seem to remember mine being somewhere in the 18MHz range and the winner in the low to mid 20s.

Re:The 100 MHz 6502 by plandis on Wednesday October 13, 2021 @02:21PM (#28855555)
> Nothing scares me any more, and I no longer fear "magic" in software or hardware.

You sound exactly like my professor for computer architecture. “Computers are not magic!” He mentioned this at least once during every lecture and my experience was similar to yours

Re:The 100 MHz 6502 by chronolitus on Wednesday October 13, 2021 @06:04PM (#28858239)
Sufficiently expert wizards would probably go around saying "Magic is not magic!"
Re:The 100 MHz 6502 by FPGAhacker on Wednesday October 13, 2021 @04:22PM (#28857194)
It really depends on how many steps down the ladder of abstraction you go. Computers are still magic if you step down a few more rungs.
Re:The 100 MHz 6502 by pjmorris on Wednesday October 13, 2021 @07:07PM (#28858678)
Clarke's Third Law: Any sufficiently advanced technology is indistinguishable from magic. [0]

[0] Profiles of the Future, Arthur C. Clarke

Re:The 100 MHz 6502 by Teongot on Thursday October 14, 2021 @06:57AM (#28862682)
The corollary to that is, of course, that any technology which is distinguishable from magic is insufficiently advanced
Re:The 100 MHz 6502 by picture on Wednesday October 13, 2021 @05:16PM (#28857836)
Down to the physics of FETs and the underlying chemistry? How much further doe it go?
Re:The 100 MHz 6502 by Cyph0n on Wednesday October 13, 2021 @06:47PM (#28858535)
Quantum effects, particle physics, and then the unknown (for now).
Re:The 100 MHz 6502 by baq on Thursday October 14, 2021 @04:22AM (#28861750)
10, 7 and 5 nm patterning and EUV light sources are basically magic.
Re:The 100 MHz 6502 by Dylan16807 on Wednesday October 13, 2021 @07:29PM (#28858805)
I'd say the field effects on electrical flow are probably the weirdest part to look at, and they don't reach 'magic' levels.

The atoms below that are relatively straightforward, and them being made up of building blocks is fine I guess, increasingly irrelevant to the issue of a computer.

And going up everything starts to get very non-magical as you turn response curves into binary signals and then string gates together.

Re:The 100 MHz 6502 by ngcc_hk on Wednesday October 13, 2021 @08:27PM (#28859192)
Qm is still magical as you sort of use it but do not really understand it. It is so weird. And that is magically part.

Btw I read your below word as above.

Re:The 100 MHz 6502 by Dylan16807 on Wednesday October 13, 2021 @09:42PM (#28859641)
It's such a narrow sliver of quantum effects that are relevant here, though, and it's not the weird stuff.
Re:The 100 MHz 6502 by ZeikJT on Thursday October 14, 2021 @02:03PM (#28867733)
Quantum tunneling is a step into weird.
Re:The 100 MHz 6502 by Dylan16807 on Thursday October 14, 2021 @02:28PM (#28868042)
You don't need tunneling to make a transistor work.

(And for difficulty making walls too thin lest electrons leak through, you don't need to invoke tunneling to explain that.)

Re:The 100 MHz 6502 by fsckboy on Wednesday October 13, 2021 @10:34PM (#28859939)
i think amplified current flow through bipolar junction collector depletion zones are the weirdest part, and they are magic.
Re:The 100 MHz 6502 by erosenbe0 on Wednesday October 13, 2021 @11:33PM (#28860233)
Yeah for me it is the parasitic bjt/collector that forms in a fet (c.f. latch up). Also that bjts work in reverse active to some extent, despite the emitter nominally being the injector of the carriers. Weird!

Also I never understood things like slew rates, noise, gain bandwidth. Too high up the stack.

Re:The 100 MHz 6502 by dan_hawkins on Thursday October 14, 2021 @09:12AM (#28863786)
Gain bandwidth is directly related with slew rate. Slew rate is mostly an effect of capacitances (gate capacitance in FETs for example.) Noise is mostly caused by thermal effects (atoms bumping randomly.)
Re:The 100 MHz 6502 by tuatoru on Wednesday October 13, 2021 @08:33PM (#28859231)
At the third to bottom rung, all electronics are analog.
Re:The 100 MHz 6502 by Salgat on Thursday October 14, 2021 @10:34PM (#28873469)
Ironically computers are as close to magic as you can think of. It's literally a mechanical creature that you control with written spells.
Re:The 100 MHz 6502 by RhysU on Sunday October 17, 2021 @09:03AM (#28896158)
And the public raises pitchforks when one person in a castle controls too many of those mechanical creatures at once.
Re:The 100 MHz 6502 by WizardOfLight on Wednesday October 13, 2021 @07:25PM (#28858784)
Re:The 100 MHz 6502 by mayli on Wednesday October 13, 2021 @02:06PM (#28855416)
full stack engineer vs "whole" stack engineer.
Re:The 100 MHz 6502 by tomxor on Wednesday October 13, 2021 @05:59PM (#28858205)
There's also adjacent stacks... like being able to build your own computer out of crabs and rocks if you get stranded on a desert island. So that you can get them to write SOS in the sand and play pong while you wait.
Re:The 100 MHz 6502 by ultimape on Thursday October 14, 2021 @06:02PM (#28870775)
Unconventional computing platforms FTW. https://phys.org/news/2012-04-scientists-crab-powered.html
Re:The 100 MHz 6502 by garfieldnate on Thursday October 14, 2021 @12:49PM (#28866706)
Are there any resources online that would let me do a similarly deep study myself? I'm enjoying the famous "Nand to Tetris" course, but it uses a simplified architecture (no pipelining, no cache, no interrupts) and runs in an emulator instead of an FPGA.
Re:The 100 MHz 6502 by erosenbe0 on Wednesday October 13, 2021 @11:20PM (#28860181)
Awesome Base to start with! Lot of things in the next step though: PCIE, JTAG, differential signaling protocols, debuggers/monitors, UEFI firmware, cache coherency, TPM type modules, linkers, loaders, vector instruction sets, sound codecs, DACs, GPUs, multi channel SDRAM, MMUs, display protocols, device trees. Plus latency, throughout, and thermal management in any of the above in a real system.
Re:The 100 MHz 6502 by vvanders on Wednesday October 13, 2021 @09:35PM (#28859595)
As someone who started pretty high up the stack(Visual Basic!) and kept peeling layers away out of curiosity I will say working with a CPLD/FPGA was really eye-opening. Latency difference between SRAM/DRAM and the "why" in pipelining made a bunch of disjointed approaches to optimization just drop into place.
Re:The 100 MHz 6502 by necovek on Sunday October 17, 2021 @10:23AM (#28896662)
Nostalgia is high with this one :D

I've started with gwbasic, then QBasic and moved up to "Visual Basic for DOS" (ncurses-style UI stuff, similar to Turbo Pascal iirc — I don't think many people even knew it existed since Win 3.11 was already big, but I loathed it and only switched to it because of... Trumpet Winsock for the internet!), but that did not stop me from playing with driving serial (COM) ports or parallel ports (LPT) with printer escape sequences. Not really FPGA level low (not even close), but DOS-based stuff was really easy to start hacking up!

Re:The 100 MHz 6502 by moritonal on Wednesday October 13, 2021 @06:58PM (#28858623)
Yep, not nearly as hardcore, but writing a TCP stack changed how I saw the Internet.
Re:The 100 MHz 6502 by adamgordonbell on Wednesday October 13, 2021 @09:06PM (#28859426)
Wow, that sounds like an amazing experience. Challenging though I bet.