SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
Running head: HOW CPU’S AND MEMORY WORK 1
How CPU’s and Memory Work
Larry Reid
Kaplan University
IT332-1 Principles of Information Systems Architecture
HOW CPU’S AND MEMORY WORK 2
How CPU’s and Memory Work
Today’s computer is comprised of very technologically advanced components. The main
components in a computer that have to do with data processing and speed are the Central
Processing Unit (CPU) and Random Access Memory (RAM). This article will explore the CPU,
multiprocessing, bus, cache, data movement instructions, RAM (memory), and address registers.
Throughout this paper please refer to the diagram on page 6 that displays a visual representation
of the CPU, memory, and bus architectures.
The CPU has been through many upgrades since its introduction to the commercial world
in 1971. A central processing conducts simple mathematical operations at hundreds of millions
times per second. The CPU is comprised of several components and a bus network that makes
everything work. A CPU’s main components are comprised of a Control Unit (CU) which
controls all operations within the CPU, the Clock is what the CU uses to control its speed of
operation and is connected directly to the CU and other components throughout the PC,
additionally the clock speed is what’s used to calculate the speed of the CPU in GHz. The
Arithmetic Logic Unit (ALU) is the calculator that conducts all arithmetic operations, the L
Cache 1, 2, and 3 is located within the CPU on the chip and provides really fast access to data
instructions and/or data addresses that are typically going to be needed soon or instructions that
are performed often (Hruska, 2016). Additionally, there are several registers throughout the CPU
such as the general registers, instruction register (IR), memory address register (MAR), memory
data register (MDR), interrupt register, and many more that are used to store data instructions or
addresses which provides the ALU and CU an even faster memory to utilize than L Cache
(Englander, 2014).
HOW CPU’S AND MEMORY WORK 3
Address registers play a very important role in the operation of the CPU and memory.
The Memory Address Register (MAR) job is to send the address in its register to the address
decoder and along the address bus to main memory, the data at that address is then found and
pulled out by the MDR to send out along the data bus to be processed by the CU, lastly, the
MAR will receive and hold the address that is to be fetched next from the IR along the address
bus.
Modern memory which is Random access memory (RAM) is a fundamental necessity for
modern computer systems because it is what enables us to run programs due to the fast access to
large amounts of data and program instructions that are held during their operation, and memory
also enables the CPU to access its storage randomly instead of sequentially which is how the
CPU usually operates. The most used memory currently is Double Data Rate Dynamic RAM
(DDR DRAM) which there are currently four types, DDR, DDR2, DDR3, and DDR4, each step
up in DDR ram delivers a vast power savings, and double the processing speed and bandwidth of
its predecessor. Memory is made up millions of cells laid out in rows and columns that each hold
1 bit of data, each byte is written across a column through by the CPU sending an electrical
charge on the bus to a specified row (Murray, 2012). Additionally, the CPU uses its IR to get the
next set of instructions which occurs by the IR accessing the program counter (PC) in the CPU
which has the next instructions address, the IR passes the address to the MAR which then sends
it to the address decoder, then it finds the memory location and the bits are then read by the
MDR and sent back to the IR until the CU processes the data, all of which is supervised by the
memory management unit located in the CU (Tyson & Coustan, 2000).
The BUS is what’s used to send requests, addresses, and data to and from the CPU
through a data bus, address bus, control bus, system bus and several others. Within the CPU
HOW CPU’S AND MEMORY WORK 4
every component is connected to an internal bus and/or connected to one of the other types of
bus to send and receive data. Each bus has its own purpose; the data bus is used to transport data
or instructions between several components in the CPU and memory. The address bus is used to
transfer address locations to the necessary components such as the MAR, memory, the IR, and
the CU. A control bus is used to communicate with devices through control signals, check their
status, allow devices to send control signals to the CPU, and transmission of interrupt signals to
the interrupt register. The internal bus is used to transfer data, addresses, and control signals
throughout the internal components (Techopedia, n.d.).
Above I have explained the workings of the CPU, its internal components, the bus
architecture, and memory architecture, now we will go over what multicore processing is and
how it works compared to single core and multi-processor. First, let’s lightly touch on what
multi-processing which is not the same as multicore processing. Multi-processor setups are
exactly how they sound, they require a motherboard with multiple processor slots and are not
near the efficiency or speed of multicore processors. Multicore processors have multiple
processors within the same die, which allows for transferring of data and communication
between CPU cores at a very fast rate. By implementing a multicore processor such as a quad
core CPU allows for you to run multiple processes at one time which is why we are able to
multitask on modern computers with this new architecture of CPU. Not only are we able to run
several programs at once, depending on the speed and a few other factors, we are able to process
large tasks, like video editing, in much less time since each one of the two, four, or eight CPU
cores complete one task at the same time meaning they can process 2, 4, or 8 instructions every
clock cycle, unlike a single core CPU that completes one instruction at a time as described
earlier.
HOW CPU’S AND MEMORY WORK 5
Central processing unit architecture, memory architecture, and bus architecture has
improved dramatically throughout the years and new material and designs are constantly being
developed for employment of smaller, faster, and battery friendly components that will power
new electronic devices.
HOW CPU’S AND MEMORY WORK 6
CPU Diagram:
Arythmetic Logic
Unit (ALU)
Control Unit
(CU)
Clock
Memory
111110101100011010001000
L1 Cache
MARMDR
Registers
Instruction
Register
Address Decoder
L2 Cache
I/O
Interface
Legend
Data BUS
Address BUS
Internal BUS
Control BUS
L3 Cache
L1 Cache
MDR- Memory Data Register
MAR- Memory Address Register
10101011
10010011
11100011
10001000
00011000
10010110
11111000
00111110
InteruptRegister
Address
HOW CPU’S AND MEMORY WORK 7
Reference
Englander, Irv. (2014-01-21). The Architecture of Computer Hardware and System Software: An
Information Technology Approach, 5th Edition. [VitalSource Bookshelf Online].
Retrieved from https://kaplan.vitalsource.com/#/books/9781118803127/
Hruska, J (2016). How L1 and L2 CPU caches work, and why they’re an essential part of
modern chips. retrieved April 17 2016, from ExtremeTech Web Site:
http://www.extremetech.com/extreme/188776-how-l1-and-l2-cpu-caches-work-and-why-
theyre-an-essential-part-of-modern-chips
Murray, M (2012). DDR vs. DDR2 vs. DDR3: Types Of RAM Explained. retrieved April 17
2016, from PC Mag Web Site: http://www.pcmag.com/article2/0,2817,2400801,00.asp
Tyson, J & Coustan, D (2000). How RAM Works. retrieved April 17 2016, from How Stuff
Works Tech Web Site: http://computer.howstuffworks.com/ram.htm
Techopedia. (n.d.). Control Bus. retrieved April 18, 2016, from Techopedia Web Site:
https://www.techopedia.com/definition/303/control-bus

