Linked by Thom Holwerda on Sat 7th Sep 2013 09:54 UTC
Hardware, Embedded Systems

The 8-bit Z-80 processor is famed for use in many early personal computers such the Osborne 1, TRS-80, and Sinclair ZX Spectrum, and it is still used in embedded systems and TI graphing calculators. I had always assumed that the ALU (arithmetic-logic unit) in the Z-80 was 8 bits wide, like just about every other 8-bit processor. But while reverse-engineering the Z-80, I was shocked to discover the ALU is only 4 bits wide! The founders of Zilog mentioned the 4-bit ALU in a very interesting discussion at the Computer History Museum, so it's not exactly a secret, but it's not well-known either.

I have been reverse-engineering the Z-80 processor using images from the Visual 6502 team. The image below shows the overall structure of the Z-80 chip and the location of the ALU. The remainder of this article dives into the details of the ALU: its architecture, how it works, and exactly how it is implemented.

Ken Shirrif's blog is an absolute must for fans of ultra-low-level hardware stuff. This goes way over my head, but interesting nonetheless.

Thread beginning with comment 571743
To view parent comment, click here.
To read all comments associated with this story, please click here.
Member since:

To software engineers, the "bitness" is defined by the ISA, and is nearly always the width of operational data registers (registers that can be added, multiplied, etc).

To hardware engineers, the bitness is defined by the width of the ALU. The 68000 was the classical case - it had a 32-bit architecture, but the ALU was only 16 bits wide. It was commonly noted as a 16/32 bit processor. At the time, hardware engineers had more sway in computers, so the 68000 was in most books as a 16 bit processor, along with the 8086.

This new info on the Z80 would have had most engineers of the time calling it a 4-bit CPU, so it's no wonder Zilog kept this quiet. They were competing in the 8-bit CPU market, and being called a 4-bit processor, or at best a 4/8 bit processor would have meant death in the marketplace.

Reply Parent Score: 3

DeepThought Member since:

The best explanation I read/heard so far.

Reply Parent Score: 2