UPI Study › Courses › Introduction to Operating Systems › Free lessons › Lesson 5.3 Free with a free account
The System Bus
Introduction to Operating Systems · Chapter 5: Peripheral Devices and I/O SystemsSection 5.3 · lesson 38 of 837 min · free with a free account
Free preview
Create a free account to keep watching
It takes a minute and costs nothing. Your free account unlocks all of Chapter 1 and 3 more lessons of Introduction to Operating Systems.
Lesson complete
Earn the 3 college credits for Introduction to Operating Systems
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: Classifying Peripheral Devices →← Parts of an Information SystemNext lesson: Classifying Peripheral Devices →
A free account plays all of Chapter 1 and 3 more lessons of Introduction to Operating Systems. Create a free account →
In this lesson
How address, data and control lines connect the CPU, memory and devices.
- Identify the jobs of the address, data and control lines
- Trace the steps of a memory read over the system bus
- Calculate addressable memory from the number of address lines
- Explain how data bus width and bus sharing affect speed
Free study notes
Get this lesson's notes by email
The key points and 4 practice questions with answers, in your inbox. One email, free.
One email. Unsubscribe in one click.
Transcript
Everything said in the video, section by section (909 words). Read along, or search it.
Opening Scene
A Highway With Three Lanes
Sam, who runs a small online bakery, scans a bag of flour at the counter. In a blink, the laptop's processor asks memory for the price, wakes the receipt printer, and tells the screen to update. Those parts sit on different chips, yet they talk fast, and rarely get confused. The secret is a shared set of wires, a kind of highway with three lanes. What are the lanes, and what limits them?
Definition
Shared Wires for All
A bus is a set of wires that carries signals between the parts of a computer. The system bus is the main one. It joins the processor, main memory, and the input and output devices. The name is a good picture. Many passengers share one route, and each takes a turn. It comes from the Latin omnibus, meaning for all. Each wire carries one bit: a signal that's either low, a zero, or high, a one. Eight wires side by side carry eight bits at the same moment.
Three Groups
Address, Data and Control Lines
The system bus is really three groups of wires, and each group has its own job. The address bus says where. It carries the number of the memory location, or device, that the processor wants to reach. The data bus carries what: the actual value being read or written. And the control bus says what to do, and when: signals like read, write, this device is ready, and the clock tick that keeps everyone in step. An easy way to remember them: where, what, and how.
Step by Step
One Memory Read on the Bus
Here's one read, step by step. Suppose the processor wants the price stored at memory location four thousand. First, it places the number four thousand on the address lines. Second, it raises a memory read signal on the control lines. Third, memory notices, finds location four thousand, and puts its value on the data lines. Fourth, the processor copies the value from the data lines, then lowers the read signal. The order matters: it never reads the data lines before memory has had time to answer.
Quick Check
Which Lines Carry Six Hundred
Quick check. Sam's order program has just added up a total: twenty-five dollars. The processor must write the value twenty-five into memory cell six hundred. On which lines does the number six hundred travel? Pause, and decide. The address lines. Six hundred is where the value goes, so it's an address. The data lines carry the twenty-five itself, the what. They're tempting, because six hundred is a number too. But on a bus, every signal is a number. The job decides the lane. And the control lines carry the write command.
Address Width
Each Line Doubles the Addresses
Now, the limits. The number of lines in a group is called its width. Each address line carries one bit, and every extra bit doubles the number of different addresses. One line gives two addresses. Two lines give four. Three give eight. With n lines, there are two to the n. If each address names one byte, eight lines reach two hundred fifty-six bytes. Add just one more line, and you get five hundred twelve.
Growth Table
From 64 KiB to a Tebibyte
Watch how fast that grows. Sixteen lines reach sixty-five thousand, five hundred thirty-six bytes: sixty-four kibibytes. Twenty lines reach one mebibyte. Just four more lines multiplied the memory by sixteen. Thirty-two lines reach four gibibytes, and forty lines reach a whole tebibyte. Early microcomputers with sixteen address lines could never hold more than sixty-four kibibytes, however much memory the owner wanted to add. Modern processors use many more lines, and the exact count varies by chip. But the rule, two to the n, still holds.
Quick Check
Twelve Address Lines
Quick check. A toy computer for a robotics class has twelve address lines, and each address names one byte. How many bytes can it reach? Pause, and work it out. Four thousand ninety-six bytes: two to the twelfth, or four kibibytes. Count it up from ten lines, which give one thousand twenty-four. Eleven lines double that to two thousand forty-eight, and twelve lines double it again. Eight thousand one hundred ninety-two is the tempting slip: that needs thirteen lines, one too many.
Data Width
A Wider Data Bus Means Fewer Trips
Width matters for the data bus too, but in a different way. A wider data bus moves more bytes in one trip. To move sixty-four bytes, an eight-bit bus needs sixty-four trips. A thirty-two-bit bus needs sixteen. A sixty-four-bit bus needs only eight. So here's a common mistake: thinking the data bus decides how much memory a computer can hold. It doesn't. The address bus sets the memory limit. The data bus sets how much moves at once, and that affects speed.
Bus Sharing
Arbitration and the Bottleneck
The last limit is sharing. Many parts sit on the same lines, so only one may send at a time. If two drove the lines together, the signals would clash, and nobody could read them. Usually the processor leads. But a device that moves data on its own, as you'll see in lesson 5.5, may borrow the bus for a while. A rule called bus arbitration picks the winner. And sharing is why a single bus becomes a bottleneck. The busier the devices, the longer each one waits. That pressure is why computers grew separate, faster paths, the subject of lesson 5.8.
Key Takeaways
Where, What and How
To recap. The system bus has three groups of lines: address says where, data says what, and control says how. With n address lines, a processor can name two to the n addresses. The width of the data bus sets how much moves in one trip. And because only one part may send at a time, sharing limits speed.
About Introduction to Operating Systems at UPI Study
Introduction to Operating Systems (Computer Science 354) is a self-paced online course of 83 video lessons in 10 chapters, from what an operating system does and process scheduling to concurrency, memory, devices, file systems, networks, the internet, security and virtual machines. It carries a NCCRS credit recommendation for 3 semester credits.
Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Enroll now → Course details Download the syllabus All Computer Science courses Every course with PRO →
Compare: Linux vs Operating Systems
Why take it here
Why students take Introduction to Operating Systems with UPI Study
Where the credit goes
Universities that work with NCCRS
Introduction to Operating Systems carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.
FAQ
Questions students ask us
About The System Bus
What are the three parts of the system bus?
How do you calculate how much memory an address bus can reach?
Does the data bus width limit how much memory a computer can have?
What is bus arbitration?
About the Introduction to Operating Systems course
How many college credits is Introduction to Operating Systems?
How much does Introduction to Operating Systems cost and what is included?
Which universities accept UPI Study credits?
How long does Introduction to Operating Systems take?
How are the exams done?
How do my credits reach my college?
Ready for the full course? Earn 3 credits in Introduction to Operating Systems.
83 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.
Updated
3 credits · NCCRSEnroll →