register

Previously, we built a latch that could store one bit of data. We’ve also seen how a trap trap can store a bit by trapping a marble.

Most computers need to store more than a single bit of data[citation needed]. Therefore we need a good way to store multiple bits.

00/0000/00
loading…

static looped register

This register stores 8 bits (1 byte) by cycling them in a loop.

definition

A register is a small, temporary piece of memory.

As we stream in marble from a reservoir, it reads each bit from the register, “cloning” the data in the register on a loop.

Usually we think of memory as something that stays in place, but with it’s often easier to keep our memory flowing in a loop. This way, we don’t have to physically move the memory when we want to read it — we can just wait until the right time to read it. In this case, we need to make sure we’re reading the register at the start of its 8-step loop.

dynamic registers

As with our first latch, this register is read-only — once we’ve set it, we can’t change it. We’d like a way to write new values into the register. To accomplish this, there’s another device we’ll need to build first.

continue