export_week 7 chapter 7 the cpu and memory Flashcards
,
CPU: Major Components
▪ ALU
CU
,
ALU
arithmetic logic unit)
▪ Performs calculations and comparisons
,
CU
(control unit)
▪ Performs fetch/execute cycle
Accesses program instructions and issues commands to the ALU
Moves data to and from CPU registers and other
hardware components
,
Subcomponents: of the CPU
Memory management unit: supervises fetching
instructions and data from memory
I/O Interface: sometimes combined with memory
management unit as Bus Interface Unit
,
System Block Diagram
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/imaget5ujrx-14A623EF3484D1AD610.png
,
Concept of Registers
▪ Small, permanent storage locations within the
CPU used for a particular purpose
▪ Manipulated directly by the Control Unit
▪ Wired for specific function
▪ Size in bits or bytes (not in MB like memory
▪ Can hold data, an address or an instruction
,
▪ How many registers does the LMC have?
▪ What are the registers in the LMC?
two the baskets
,
Use of Registers
▪ Scratchpad for currently executing program
•
Holds data needed quickly or frequently
▪ Stores information about status of CPU and currently
executing program
- Address of next program instruction
- Signals from external devices
,
what about General Purpose Registers
User-visible registers
Hold intermediate results or data values, e.g., loop counters
Equivalent to LMC’s calculator
Typically several dozen in current CPUs
,
Special-Purpose Registers (PC )
Program Count Register (PC)
▪ Also called instruction pointer
,
Special-Purpose Registers (IR)
Instruction Register (IR)
▪ Stores instruction fetched from memory
,
Special-Purpose Registers
▪ Memory Address Register (MAR)
▪ Memory Data Register (MDR)
,
Status Registers
▪ Status of CPU and currently executing program
,
▪ Flags
(one bit Boolean variable) to track condition like arithmetic carry and overflow, power failure, internal computer error
,
Register Operations
Stores values from other locations
(registers and memory)
▪ Addition and subtraction
▪ Shift or rotate data
▪ Test contents for conditions such as
zero or positive
,
Operation of Memory
▪ Each memory location has a unique address
▪ Address from an instruction is copied to the
MAR which finds the location in memory
▪ CPU determines if it is a store or retrieval
▪ Transfer takes place between the MDR and
memory
▪ MDR is a two way register
,
Relationship between MAR,
MDR and Memory
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/imageyl64qx-14A6244FA592BD3F909.png
,
MAR-MDR Example
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/imagets74qx-14A6245FB8B15F5F3DA.png
,
Visual Analogy of Memory
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/imagewq1jrx-14A62465FD82D7612E8.png
,
Individual Memory Cell
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/image5lihrx-14A6246EE3776B84806.png
,
memory capacity determined by two factors ?
- Number of bits in the MAR
LMC = 100 (00 to 99)
2 K where K = width of the register in bits
- Size of the address portion of the instruction
4 bits allows 16 locations
8 bits allows 256 locations
32 bits allows 4,294,967,296 or 4 GB
,
RAM:
Random Access Memory
,
what is RAM (Dynamic RAM)?
▪ Most common, cheap, less electrical power, less
heat, smaller space
▪ Volatile: must be refreshed (recharged with power)
- 1000’s of times each second
,
SRAM (static RAM)
▪ Faster and more expensive than DRAM
▪ Volatile
▪ Small amounts are often used in cache memory
for high-speed memory access
,
Nonvolatile Memory?1
ROM
▪ Read-only Memory
▪ Holds software that is not expected to change over
the life of the system
,
Nonvolatile Memory?2
▪ EEPROM
▪ Electrically Erasable Programmable ROM