More Related Content

PPT
Computer Fundamentals
PPTX
Operating system presentation
PPTX
Block diagram of motherboard
PPTX
Operating system
PDF
hardwired control unit ppt
PDF
CS4109 Computer System Architecture
PPSX
RAM And ROM
PPTX
Processors and its Types
Computer Fundamentals
Operating system presentation
Block diagram of motherboard
Operating system
hardwired control unit ppt
CS4109 Computer System Architecture
RAM And ROM
Processors and its Types

What's hot (20)

PPTX
Arithmetic micro operations
PPT
ROM(Read Only Memory )
PPT
Cpu ppt cse
PDF
3. basic organization of a computer
PPTX
Assembly Language
PPTX
Interrupts
PDF
Character set in c
PPTX
Installing and uninstalling computer software
DOCX
Worksheet complete set 180111
PPTX
Main memory of computer .ppt
PPTX
Booting in Computer
PPTX
halfadder & halfsubtractor using 4:1 MUX
PPTX
Arithmetic Logic Unit .
PPTX
EE5440 – Computer Architecture - Lecture 1
PPTX
Addressing sequencing
PPTX
Interrupt presentaion
PPT
Operator precedence and associativity
PDF
Difference among 8085,8086,80186,80286,80386 Microprocessor.pdf
Arithmetic micro operations
ROM(Read Only Memory )
Cpu ppt cse
3. basic organization of a computer
Assembly Language
Interrupts
Character set in c
Installing and uninstalling computer software
Worksheet complete set 180111
Main memory of computer .ppt
Booting in Computer
halfadder & halfsubtractor using 4:1 MUX
Arithmetic Logic Unit .
EE5440 – Computer Architecture - Lecture 1
Addressing sequencing
Interrupt presentaion
Operator precedence and associativity
Difference among 8085,8086,80186,80286,80386 Microprocessor.pdf
Ad

Viewers also liked (6)

