(a) Briefly discuss the concepts of (i) error correcting‐codes and (ii) error‐detecting codes.
(i) Error‐correcting codes are used when an error is detected in the error‐detecting
process. The number of bit errors in a word plays an important role. The
Hamming code is often used for error‐correction. Parity bits are used in this
process. By a process of elimination (see Stallings , fig 5.8) errors can be
corrected. For a detailed description of this process, refer to Stallings, 9th
edition, p 193)
(ii) Error‐detecting codes use parity bits to detect hardware failures and soft errors.
b) What is the distinction between spatial locality and temporal locality?
Spatial locality refers to the tendency of execution to involve a number of clustered
memory locations. A program also tends to access data locations sequentially.
Temporal locality refers to the tendency for a processor to access memory locations
that have been used recently, eg when a loop is executed, the processor executes the
same instructions repeatedly.
c) Briefly describe the cache organisation of the Pentium 4.
- L1 instruction cache (on-chip): 12K in size and holds micro-operations. Sits between the
instruction decode logic and the execution core.
- L1 data cache (on-chip): 16Kb, 4-way set-associative organisation. Uses a writeback
policy.
- L2 cache of 256Kb: Feeds both L1 data and instruction caches. Its organisation is 8- way
set-associative.
- L3 cache: on-chip (8-way set-associative).
Memory subsystem: This unit contains both the L2 and L3 caches and the system bus. The
bus is used to access main memory when the L1 and L2 caches have a cache miss.
Question 3 [9]
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying this summary from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller elenaprowriter. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy this summary for R150,00. You're not tied to anything after your purchase.