



















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
A comprehensive set of solutions and explanations for the purdue cnit 176 final exam 303. It covers key concepts related to cpu architecture, memory hierarchy, and performance optimization techniques. Detailed explanations of various cpu architectures, memory organization, and the fetch-execute cycle. It also explores concepts like pipelining, superscalar processing, and multiprocessing, providing insights into how these techniques enhance cpu performance. Valuable for students preparing for the cnit 176 final exam and those seeking a deeper understanding of computer architecture.
Typology: Exams
1 / 91
This page cannot be seen from the preview
Don't miss anything!
The Memory Hierarchy from More Costly to Less Costly (CPU) - ANSWER System, Online (Secondary), Tertiary, Off-Line
The Memory Hierarchy from Smaller to Larger (CPU) - ANSWER Registers, Level 1 Cache, Level 2 Cache, Main Memory, Solid-State Disk, Fixed Rigid Disk, Optical Disks (Jukeboxes), Magnetic Tapes (Robotic libraries), USB Flash Drives, Removable Hard Drives
Current CPU Architecture Designs (CPU) - ANSWER • Traditional modern architectures
Current CPU Architecture (CPU) - ANSWER • IBM Mainframe series
CISC (CPU) - ANSWER - Equals a complex instruction set computers.
RISC (CPU) - ANSWER - Equals a reduced instruction set computers
Stored Program Computer (CPU) - ANSWER • Modern day computers that store their programs in
electronic memory
other means of entering program data
The Von Neumann and the Harvard Architectures
Von Neumann Architecture (CPU) - ANSWER • It is named after the mathematician and early computer scientist John Von Neumann.
Von Neumann Bottleneck (CPU) - ANSWER • Processor can process an instruction faster than
it can be transferred in from memory
transfer and is sitting idle
Harvard Architecture (CPU) - ANSWER • The name is originated from "Harvard Mark I" a relay
based
punched tape(24 bits wide) and data in electo-mechanical
counters.
Fetch Unit (CPU) - ANSWER • Instruction fetch unit
a buffer until decoded and executed
location of current instruction being processed
Execution Unit (CPU) - ANSWER • Receives instructions from the decoder unit
Sequential Processing (CPU) - ANSWER • One result per m cycles
Pipelining Processing (CPU) - ANSWER • One result per m cycles
Instruction Pipelining (CPU) - ANSWER • Assembly line technique to allow overlapping
between fetch-execute cycles of sequences of
instructions
Multiple, Parallel Execution Units (CPU) - ANSWER • Different instructions have different numbers of
steps in their cycle
type of instruction
execution of several instructions
Scalar Processing (CPU) - ANSWER • Processes only one data item at a time
sequence
Superscalar Processing (CPU) - ANSWER • Uses different execution resources (like ALU, or shift register)
possible
Pipelined (CPU) - ANSWER - Operations are broken down into sub-tasks
parallel
Multiprocessing (CPU) - ANSWER Reasons
segments of a program that can be executed
concurrently
Multiprocessor system
integrated circuit
same motherboard
Multiprocessor Systems (CPU) - ANSWER Identical access to programs, data, shared
memory, I/O, etc.
Easily extends multi-tasking and redundant
program execution
Two ways to configure
Hive-drone Multiprocessing (CPU) - ANSWER Hive CPU
Advantages
Disadvantages
system fails
Symmetrical Multiprocessing (CPU) - ANSWER Each CPU has equal access to resources
Each CPU determines what to run using a standard
algorithm
Disadvantages
Advantages
Cache Memory (CPU) - ANSWER Blocks: between 8 and 64 bytes
Cache Line
Cache Performance Advantages (CPU) - ANSWER Hit ratios of 90% and above are common
50%+ improved execution speed
Locality of reference is why caching works
memory at any given time
function
Principle of Locality (CPU) - ANSWER An entire blocks of data is copied after a hit because
the principle of locality tells us that once a byte is
accessed, it is likely that a nearby data element will be
needed soon.
There are three forms of locality:
tend to be accessed again.
sequentially.
Temporal Locality (CPU) - ANSWER Recently-accessed data elements
tend to be accessed again.
Spatial Locality (CPU) - ANSWER Accesses tend to cluster.
Sequential Locality (CPU) - ANSWER Instructions tend to be accessed
sequentially.
Flynn's Taxonomy (CPU) - ANSWER Many attempts have been made to come up with a way
to categorize computer architectures.
Flynn's Taxonomy has been the most enduring of
these, despite having some limitations.
Flynn's Taxonomy takes into consideration the number
of processors and the number of data paths
incorporated into an architecture.
A machine can have one or many processors that
operate on one or many data streams.
The four combinations of multiple processors and
multiple data paths are described by Flynn as:
These are classic uniprocessor systems.
streams. Execute the same instruction on multiple
data values, as in vector processors.
MIMD (CPU) - ANSWER Multiple instruction streams, multiple data
streams. These are today's parallel architectures.
Examples of MIMD architectures are found in
distributed computing, where processing takes place
collaboratively among networked computers.
workstation coordinates the actions of the others.
workstations brought together to solve a specific problem.
systems that form a dedicated parallel system
MISD (CPU) - ANSWER Multiple instruction streams, single data stream.
NOW (CPU) - ANSWER Network of Workstations (NOW) uses otherwise idle systems
to solve a problem.
COW (CPU) - ANSWER Collection of Workstations (COW) is a NOW where one
workstation coordinates the actions of the others.
DCPC (CPU) - ANSWER Dedicated Cluster Parallel Computer (DCPC) is a group of
workstations brought together to solve a specific problem.
POPC (CPU) - ANSWER Pile of PCs (POPC) is a cluster of (usually) heterogeneous
systems that form a dedicated parallel system.
I/O Processing Speed or Program Execution (I/O) - ANSWER • Determined primarily by ability of I/O operations to
stay ahead of processor
Basic I/O Model (I/O) - ANSWER Input ---> Process ---> Output
I/O Requirements (I/O) - ANSWER • Means for addressing different peripheral devices
the CPU
and memory for large data transfers since programmed I/O
is suitable only for slow devices and individual word
transfers
computer must support high data transfer rates
with varying delays
Interrupt Driven I/O (I/O Technique) (I/O) - ANSWER External input controls
Direct Memory Access Controllers (I/O Technique) (I/O) - ANSWER Method for transferring data between main memory
and a device that bypasses the CPU
Interrupts (I/O) - ANSWER Signal that causes the CPU to alter its normal flow
of instruction execution
Examples
Interrupt lines (hardware) (I/O) - ANSWER One or more special control lines to the CPU
Interrupt handlers (I/O) - ANSWER • Program that services the interrupt
Context (I/O) - ANSWER • Saved registers of a program before control is
transferred to the interrupt handler
when control returns to interrupted program
Use of Interrupts (I/O) - ANSWER Notify that an external event has occurred
Signal completion
Allocate CPU time
Indicate abnormal event (CPU originates for notification
and recovery)
Software interrupts
Servicing the Interrupt (I/O) - ANSWER 1. Lower priority interrupts are held until higher priority
interrupts are complete
data values in registers, in the PCB or the stack area in
memory
be avoided
DMA Instructions (I/O) - ANSWER Application program requests I/O service from
operating system
To initiate DMA, programmed I/O is used to send
the following information:
Interrupt to CPU upon completion of DMA
DMA Initiation and Control (I/O) - ANSWER 1. Programmed I/O used to prepare disk controller for transfer by providing required information and initiating transfer.
I/O Controller Functions (I/O) - ANSWER • Recognizes messages from device(s) addressed to it and
accepts commands from the CPU
held until it can be transferred to the device
a direct memory transfer
its buffer
Peripherals (Peripherals) - ANSWER Devices that are separate from the basic computer
Classified as input, output, and storage
Connect via
Storage Devices (Peripherals) - ANSWER Secondary storage
Plash Memory (Peripherals) - ANSWER • Solid-state drives
storage