Question

Part 1: A pipelined computer completes instructions more quickly by having more than one instruction at...

Part 1: A pipelined computer completes instructions more quickly by having more than one instruction at a time "in the pipeline." Explain what problem branch instructions cause with instruction pipelining. Describe one approach to overcoming this problem.

Part 2: RISC computers generally execute more instructions per second than CISC computers. Describe the penalty or trade-off paid when adopting the RISC architecture.

Part 3: When a cache hit to a cache on the CPU chip occurs on a memory write the cache will be updated, but the main memory will not be unless the designers of the memory subsystem have taken steps to do so. What effect does a mismatch between cache and main memory have on a computer with two or more CPU chips?

Part 4: Explain why programmed I-O is seldom used for general I-O operations?

Part 5: DMA I-O frees the CPU to do other work while an I-O operation is pending. Using DMA I-O requires more complex controller hardware and more complex bus. In addition, there is an operational penalty; that is, a disadvantage that shows up while a DMA I-O operation is in progress. Explain what it is.

Part 6: Cache memory is faster than main memory, but also much smaller. In general, cache memory is not large enough to hold all of an executing program. In about a paragraph, explain how cache memory is able to speed up the execution of programs. Just naming the principle involved is not enough; you must explain it.

Part 7: When a cache miss occurs on a memory read, the cache controller and memory take three major steps, assuming that the cache has no free cache line when the miss occurs. List and briefly explain each one in the order they occur.

Part 8: Explain what a privileged instruction is. In about a paragraph, explain why privileged instructions are needed in modern computer systems.

Part 9: Name and briefly describe three different uses for interrupts.

Part 10: Explain what a software interrupt is. Name and briefly describe one important application of software interrupts.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution

In branch instructions only one instruction is being completed at time.

This causes issues when instructions have different numbers of steps.

Solutions:
using separate pipelines

reordering instructions

requiring that the following instruction not be dependent on the branch.

---

There are few kinds of instructions used

More statements are needed = less flexible

---

The CPU would look for the data that is mismatched on the L2 cache and if not then found would continue on to the other caches if present.

This allows it to still be quicker than using main memory

---

CPU can't do anything while I-O is in process.

---

The I-O module steals cycles on the memory bus from the CPU, causing the CPU to wait anyway.

---

Locality of reference

most memory references in cache memory are confined to a small region at any given time.

This allows for a program to access this small amount of data that is close together very quickly.

---

Send the address and read operation to the next level of the hierarchy.

Wait for the data to arrive

Update the cache entry with data, rewrite the tag,
turn the valid bit on, clean the dirty data

Resend the memory address until you get a hit

--

An instruction that only the operating system can execute when in a specific mode.

needed to allow the operating system to perform certain operations that other applications should not be allowed to perform.

---

Freeing CPU from waiting for events

Providing control for external input

Notifying that an external event has occurred

Allocating CPU time

---

When software instructions causes the CPU to alter its normal flow of instruction execution.

It can free the CPU form waiting for events and provide control for external input.

This could be used to communicate with the operating system
i.e. requesting for input/output.

---

solved all the questions

all the best

