Professional Documents
Culture Documents
Learning Task
1. What is the CPU? What is its role in a computer?
The CPU is the brain of a computer, containing all the circuitry needed to
process input, store data, and output results. The CPU is constantly
following instructions of computer programs that tell it which data to
process and how to process it. Without a CPU, we could not run programs
on a computer. The CPU can process those instructions easily, thanks to a
control unit that knows how to interpret program instructions and an
Arithmetic Logic Unit (ALU) that knows how to add numbers. With the control unit and ALU combined,
the CPU can process much more complex programs than a simple calculator.
2. What is a bus?
Parallel bus standards include advanced technology attachment (ATA) or small computer system
interface (SCSI) for printer or hard drive devices. Serial bus standards include universal serial bus (USB),
FireWire or serial ATA with a daisy-chain topology or hub design for devices, keyboards or modem
devices.
System Bus: A parallel bus that simultaneously transfers data in 8-, 16-, or 32-bit channels and is
the primary pathway between the CPU and memory.
External Bus: Connects peripheral devices to the motherboard, such as scanners or disk drives.
Expansion Bus: Allows expansion boards to access the CPU and RAM.
Frontside Bus: Main computer bus that determines data transfer rate speed and is the primary
data transfer path between the CPU, RAM and other motherboard devices.
Backside Bus: Transfers secondary cache (L2 cache) data at faster speeds, allowing more
efficient CPU operations.
A device that initiates data transfers on the bus at any given time is called a bus master. In a
computer system, there may be more than one bus master such as a DMA controller or a processor etc.
These devices share the system bus and when a current master bus relinquishes another bus can
acquire the control of the processor. Bus arbitration is a process by which next device becomes the bus
controller by transferring bus mastership to another bus.
Centralized arbitration: A single device, such as the CPU or a dedicated arbiter, controls
access to the bus and decides which device gets to use the bus next. This method is
commonly used in older computer systems and is relatively slow.
Distributed arbitration: Each device has its own arbitration logic and competes for
access to the bus using a priority or contention-based system. This method is faster than
centralized arbitration, but it can be more complex and prone to errors.
Demand priority arbitration: A device that needs to use the bus sends a request to the
other devices on the bus, which then respond with their own requests. The device with
the highest priority is granted access to the bus. This method is widely used in modern
computer systems, such as Ethernet networks.
Hybrid arbitration: A combination of centralized and distributed arbitration methods,
which can offer the advantages of both approaches. For example, a central arbiter may
control access to the bus, but individual devices may have their own arbitration logic to
resolve conflicts. This method is commonly used in computer systems that require high
performance and reliability, such as servers and supercomputers.
The main difference between memory mapped IO and IO mapped IO is that the memory mapped IO
uses the same address space for both memory and IO device while the IO mapped IO uses two separate
address spaces for memory and IO device.
CPU uses two methods to perform input/output operations between the CPU and peripheral devices
in the computer. These two methods are called memory mapped IO and IO mapped IO. Memory-
mapped IO uses the same address space to address both memory and I/O devices. On the other hand,
IO mapped IO uses separate address spaces to address memory and IO devices.
REFFERENCES
https://www.khanacademy.org/computing/computers-and-internet/xcae6f4a7ff015e7d:computers/
xcae6f4a7ff015e7d:computer-components/a/central-processing-unit-cpu#:~:text=The%20CPU%20is
%20the%20brain,run%20programs%20on%20a%20computer.
https://www.techopedia.com/definition/2162/bus
https://www.geeksforgeeks.org/bus-arbitration-in-computer-organization/
https://www.geeksforgeeks.org/bus-arbitration-in-computer-organization/
https://www.lkouniv.ac.in/site/writereaddata/siteContent/
202004171019385287rohit_sriv_enggInput_organization.pdf
https://pediaa.com/what-is-the-difference-between-memory-mapped-io-and-io-mapped-io/#Memory
%20Mapped%20IO