Computer Architecture and Organization Reviewer
Computer Architecture and Organization Reviewer
instructions.
LESSON 1 - CHAPTER 1 – BASIC CONCEPTS AND
COMPUTER EVOLUTION
STRUCTURE
COMPUTER ARCHITECTURE/COMPUTER
ORGANIZATION
• Introduced in 1970
• Included a number of models.
• Could upgrade to a more expensive, faster model
without having to abandon the original software. FOUR MAIN STRUCTURAL COMPONENTS OF THE
(No need to change OS, upgradable includes COMPUTER
RAM, CPU) 1. CPU – controls the operation of the computer
• New models are introduced with improves and performs its data processing functions.
technology, but retain the same architecture. 2. Main Memory – stores data
• Architecture has survived to this day as the 3. I/O – moves data between the computer and its
architecture of IBM’s mainframe product line. external environment.
STRUCTURE AND FUNCTION 4. System Interconnection- mechanism provides
communication among CPU, main memory, and
• Hierarchical System I/O.
o Set of interrelated subsystems.
Major Structural Components of CPU
• Structure
o The way in which components relate to • Control Unit – controls the operation of
each other. the CPU and hence the computer.
• Function • Arithmetic and Logic Unit (ALU)-
o The operation of individual components performs the computer’s data
as part of the structure processing function.
FUNCTION • Registers- provide storage internal to the
CPU.
1. Data Processing • CPU Interconnection- mechanism that
• Data may take a wide variety of forms provides communication among the
and the range of processing control unit, ALU, and registers.
requirements is broad.
2. Data Storage MULTICORE COMPUTER STRUCTURE
• Short-term
• Long-term • Central Processing Unit (CPU)
3. Data Movement o Fetches and executes instructions.
• Input-output (I/O) – when data are o Consists of ALU, control unit, and
received from or delivered to a device registers.
(peripheral) that is directly connected to o Referred to as processor in a system with
the computer. Ex: Mouse, Keyboard a single processing unit.
• Data Communications – when data are • Core
moved over longer distances, to or from o An individual processing unit on a
a remote device. Ex: LAN processor chip.
4. Control o May be equivalent in functionality to a
• Manages the computer’s resources and CPU on a single-CPU system.
orchestrates the performance of its o Specialized processing units are also
referred to as cores.
• Processor
o A physical piece of silicon containing one
or more cores.
o A computer component that interprets
and executes instructions.
o Referred to as a multicore processor if it
contains multiple cores.
CACHE MEMORY
• Multiple layers of memory between the
processor and main memory.
• Is smaller and faster than main memory.
• Used to speed up memory access by placing in
the cache data from main memory that is likely
REGISTERS
to be used in the near future.
• A greater performance improvement may be • Memory Buffer Register (MBR)
obtained by using multiple levels of cache, with o Contains a word to be stored in memory
level 1 (L1) closest to the core and additional or sent to the I/O unit
levels (L2, L3, etc.) progressively farther from the o Or used to receive a word from memory
core. or from the I/O unit
• Memory Address Register (MAR)
o Specifies the address in memory of the
word to be written from or read into the
MBR.
• Instruction Register (IR)
o Contains the 8-bit opcode instruction
being executed.
• Instruction Buffer Register (IBR)
o Employed to temporarily hold the right-
hand instruction from a word in meory.
• Program Counter (PC)
o Contains the address of the next
instruction pair to be fetched from
memory.
• Accumulator (AC) and Multiplier Quotient (MQ)
o Employed to temporarily hold operands
and results of ALU operations.
HISTORY OF COMPUTERS
SECOND GENERATION: TRANSISTORS
L1 & L2 - usually inside of the core • Smaller
L3- outside of the core • Cheaper
• Dissipates less heat than a vacuum tube
• Is a solid state device made from silicon
HISTORY OF COMPUTERS • Was invented at Bell Labs in 1947
• It was not until the late 1950’s that fully
FIRST GENERATION: VACUUM TUBES transistorized computers were commercially
available.
• IAS Computer
o John von Neumann
o First publication of the idea was in 1945
for the EDVAC.
o Design began at the Princeton Institute
for Advanced Studies
o Completed in 1952
o Prototype of all subsequent general-
purpose computers.
IBM SYSTEM/360
• Announced in 1964
• Product line was incompatible with older IBM
machines
• Was the success of the decade and cemented
IBM as the overwhelming dominant computer
vendor
• The architecture remains to this day the
architecture of IBM’s mainframe computers
• Was the industry’s first planned family of
computers
HISTORY OF COMPUTERS
THIRD GENERATION: INTEGRATED CIRCUITS
COMPUTER COMPONENTS
FETCH CYCLE
CLASSES OF INTERRUPTS
Program
BUS INTERCONNECTION
• A communication pathway connecting two or
more devices
• System Bus
o A bus that connects major computer
components (processor, memory, I/O)
DATA BUS
I/O FUNCTION
• Peripheral devices Ex: mouse, keyboard
• I/O module can exchange data directly with the POINT-TO-POINT INTERCONNECT
processor. • is a computer architecture in which two or more
• Processor can red data from or write t an I/O computing devices are connected directly to
module
each other, rather than through a shared bus or
network.
TYPES OF OPERANDS
• Numbers
o All machine languages include numeric data
types
o Number stored in a computer are limited:
▪ Limit to the magnitude of numbers
representable on a machine
▪ In the case of floating-point
numbers, a limit to their precision
o Three Types of Numerical data are common
in computers:
▪ Binary integer or binary fixed point
▪ Binary floating point
▪ Decimal
o Packed decimal
▪ Each decimal digit is represented by
a 4-bit code with two digits stored
per byte
▪ To form numbers 4-bit codes are
strung together, usually in multiples
of 8-bits
• Characters
o A common form of data is text or character
strings
o Textual data in character form cannot be
easily stored or transmitted by data
processing and communications systems
because they are designed for binary data
SINGLE-INSTRUCTION-MULTIPLE-DATA (SIMD) DATA TYPES
• Introduced to the x86 architecture as part of the
extensions of the instruction set to optimize
performance of multimedia applications
• These extensions include MMX (multimedia
extensions) and SSES (streaming SIMD extensions)
• Data types:
o Packed byte and packed byte integer
o Packed word and packed word integer
o Packed doubleword and packed doubleword
integer
o Packed quadword and packed quadword
integer
o Packed single-precision floating-point and
packed double-precision floating-point
DATA TRANSFER
ARITHMETIC
▪ Most machines provide the basic arithmetic
operations of add, subtract, multiply, and divide
▪ These are provided for signed integer (fixed-point)
numbers
▪ Often they are also provided for floating-point and
packed decimal numbers
▪ Other possible operations include a variety of single-
operand instructions:
o Absolute – take the absolute value of the
operand
o Negate – negate the operand
o Increment – add 1 to the operand
o Decrement – subtract 1 from the operand
• Typically these instructions are reserved for the use of
the operating system
• Examples of system control operations:
o A system control instruction may read or
alter a control register
o An instruction to read or modify a storage
protection key
o Access to process control blocks in a
multiprogramming system
TRANSFER OF CONTROL
CONVERSION
INPUT/OUTPUT
SYSTEM CONTROL