Write your program to nest the loops in either direction

Assignment Help Computer Engineering
Reference no: EM133424235

Part A: THE CPU AND MEMORY (Chapter 7)

If the memory register for a particular computer is 32 bits wide, how much memory can this computer support?
Show the steps of the CPU fetch-execute cycle (micro operations) for the following instructions in the Little Man instruction set:
SUBTRACT,
IN,
COFFEE BREAK,
BRANCH ON CONDITION
Show the steps of the CPU fetch-execute cycle (micro operations) for an instruction that produces the 2's complement of the number in accumulator A (calculator). (8 marks)
Assume that SP is the stack pointer regiester, a special purpose register that always refers to the top of the stack. PUSH is an instruction that pushes the address of the next instruction into the top of the stack. Show the steps of the CPU fetch-execute cycle (micro operations) for the PUSH instruction.

Part B: CPU AND MEMORY: DESIGN, ENHANCEMENT, AND IMPLEMENTATION (Chapter 8)

Consider a CPU that implements a single instruction fetch-decode-execute-write- back pipeline for scalar processing. The execution unit of this pipeline assumes that the execution stage requires one step. Describe, and show in diagram form, what happens when an instruction that requires one execution step follows one that requires four execution steps.
Some systems use a branch prediction method known as static branch prediction, so called because the prediction is made on the basis of the instruction, without regard to history. One possible scenario would have the system predict that all conditional backward branches are taken and all forward conditional branches are not taken. Recall your experience with programming in the Little Man Computer language. Would this algorithm be effective? Why or why not? What aspects of normal programming, in any programming language, support your conclusion?
Suppose we are trying to determine the speed of a computer that executes the Little Man instruction set. The LOAD and STORE instructions each make up about 25% of the instructions in a typical program; ADD, SUBTRACT, IN, and OUT take 10% each. The various branches each take about 5%. The HALT instruction is almost never used (a maximum of once each program, of course!).
Determine the average number of instructions executed each second if the clock ticks at 100 MHz.
Now suppose that the CPU is pipelined, so that each instruction is fetched while another instruction is executing. (You may also neglect the time required to refill the pipeline during branches and at the start of program execution.) What is the average number of instructions that can be executed each second with the same clock in this case?
Consider a cache memory that provides three hundred 16-byte blocks. Now consider that you are processing all the data in a two-dimensional array of, say, four hundred rows by four hundred columns, using a pair of nested loops. Assume that the program stores the array column by column. You can write your program to nest the loops in either direction, that is, process row by row or column by column. Explain which way you would choose to process the data? Why?

Reference no: EM133424235

Questions Cloud

Draft an email to send to the two successful applicants : Draft an email to send to the two successful applicants, notifying them to sign their employment contracts electronically.
Define the classic threats to internal validity : What is internal validity? Why is it important for an experiment to have internal validity? Define each of the classic threats to internal validity.
Array that stores the result of each of these trials : Generate 20,000 simulated values of the number of times you see any of the area codes of the places Yanay has been to in 50 random spam calls
Build a static data consolidation for the cash flow : Build a static data consolidation for the Cash flow from banking and investment section in cells B15:B21. Delete the references in the Consolidate dialog box
Write your program to nest the loops in either direction : write your program to nest the loops in either direction, that is, process row by row or column by column. Explain which way you would choose to process
How you would troubleshoot the situation : State the ethical problem with at least three possible solutions. Analyze the problem and assess how you would troubleshoot the situation to get to the best
Draw one erd that includes all of the relationships : Draw one ERD that includes all of the relationships. Do NOT show the attributes for each entity. Make sure that your relationships shows the cardinality
Define sensation : Define sensation and explain transduction. Discuss absolute and difference thresholds and describe how Weber's Law explains the just-noticeable difference.
Research addiction treatment prevention programming : Prevention Programming Cite a research study on addiction treatment prevention programming. Please include the persisting link so others can see it.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd