In entry 9, we designed a first version of a 4 bit register. Looking at the architecture of a simple CPU shows that registers are connected to an internal data bus.
Bus
Grok: A bus in electronics and computing is a set of shared electrical pathways (wires or traces) that multiple devices use to communicate data, addresses, or control signals within a system. Think of it as a highway where different components—like the CPU, memory, or registers—take turns sending or receiving information. It’s a key concept in a microprocessor. Let’s break it down.
What Is a Bus?
- Definition: A collection of parallel conductors (wires) that carry signals between components.
- Purpose: Simplifies connections—instead of wiring every device to every other device, they all connect to the bus and share it.
- Analogy: A bus is like a phone party line—everyone’s on the same line, but only one talks at a time.
Types of Buses
- Data Bus:
- Carries actual data (e.g., your 4-bit binary numbers).
- Width: Number of bits it handles at once.
- Bidirectional: Data flows both ways (e.g., memory to CPU or CPU to memory).
- Address Bus:
- Control Bus:
How a Bus Works
- Shared Lines: All devices connect to the same wires (e.g., 4 wires for a 4-bit data bus).
- Turn-Taking: Only one device drives the bus at a time to avoid conflicts (e.g., two devices outputting 0 and 1 simultaneously).
- Tri-State Outputs:
- Drive the bus (0 or 1) when enabled.
- Disconnect (Z) when not their turn, letting others take over.
-end-
Here is a nice picture of SAP-1, Simple as possible-1 "computer".
Register and Bus
The next question is how to "connect" my register to a bus. Groks curated answer:
No comments:
Post a Comment