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

  Explain a simple elevator control algorithm in this context

CSE 1000 Broward College Explain a simple Elevator Control algorithm in this context- how priority inversion or solution are applied.

  Describe the types of optical input devices

How does a laser printer s operation differ from that of a dot matrix printer? Describe the types of optical input devices.

  Determine a student grade given any mark the user decides

Write a console application that determine a student grade given any mark the user decides to input.

  You are the new chief information officer for acme widgets

you are the new chief information officer for acme widgets. the president of the company recently asked you what you

  Writing down the script

Write down a script known as whichdaemon.sh that checks if the httpd and init daemons are running over your system. If an httpd is running.

  Create web based multimedia presentation for specific topic

COMP607 Visual Effects and Animation Assignment: Multimedia Learning Project - Create a web based multimedia presentation for a specific topic

  Construct the class association diagram for the requirements

ICT205e Systems Modelling in Object-Oriented Design & Analysis Assignment. Construct the class association diagram for the requirements.  It is not necessarily to include attributes. Ensure that you do not include any derived or redundant associati..

  How effectively does each model capture the system

How effectively does each model capture the system in that view? How effectively do the models define the system for the needs of initial concept definition.

  How one user segment would behave on a visit to the site

Using a website with which you are familiar, develop a scenario that tells the story of how one user segment would behave on a visit to the site.

  Questionsomeone once observed that the difference between

questionsomeone once observed that the difference between roles and groups is that a user be able to shift into and out

  Find out where html injection is possible

Find out where HTML injection is possible within the service APIs. Write down an HTTP request that inserts an arbitrary image into the UI you constructed

  Evaluate syntactic and semantic correctness of a computer

STRUCTURED PROGRAMMING-LEVEL-YEAR ONE, SEMESTER TWO-National Council for Higher Education- BACHELOR OF INFORMATION TECHNOLOGY.

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