Add a comment
Know the answer?
Add Answer to:
Part 1: A pipelined computer completes instructions more quickly by having more than one instruction at...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Question 4 (9 pts total) program consists of 8 instructions. Each instruction takes an average of...

    urgent help needed in computer architecture ! Thanx Question 4 (9 pts total) program consists of 8 instructions. Each instruction takes an average of 140 ns to access memory and decode the instruction. It takes an additional 20 ns for the CPU to process each instruction. 4.1 How long does the program take to run? (3 pts) 4.2 An interrupt occurs during the program that delays the program by 240 ns. What percentage of time is spent processing data by...

  • Operating Systems Questions (Please help if you can) 1. A computer has cache, main memory, and...

    Operating Systems Questions (Please help if you can) 1. A computer has cache, main memory, and a disk used for virtual memory. If a referenced word is in the cache, 20ns are required to access it. If it is in main memory but not in the cache, 60ns are required to load it into the cache (this includes the time to originally check the cache), and then, the reference is started again. If the word is not in main memory,...

  • Vocabulary Exercises is the communication channel that connects all computer system components Cache types that are...

    Vocabulary Exercises is the communication channel that connects all computer system components Cache types that are generally implemented on the same chip as the CPU include 3. thus controlling access to the bus by all other The CPU is always capable of being a(a) devices in the computer system. 4. An) is a reserved area of memory used to resolve differences in data transfer rate or data transfer unit size. 5. A(n) is an area of fast memory where data...

  • 1. Difference between sector sparing and sector slipping is A) sector sparing uses spare sectors while...

    1. Difference between sector sparing and sector slipping is A) sector sparing uses spare sectors while sector slipping does not. B) sector sparing results in copying of a single sector while sector slipping may result in copying of multiple sectors. C) sector sparing can help recover from hard errors while sector slipping cannot. D) sector slipping can help recover from hard errors while sector sparing cannot. 2. Which of the following is FALSE about swap space use? A) Swap space...

  • # No plagiarism #Decide on the type of motherboard to use in the computer system you...

    # No plagiarism #Decide on the type of motherboard to use in the computer system you are designing. Explain what it is and why you chose it. This from Lab 5.1 Using the information you recorded previously in Step 5, consult Table 5-1 to find out how to enter your system’s setup utility. (Alternatively, when you first turn on your PC, look for a message on your screen, which might read something like “Press F2 to access setup.” Table 5-1:...

  • Computer Architecture 14. Fill in the blanks below with the most appropriate term or concept discussed...

    Computer Architecture 14. Fill in the blanks below with the most appropriate term or concept discussed in this chapter: A. ---------------The time required for the first result in a series of computations to emerge from a pipeline. B. ---------------This is used to separate one stage of a pipeline from the next. C. ---------------Over time, this tells the mean number of operations completed by a pipeline per clock cycle. D. ---------------The clock cycles that are wasted by an instruction-pipelined processor due...

  • Explain what enterprise resource planning (ERP) systems. Outline several of their key characteristics. Describe in reasonable...

    Explain what enterprise resource planning (ERP) systems. Outline several of their key characteristics. Describe in reasonable detail how a company leverages an ERP system and how its operations are improved after installing an ERP system like SAP. Explain how a supply chain management system helps an organization make its operations more efficient What is Upstream and Downstream management of the supply chain? Explain the concept of “Supply Network”, its benefits, and how technology made this concept available Explain the difference...

  • 1 Overview The goal of this assignment is to help you understand caches better. You are...

    1 Overview The goal of this assignment is to help you understand caches better. You are required to write a cache simulator using the C programming language. The programs have to run on iLab machines. We are providing real program memory traces as input to your cache simulator. The format and structure of the memory traces are described below. We will not give you improperly formatted files. You can assume all your input files will be in proper format as...

  • Call stack question! Long one... The call stack is part of main memory that is reserved...

    Call stack question! Long one... The call stack is part of main memory that is reserved for function calling. Like all r memory it is finite, so can be exhausted resulting in a stack overflow. Recursive functions allocate space on the stack for each recursive call: if there are many such recursive calls a stack overflow can result. The questions that follow ask you to investigate recursive functions and stack overflows. Note that when running programs in the Linux terminal...

  • Instruction: Read the cases below and answer the questions within 60 minutes Case Part 1 Jennie...

    Instruction: Read the cases below and answer the questions within 60 minutes Case Part 1 Jennie Garcia could not believe that her career had moved so far so fast. When she left gradua a master's degree in anthropology, she intended to work at a local coffee shop until something along that was more related to her academic background. But after a few months, she came to business, and in a little more than a year, she was promoted to store...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT