Part 04 / 06 1945 → 1946

The Program Moves Inside

ENIAC calculated a thousand times faster than anything before it, but changing its job meant days of plugging cables, until a new blueprint kept the program in memory instead.

4 sections 2 interactives
§ 4.1

ENIAC: The Dawn of the Digital Age

In 1946, just after World War II, the world was introduced to ENIAC (Electronic Numerical Integrator and Computer), built by a team led by J. Presper Eckert and John Mauchly at the University of Pennsylvania. It is widely regarded as the first general-purpose electronic digital computer, and it was an absolute monster. ENIAC filled a room measuring about 30 by 50 feet, weighed 30 tons, and used around 18,000 glowing .

A popular legend

ENIAC consumed so much power, the story goes, that it dimmed the lights of Philadelphia whenever it was switched on.

But how did you “use” a machine like this? Forget about keyboards or mice; they hadn’t been invented yet. Programming ENIAC was a demanding physical task. It looked like a giant telephone switchboard, and operators had to manually set thousands of switches and physically plug and unplug hundreds of thick black cables into different sockets to route the data.

While this could take days for a single new program, once set up, ENIAC’s pure electrical speed was breathtaking. It could perform calculations around a thousand times faster than earlier machines, completing in minutes tasks that used to take teams of human “computers” weeks.

§ 4.2 · interactive

Try it: program ENIAC with cables

Here are four of ENIAC’s units. A card reader feeds in the numbers, an accumulator adds, a multiplier multiplies, and a card punch records the answers. The cables between them decide where the numbers go next, so on ENIAC the cables are the program.

Try it

Program ENIAC with cables

Choose a job. Plug cables from OUT sockets into IN sockets so the numbers pass through the right units in the right order, then press Run ENIAC. When it works, choose another job and rewire.

The jobAdd up 3, 4, 5, 6, 7 and 8. Expected result: 33 The cards hold 3, 4, 5, 6, 7, 8.

Card reader reads the numbers off punched cards
Accumulator adds up every number it receives
Multiplier multiplies each pair of numbers
Card punch punches the answers onto cards

Press a socket marked OUT, then a socket marked IN, to plug in a cable. Press a plugged socket to pull its cable out.

The real ENIAC had about forty panels, and a program could need hundreds of cables and thousands of switch settings. Its operators planned each one on paper first, then spent days at the panels.

A much simplified ENIAC. Run times use its real speed: about 5,000 additions or 360 multiplications a second.

Now imagine hundreds of cables instead of a handful, and thousands of switches, all to be checked again for every new problem.

§ 4.3

Von Neumann’s Master Blueprint

ENIAC was incredibly fast, but manually plugging in cables to change its instructions took days. Even before it was finished, its designers were already working on a better way. Brilliant mathematician John von Neumann joined their discussions, and in 1945 he wrote up a master blueprint for a new kind of machine where the instructions — the program itself — were stored electronically in the computer’s memory right alongside the data.

This “” concept meant you could change what the computer did simply by loading a new program. Known today as the von Neumann architecture (although it grew out of teamwork with Eckert and Mauchly), this elegant design — a central processor, memory, and input/output — remains the basic blueprint of most computers, smartphones, and smartwatches in the world today.

§ 4.4 · interactive

Try it: watch a stored program run

A stored-program computer repeats three steps, over and over. Fetch: read the next instruction from memory; a small counter, the program counter, remembers where that is. Decode: work out what the instruction means. Execute: do it, then move on to the next one. Numbers and instructions travel between the processor and memory along a shared path called the bus.

Try it

Watch a stored program run

Press Step to go through fetch, decode and execute one stage at a time, or press Run. Then load a different program: nothing is rewired, only what is stored in memory changes.

Load a program into memory
Processor
Control unit
Program counter0
Instruction–
Arithmetic unit
Accumulator0
Operation–
Output–
Memory
  1. 0LOAD 5instr.
  2. 1ADD 6instr.
  3. 2STORE 7instr.
  4. 3OUTinstr.
  5. 4HALTinstr.
  6. 57data
  7. 65data
  8. 70result
  1. Fetch
  2. Decode
  3. Execute

The program and its data are already in memory, side by side. The program counter starts at address 0.

Data in memory
Address 5 7
Address 6 5

After J. von Neumann, “First Draft of a Report on the EDVAC”, 1945. A simplified machine with one accumulator and eight memory cells.

The program now lived inside the machine. The machines themselves were still hot, fragile giants, and making them small would take a new kind of switch.

Sources for this part

ENIAC

John von Neumann and the stored program

Series The Machine That Changed Everything
Menu

Gears & Signals · Static site · No trackers