The System Bus, Explained | Introduction to Operating Systems

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

← 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 →

Earn 3 college credits for Introduction to Operating SystemsRecommended for credit by NCCRS · Computer Science 354 · self-paced · one payment, lifetime access

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.

Compare: Linux vs Operating Systems

Why take it here

Why students take Introduction to Operating Systems with UPI Study

What happens under every app you runIntroduction to Operating Systems explains the software that runs a computer: processes and scheduling, threads and synchronization, deadlock, memory and paging, devices and storage, file systems, networking, security and virtualization. It suits computer science and information technology degrees.
Credit at a fraction of the priceThe same 3 credits can cost $750 or more at a US college. Here it is one payment, self-paced, with lifetime access.
Finish your degree soonerTransfer credits reduce the courses you still owe, so you can graduate earlier or lighten a heavy semester.
Strengthen an applicationA completed college-level course on an official transcript shows admissions and scholarship committees you can do the work.
Study on your own scheduleNo start dates, no deadlines. Watch the lessons, practice, and take the final when you are ready.
130,000+students helped with college creditsACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

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.

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?
The system bus has three groups of lines: the address bus, the data bus and the control bus. The address bus carries where, meaning the memory location or device being reached. The data bus carries what, meaning the actual value read or written. The control bus carries how and when, with signals such as read, write, device ready and the clock tick.
How do you calculate how much memory an address bus can reach?
With n address lines, a processor can name 2 to the power n addresses, and if each address names one byte, that is the number of reachable bytes. Twelve lines reach 4,096 bytes, sixteen reach 65,536 bytes or 64 KiB, twenty reach 1 MiB, thirty-two reach 4 GiB, and forty reach 1 TiB. Each added line doubles the total.
Does the data bus width limit how much memory a computer can have?
No, the address bus sets the memory limit, while the data bus width sets how much data moves in one trip. Moving 64 bytes takes 64 trips on an 8-bit data bus, 16 trips on a 32-bit bus, and 8 trips on a 64-bit bus. A wider data bus therefore improves speed, but it does not add any new addresses.
What is bus arbitration?
Bus arbitration is the rule that decides which component may send on a shared bus when several want it at once. Only one part may drive the lines at a time, or the signals would clash and nobody could read them. The processor usually leads, but a device that moves data on its own may borrow the bus. Sharing also makes a single bus a bottleneck as devices get busier.

About the Introduction to Operating Systems course

How many college credits is Introduction to Operating Systems?
Introduction to Operating Systems (Computer Science 354) carries a NCCRS credit recommendation for 3 semester credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
How much does Introduction to Operating Systems cost and what is included?
$250, paid once, with lifetime access: all 83 video lessons, a practice quiz after each, the graded work and final exam, and an official transcript when you finish. Students who want several courses choose UPI Study PRO instead.
Which universities accept UPI Study credits?
UPI Study has signed partner agreements with universities such as Thomas Edison State University, University of the People and Charter Oak State College, and works with universities such as Penn State, SNHU and SUNY. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities. Use "Find my college" on this page to check yours.
How long does Introduction to Operating Systems take?
It is self-paced with no deadlines. The 83 lessons total about 10 hours of video; most students add reading and practice time and finish in a few weeks to a few months, on their own schedule.
How are the exams done?
Quizzes and assignments are online in the course. The final exam is taken online with proctoring; a person on the UPI Study team checks assignments, usually within two days.
How do my credits reach my college?
When the course shows 100% complete, request the official transcript from your dashboard. It is sent to the college you name, and you can send it to more than one. Check your college first with "Find my college" on this page, or ask Athena.

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

Introduction to Operating Systems
3 credits · NCCRS
Enroll →