Skip to content
Tactiverge

Learning Rooms/△ Level 2 · Builder/Computing and algorithms

How Computers Calculate - the ALU: Crash Course Computer Science #5

CrashCourse · Length: see YouTube · captions on YouTube · nothing loads until you press play

By the end you can…

  • Write the truth tables of a half adder and a full adder.
  • Derive S = A ⊕ B ⊕ Cin and Cout = A·B + Cin·(A ⊕ B).
  • Explain how full adders chain to add multi-bit numbers.
?Predict▶Watch✓Practise⚙Build

Watch it all: no segment has been checked by hand for this video yet.

1.Predict before you press play

Adding one column of binary, the inputs are A = 1, B = 1 and a carry in of 1. What do you write, and what do you carry?

Pick one before you press play. A wrong guess is fine: it is what makes the video stick.

2.See the idea first

Play with this diagram for a minute. It gives you something to hang the video on.

Loading the interactive…

Can't use the diagram? Read a description instead

The adder stepper shows two 4-bit numbers as rows of bit buttons and reveals one column at a time from the right, giving each column's carry in, sum and carry out. Adding 0111 and 0001, the carry ripples through three columns to give 1000. The full adder table for A B Cin from 000 to 111 is Cout S = 00, 01, 01, 10, 01, 10, 10, 11.

3.Watch, actively

Builds half and full adders from gates, chains them into a ripple-carry adder and explains overflow.

Length: see YouTube · captions on YouTube · source

Nothing loads from YouTube until you press play.

Watch for…

  • → Watch the half adder being drawn from an XOR and an AND, then two half adders and an OR becoming a full adder.

Pause whenever you like. Rewatching a hard minute is a good habit, not a failure.

Can't stream it? Read the idea instead

A half adder adds two bits with an XOR (the sum) and an AND (the carry). Two half adders and an OR make a full adder that also accepts a carry in, and a chain of full adders adds whole binary numbers; a carry out of the last one means overflow.

What the video covers (our own note, written when we verified it): Builds half and full adders from gates, chains them into a ripple-carry adder and explains overflow.

Written by Tactiverge in our own words, not a transcript. The full lesson below explains the idea without the video.

Jot down one thing that surprised you and one question you still have.

Private: saved only on this device, never sent to Tactiverge.

4.Practise what you just saw

These come from the lesson that use this video and are checked on the server. Wrong answers get a hint and another try.

Practice 1

A full adder's sum output S is 1 exactly when…

Practice 2 · a fresh version every time

With A = 1, B = 0 and C = 0, what is Y = (C ⊕ B) ⊕ A? Answer 0 or 1.

Practice 3 · a fresh version every time

An unsigned 8-bit register adds 01110011 + 00001101. What value does the register hold afterwards, in decimal? (Any carry out of the top bit is lost.)

Practice 4

How many full adders does an 8-bit ripple-carry adder use (one per column)?

adders

6.Build something with it

Follow-up project

Build a full adder in the logic lab (the 'Full adder' preset is a model answer, so try it from scratch first) and check all eight rows against your table. Then explain in two sentences why the carry out is the majority function from week 15.

Where this video lives

In the course catalogue: ARCH-220 Digital logic and binary arithmetic

The video is by CrashCourse, embedded from YouTube with privacy-enhanced mode and never autoplayed. The room around it (prompts, notes, practice, projects) is Tactiverge's, written with AI assistance and checked by automated tests only.