PPTX
PROPOSAL powerpoint
DOCX
Storage Mediums and Fragmentation
PPTX
WAN & LAN Cluster with Diagrams and OSI explanation
PPTX
Common Interface Design Components
DOC
Communications Management Plan
PPTX
Cluster analysis
PROPOSAL powerpoint
Storage Mediums and Fragmentation
WAN & LAN Cluster with Diagrams and OSI explanation
Common Interface Design Components
Communications Management Plan
Cluster analysis
Ad

Similar to How CPU’s and Memory Work (20)

PDF
ICT - Lecture Notes 3.pdf
PPTX
Week 2(b) - Processing Data in Computer.pptx
PDF
computer devices and memory unit 2 notes.pdf
PDF
fundamentals of digital communication unit 2 notes.pdf
PPT
3rd the cpu
PPT
Computer !
PPT
PPT
Chap4.ppt
PPT
The Central Processing Unit(CPU) for Chapter 4
PPT
Chap4.ppt
PPT
Chap4.ppt
PPT
Topic 1 Data Representation
PPT
Hcs Topic 2 Computer Structure V2
PPT
Hcs Topic 2 Computer Structure V2
PPT
Hcs Topic 2 Computer Structure V2
PPTX
LECTURE NO.03.pptx babsbsbsbsbsbsbsbsbsbbsbs
PPT
Chapter4 Data Processing
PPTX
Gr 12 Unit 2 part II Gr 12 Unit 2 part II.pptx
PPTX
ICT-Lecture_07(Primary Memory and its types).pptx
PPTX
3- Computer Architecture.pptx information technology
ICT - Lecture Notes 3.pdf
Week 2(b) - Processing Data in Computer.pptx
computer devices and memory unit 2 notes.pdf
fundamentals of digital communication unit 2 notes.pdf
3rd the cpu
Computer !
Chap4.ppt
The Central Processing Unit(CPU) for Chapter 4
Chap4.ppt
Chap4.ppt
Topic 1 Data Representation
Hcs Topic 2 Computer Structure V2
Hcs Topic 2 Computer Structure V2
Hcs Topic 2 Computer Structure V2
LECTURE NO.03.pptx babsbsbsbsbsbsbsbsbsbbsbs
Chapter4 Data Processing
Gr 12 Unit 2 part II Gr 12 Unit 2 part II.pptx
ICT-Lecture_07(Primary Memory and its types).pptx
3- Computer Architecture.pptx information technology

How CPU’s and Memory Work

  • 1. Running head: HOW CPU’S AND MEMORY WORK 1 How CPU’s and Memory Work Larry Reid Kaplan University IT332-1 Principles of Information Systems Architecture
  • 2. HOW CPU’S AND MEMORY WORK 2 How CPU’s and Memory Work Today’s computer is comprised of very technologically advanced components. The main components in a computer that have to do with data processing and speed are the Central Processing Unit (CPU) and Random Access Memory (RAM). This article will explore the CPU, multiprocessing, bus, cache, data movement instructions, RAM (memory), and address registers. Throughout this paper please refer to the diagram on page 6 that displays a visual representation of the CPU, memory, and bus architectures. The CPU has been through many upgrades since its introduction to the commercial world in 1971. A central processing conducts simple mathematical operations at hundreds of millions times per second. The CPU is comprised of several components and a bus network that makes everything work. A CPU’s main components are comprised of a Control Unit (CU) which controls all operations within the CPU, the Clock is what the CU uses to control its speed of operation and is connected directly to the CU and other components throughout the PC, additionally the clock speed is what’s used to calculate the speed of the CPU in GHz. The Arithmetic Logic Unit (ALU) is the calculator that conducts all arithmetic operations, the L Cache 1, 2, and 3 is located within the CPU on the chip and provides really fast access to data instructions and/or data addresses that are typically going to be needed soon or instructions that are performed often (Hruska, 2016). Additionally, there are several registers throughout the CPU such as the general registers, instruction register (IR), memory address register (MAR), memory data register (MDR), interrupt register, and many more that are used to store data instructions or addresses which provides the ALU and CU an even faster memory to utilize than L Cache (Englander, 2014).
  • 3. HOW CPU’S AND MEMORY WORK 3 Address registers play a very important role in the operation of the CPU and memory. The Memory Address Register (MAR) job is to send the address in its register to the address decoder and along the address bus to main memory, the data at that address is then found and pulled out by the MDR to send out along the data bus to be processed by the CU, lastly, the MAR will receive and hold the address that is to be fetched next from the IR along the address bus. Modern memory which is Random access memory (RAM) is a fundamental necessity for modern computer systems because it is what enables us to run programs due to the fast access to large amounts of data and program instructions that are held during their operation, and memory also enables the CPU to access its storage randomly instead of sequentially which is how the CPU usually operates. The most used memory currently is Double Data Rate Dynamic RAM (DDR DRAM) which there are currently four types, DDR, DDR2, DDR3, and DDR4, each step up in DDR ram delivers a vast power savings, and double the processing speed and bandwidth of its predecessor. Memory is made up millions of cells laid out in rows and columns that each hold 1 bit of data, each byte is written across a column through by the CPU sending an electrical charge on the bus to a specified row (Murray, 2012). Additionally, the CPU uses its IR to get the next set of instructions which occurs by the IR accessing the program counter (PC) in the CPU which has the next instructions address, the IR passes the address to the MAR which then sends it to the address decoder, then it finds the memory location and the bits are then read by the MDR and sent back to the IR until the CU processes the data, all of which is supervised by the memory management unit located in the CU (Tyson & Coustan, 2000). The BUS is what’s used to send requests, addresses, and data to and from the CPU through a data bus, address bus, control bus, system bus and several others. Within the CPU
  • 4. HOW CPU’S AND MEMORY WORK 4 every component is connected to an internal bus and/or connected to one of the other types of bus to send and receive data. Each bus has its own purpose; the data bus is used to transport data or instructions between several components in the CPU and memory. The address bus is used to transfer address locations to the necessary components such as the MAR, memory, the IR, and the CU. A control bus is used to communicate with devices through control signals, check their status, allow devices to send control signals to the CPU, and transmission of interrupt signals to the interrupt register. The internal bus is used to transfer data, addresses, and control signals throughout the internal components (Techopedia, n.d.). Above I have explained the workings of the CPU, its internal components, the bus architecture, and memory architecture, now we will go over what multicore processing is and how it works compared to single core and multi-processor. First, let’s lightly touch on what multi-processing which is not the same as multicore processing. Multi-processor setups are exactly how they sound, they require a motherboard with multiple processor slots and are not near the efficiency or speed of multicore processors. Multicore processors have multiple processors within the same die, which allows for transferring of data and communication between CPU cores at a very fast rate. By implementing a multicore processor such as a quad core CPU allows for you to run multiple processes at one time which is why we are able to multitask on modern computers with this new architecture of CPU. Not only are we able to run several programs at once, depending on the speed and a few other factors, we are able to process large tasks, like video editing, in much less time since each one of the two, four, or eight CPU cores complete one task at the same time meaning they can process 2, 4, or 8 instructions every clock cycle, unlike a single core CPU that completes one instruction at a time as described earlier.
  • 5. HOW CPU’S AND MEMORY WORK 5 Central processing unit architecture, memory architecture, and bus architecture has improved dramatically throughout the years and new material and designs are constantly being developed for employment of smaller, faster, and battery friendly components that will power new electronic devices.
  • 6. HOW CPU’S AND MEMORY WORK 6 CPU Diagram: Arythmetic Logic Unit (ALU) Control Unit (CU) Clock Memory 111110101100011010001000 L1 Cache MARMDR Registers Instruction Register Address Decoder L2 Cache I/O Interface Legend Data BUS Address BUS Internal BUS Control BUS L3 Cache L1 Cache MDR- Memory Data Register MAR- Memory Address Register 10101011 10010011 11100011 10001000 00011000 10010110 11111000 00111110 InteruptRegister Address
  • 7. HOW CPU’S AND MEMORY WORK 7 Reference Englander, Irv. (2014-01-21). The Architecture of Computer Hardware and System Software: An Information Technology Approach, 5th Edition. [VitalSource Bookshelf Online]. Retrieved from https://kaplan.vitalsource.com/#/books/9781118803127/ Hruska, J (2016). How L1 and L2 CPU caches work, and why they’re an essential part of modern chips. retrieved April 17 2016, from ExtremeTech Web Site: http://www.extremetech.com/extreme/188776-how-l1-and-l2-cpu-caches-work-and-why- theyre-an-essential-part-of-modern-chips Murray, M (2012). DDR vs. DDR2 vs. DDR3: Types Of RAM Explained. retrieved April 17 2016, from PC Mag Web Site: http://www.pcmag.com/article2/0,2817,2400801,00.asp Tyson, J & Coustan, D (2000). How RAM Works. retrieved April 17 2016, from How Stuff Works Tech Web Site: http://computer.howstuffworks.com/ram.htm Techopedia. (n.d.). Control Bus. retrieved April 18, 2016, from Techopedia Web Site: https://www.techopedia.com/definition/303/control-bus