3 Pages

CS320Final09TkHome

Course: CS 320, Fall 2009
School: Evansville
Rating:
 
 
 
 
 

Word Count: 816

Document Preview

320 CS Final Exam Take Home Portion Name_________________________ April 28, 2009 For all of your problems show all of your work for full credit. Download this file as a Word document and type your answers directly below each question. 1. Assume that a computer has eight pages of virtual memory, four pages of physical memory, a fully associative cache, and the following sequence of unduplicated page references...

Register Now

Unformatted Document Excerpt

Coursehero >> Indiana >> Evansville >> CS 320

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
320 CS Final Exam Take Home Portion Name_________________________ April 28, 2009 For all of your problems show all of your work for full credit. Download this file as a Word document and type your answers directly below each question. 1. Assume that a computer has eight pages of virtual memory, four pages of physical memory, a fully associative cache, and the following sequence of unduplicated page references (i.e., with successive references to the same page omitted.) 14317536327026303126157173254264236153 For each of the following page replacement policies, determine (1) the sequence of pages loaded, and (2) the number of page faults. a. LRU Loading sequence________________________________________________________ Number of page faults______ b. Optimal Loading sequence________________________________________________________ Number of page faults______ 2. For a paged virtual memory system A) List the disadvantages that occur when the page size is too large. B) List the disadvantages that occur when the page size is too small. 3. What determines the total amount of virtual memory that a computer can have. 4. List at least 5 characteristics of RISC machines, at least 5 characteristics of CISC machines, and summarize the current state of computer architecture with regard to the RISC/CISC controversy. 5. Many machines are microprogrammed. Only a few are user microprogrammed. User microprogrammed machines are typically bit slice architectures and the user develops the assembly language instruction set. A) What are bit-slice architectures? B) What are the advantages of doing this. C) Why is this not popular and widely available. 6. A disk drive has the following characteristics: 8 surfaces 1024 tracks per surface 128 sectors per track 512 bytes per sector Track-to-track seek time of 7 msec Rotational speed of 7000 rpm A) Find the capacity of the drive? B) Find the access time for the drive. 7. Suppose that we have an unpipelined architecture that can be divided into 5 modules each of which may become one stage of a pipeline. If the time required to process data for each stage is 2, 3, 5, 3, and 4 nsec respectively and there is a 1 nsec latency between stages for the pipeline registers, what is the maximum clock frequency that this machine could run at. Show your work. 8. A given system has a main memory access time of 200 nsec and a cache access time of 40 nsec with a hit ratio of .85. Which of the following three cases would do most to improve the average access time of the system: A) Increase the main memory access time to 150 nsec. B) Increase cache the access time to 30 nsec. C) Increase the hit ratio of the cache to 90%. Show your calculations and justify your result for full credit. 9. Pipelining has been a mainstay of computer architecture since the early eighties. A) What factors in computer design ultimately limit the amount of speed that can be gained by doing a pipelined architecture? B) What factors keep any n-stage pipelined machine from being n times faster than a non pipelined machine. 10. Explain the difference between a linear address space, a paged address space, and a segmented address space. 11. Suppose a memory chip is organized as 2Meg x 4. Answer the following questions: A) How many bits can be stored on the chip? __________ B) How many address lines are needed to address all of the memory on the chip?______ C) How many data lines are needed? ________ 12. Cache memory systems and virtual memory systems have many key elements in common. Yet one of these is implemented in software and one in hardware. Give two reasons why this is so? 13. Instructions can have either a long format or a short format. List 3 advantages and 3 disadvantages of long instruction formats. 14. Write a short sequence of instructions in assembly language that illustrate a true data dependency when executed on a machine that does out-of-order execution and register renaming. Use the following instructions: mov log jmp jnz ry, rx rx, ry, rz target target //move rx into ry //logic or arith instruction on rx and ry with result to rz // branch to target //conditional bran...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Evansville - EE - 380
EE 380 Digital Systems ProjectsSummer 2005Title: Digital waveform generator Area: Computer hardware Prerequisites: EE 354 Design and build a system which will produce an arbitrary waveform of a periodic function. The period of the function should
Evansville - EE - 380
EE 380 System Software ProjectsSummer 2005Title: Parallel Port PCM Area: Systems Software Prerequisites: EE 356 Design a system that outputs a pulse code modulated (PCM) signal to one bit on the parallel port. The PCM signal should have up to 256
Evansville - ENGR - 123
Engr 123 Assignment 1 Seconds conversionJanuary 12, 2009 Due: January 21, 2009Write a C# console program to input an integer number of seconds from the keyboard and outputs the number of days, hours, minutes, and seconds corresponding to the inpu
Evansville - ENGR - 123
Engr 123 Assignment 2 Day of the WeekJanuary 21, 2009 Due: January 28, 2009Charles Dodgson, aka Lewis Carroll of Alice in Wonderland fame, was a mathematician who taught at Oxford in the 19th century. He published an algorithm which allows a user
Evansville - ENGR - 123
Engr 123 Assignment 4Assigned: February 16, 2009 Due: February 25, 2009Instructions: Download this assignment as a Microsoft Word document. Use Word to type your answers under each question. Turn in a hard copy of your results. 1. What is the pur
Evansville - ENGR - 123
Engr 123 Assignment 5 NimAssigned: March 5, 2009 Due: March 18, 2009Create a Windows GUI application in C# which will allow two users to play the game of Nim. The game of Nim is played with three piles of stones. The first pile has three stones,
Evansville - ENGR - 123
CS 210 Programming Assignment 6 Phone DirectoryAssigned: April 1, 2009 Due: April 15, 2009This is a telephone directory application in which the user can open a text file of names, phone numbers and notes. Begin by creating a form similar to that
Evansville - ENGR - 123
CS 210 Programming Assignment 7 File PlotAssigned: April 13, 2009 Due: April 27, 2009Write a C# program to read in a data file which contains a sequence of data points and plot the data points as a continuous graph in the Cartesian plane. Your pr
Evansville - ENGR - 123
CS 210 Programming Assignment 7 File PlotAssigned: April 13, 2009 Due: April 27, 2009Write a C# program to read in a data file which contains a sequence of data points and plot the data points as a continuous graph in the Cartesian plane. Your pr
Evansville - ENGR - 123
Engr 123 Practice Problems LoopsJanuary 23, 20081. Write a C# console application to produce a multiplication table for x times y where x goes from 1 to lastX and y goes from 1 to lastY. Input lastX and lastY from the user. For example, your pro
Evansville - ENGR - 123
Engr 123 GUI ExerciseMarch 12, 20081. Write a windows application that has all of the items shown in the figure below with the following names. txtEnter text box top left btnEnter button middle left lstData1 list box 1 in center left lstDa
Evansville - ENGR - 123
Engr 123 GUI ExerciseMarch 12, 20081. Write a windows application that has all of the items shown in the figure below with the following names. txtEnter text box top left btnEnter button middle left lstData1 list box 1 in center left lstDa
Evansville - ENGR - 123
Engr 123 String ProblemsMarch 21, 20071. Write a program to input a string from the user and determine whether or not the string is a palindrome. 2. Write a program to input a string from the user and delete all of the vowels. For example if the
Evansville - ENGR - 123
Engr 123 GUI ExerciseMarch 29, 20061. Write a program to allow the user to enter two strings in text boxes. Your program should do the following: A) Print the lengths of each string in a message box. (.length) B) Print the concatenation of the st
Evansville - ENGR - 123
Engr 123 Spring 2008 - Exam 3 Review SheetExam 3 will be on Wednesday, April 2. The exam is open book and open notes. The exam will consist of questions on the material in Chapter 9, 13, 14, and 16. The format of the exam will be similar to that of
Evansville - ENGR - 123
Engr 123 Spring 2008 - Exam 3 Review Sheet Exam 3 will be on Wednesday, April 2. The exam is open book and open notes. The exam will consist of questions on the material in Chapter 9, 13, 14, and 16. The format of the exam will be similar to that of
Evansville - CS - 210
CS 210 SyllabusFall 2008/09 Dr. BlandfordText: Savitch, Walter, Problem Solving with C+, 7th edition, Addison-Wesley, 2009 Reference: Deitel and Deitel, C+ How to Program, 5th edition, Pearson, 2005 Software: Microsoft Visual Studio 2007 is avail
Evansville - CS - 210
CS 210 Handing in Program AssignmentsFall, 2008Programming assignments will be written in C+ and each assignment should be stored in its own folder. When you create a project verify that the check box labeled "Create directory for solution." is c
Evansville - CS - 210
CS 210 Homework Assignment 1Assigned: Aug 28, 2008 Due: Sept. 4, 2008Instructions: For all of your problems show all of your work for full credit. Download this file as a Word document and type your answers directly below each question. 1. What i
Evansville - CS - 210
CS 210 Homework Assignment 3Assigned: Sept. 9, 2008 Due: Sept. 16, 2008Instructions: For all of your problems show all of your work for full credit. Download this file as a Word document and type your answers directly below each question. Turn in
Evansville - CS - 210
CS 210 Homework Assignment 4Assigned: Sept. 25, 2008 Due: October 2, 2008Debugger exercise Enter the program on the following page, compile it, and verify that it runs correctly. Use the debugger in Visual Studio to fill in the memory map below.
Evansville - CS - 210
CS 210 Homework assignment 05October 7, 2008 DUE: October 14, 2008Instructions: For all of your problems show all of your work for full credit. Download this file as a Word document and type your answers directly below each question. Turn in a ha
Evansville - CS - 210
CS 210 Homework assignment 06October 28, 2008 DUE: November 4, 2008Instructions: For all of your problems show all of your work for full credit. Download this file as a Word document and type your answers directly below each question. 1. Explain
Evansville - CS - 210
CS 210 Homework assignment 06October 28, 2008 DUE: November 4, 2008Instructions: For all of your problems show all of your work for full credit. Download this file as a Word document and type your answers directly below each question. 1. Explain
Evansville - CS - 210
CS 210 Practice Problems LoopsSeptember 11, 20081. Write a C+ program to produce a multiplication table for x times y where x goes from 1 to lastX and y goes from 1 to lastY. Input lastX and lastY from the user. For example, your program output
Evansville - CS - 210
CS 210 Practice Problems LoopsSeptember 11, 20081. Write a C+ program to produce a multiplication table for x times y where x goes from 1 to lastX and y goes from 1 to lastY. Input lastX and lastY from the user. For example, your program output
Evansville - CS - 210
CS 210 Practice Problems MoreLoopsSeptember 11, 20081. The value of can be approximated from the series given by 1 1 1 1 1 1 1 = 4 1 - + - + - + - 3 5 7 9 11 13 15 Write a program to prompt the user for the number of terms to use for an
Evansville - CS - 210
CS 210 String ProblemsOctober 30, 20081. If the string s = "Hello Mom!", write a short sequence to print this string in reverse order. 2. Suppose that two strings are defined using the string class as follows:string str1 = "Hello Mom! I like Jel
Evansville - CS - 210
CS 210 In Class 1. Show what the following code prints.int *p1, *p2; p1 = new int; p2 = new int; *p1 = 10; *p2 = 20; cout < *p1 < " " < *p2 < endl; p1 = p2; cout < *p1 < " " < *p2 < endl; *p1 = 30; cout < *p1 < " " < *p2 < endl;November 20, 2008
Evansville - CS - 210
Analysis for Quadratic1 Dr. Blandford January 17, 2001 CS 210 Assignment: Sample Assignment 1 This program inputs three numbers from the keyboard as coefficients a, b, and c for the equation ax^2 + bx + c = 0. The program calculates and prints the ro
Evansville - CS - 210
CS 210 Practical Hour ExamName_ October 23, 20071. The program below does a binary search. Enter the program and demonstrate that it produces the correct result.int main() {int n, found; int list[] = {1, 3, 5, 9, 13, 14, 16, 23, 43, 44}; cout <
Evansville - EE - 254
EE 254 Verilog Example for count by nMarch 23, 2007A mod counter counts up to a mod count value and rolls over to 0. In Verilog we can make the modcount and the number of flip flops parameters to implement a general purpose mod counter./ModCount
Evansville - EE - 254
EE 254 Verilog Example of an arbitrary sequence counter This sequence counter counts in the sequence 0 1 2 4 9 10 5 6 8 7 0 . . ./Sequence counter module SeqCount(clk, reset, state); parameter n = 4; input clk, reset; output [n-1:0]state; r
Evansville - EE - 254
EE 254 Verilog Example with multiple modulesMarch 23, 2007In Verilog you can create multiple modules in programs and use them similar to the way functions are used in C+. Individual modules should be defined using the parameter directive. A secon
Evansville - EE - 254
EE 254 Verilog Example with multiple modulesMarch 23, 2007In Verilog you can create multiple modules in programs and use them similar to the way functions are used in C+. Individual modules should be defined using the parameter directive. A secon
Evansville - EE - 254
EE 254 Verilog Example with non blocking equalsMarch 17, 2006Given below are two modules which implement a linear feedback shift register (lfsr). Each module has 3 flip-flops which form the shift register with outputs Q[2], Q[1], and Q[0]. The si
Evansville - EE - 254
EE 254 Verilog In Class 1. Suppose we make the following declarations:wire[3:1] w; wire w1; wire [1:0] w2;February 19, 2007Determine whether each of the following is legal or illegal and if illegal state why. A) w1 = w[2]; _ B) w2 = w[1:0]; _ C)
Evansville - EE - 254
EE 254Verilog TutorialDr. D. K. Blandford Department of Electrical Engineering and Computer Science University of Evansville February 23, 2006Copyright 2004EE 254University of EvansvilleVerilog Tutorial1.0 Syntax comments, punctuation, v
Evansville - EE - 254
EE 254 K-Map NotesSpring 2001/02Five variable K maps can be constructed using two side-by-side four variable maps. The adjacenties for each of the four variable maps follow the rules for four variable maps. For the five variable map, the two four
Evansville - EE - 254
EE 254 D-Type Edge Triggered Flip-Flop Green = zero, Red = one, Black = UnknownMarch 4, 2004
Evansville - EE - 254
EE 254 Sequence Detector for 110March 9, 2009Design and implement a sequence detector which will recognize the three-bit sequence 110. Your detector should output a 1 each time the sequence 110 comes in. The input is a clocked serial bit stream.
Evansville - EE - 410
EE41 - Advanced Networks Final Exam April 22, 2009 Due on Friday May 1, 2009 by 4:00 PM Your report should be written on a word processor and all include all graphs. Show all work and describe each of the steps in your design process. 1. Design a ban
Evansville - EE - 210
EE 210 Lab SafetyFall, 2006 Dr. BlandfordHere are the rules for safety that we will follow when working in the lab.1 1. Before starting work in the lab familiarize yourself with the location of fire extinguishers, circuit breakers, and power rece
Evansville - EE - 210
KC 137 Room Schedule Spring 2009Monday 7:00am 8:00 9:00 10:00 11:00 12:00 1:00 2:00 3:00 4:00 EE 454 EE 454 EE 215 EE 215 EE 215 EE 215 EE 454 EE 454 EE 215 EE 215 EE 215 EE 215 EE 454 EE 454 EE 215 EE 215 EE 215 EE 215 EE 215 EE 215 EE 215 EE 215 E
Evansville - EE - 210
EE 210 Team Project Sound PropagationVelocity MeasurementApril 9, 2009 Due: April 28, 2009To complete this project each team will devise an experiment to measure the speed of sound in at least four significantly different media. Research is to be
Evansville - EE - 210
EE 210 Team Project Sound Propagation Velocity MeasurementApril 9, 2009 Due: April 28, 2009To complete this project each team will devise an experiment to measure the speed of sound in at least four significantly different media. Research is to b
Evansville - EE - 210
Transistor notes This tutorial presents an intuitive view of how transistors and solid state diodes work. Amplifiers and switching concepts are explained and some simple models for transistor and diode circuit analysis are developed. The Mechanical R
Evansville - EE - 210
Transistor notes This tutorial presents an intuitive view of how transistors and solid state diodes work. Amplifiers and switching concepts are explained and some simple models for transistor and diode circuit analysis are developed. The Mechanical R
Evansville - EE - 210
EE 210 Hour Exam 3Name_ November 2, 20061. The characteristic equation for a given circuit is given by S 2 3S K 0 Find the range of values for K for which the system is over damped. Show all work.2. Consider the characteristic equation given
Evansville - EE - 210
EE 210 Review Problems for Hour Exam 3March 31, 20091. The characteristic equation for a given circuit is given by S 2 + 3S + K = 0 Find the range of values for K for which the system is over damped. Show all work. 2. Consider the characteristic
Evansville - EE - 210
EE 210 Exam 2 Review ProblemsMarch 12, 2009 Dr. Blandford1. In the circuit below Vi = 3 volts. What is the value of Vo. Show all work.2. For each circuit below determine the output voltage Vo if Vi = 3 volts. A) B) C)Vo = _Vo = __Vo = _
Evansville - EE - 210
EE 210 Exam 5 ReviewApril 21, 20091. The two circuits below L = 10mh and C = 1f. Find the impedance between nodes A and B for each circuit to a voltage waveform given by 10Cos(10000t - 60o).Impedance = _Impedance = _2. In the circuit below
Evansville - EE - 354
EE 354 Assignment 1 8051 ArchitectureAssigned: August 29, 2008 Due: September 8, 2008Instructions: Download this page and type your answers directly below each question. Turn in a hard copy of your results. 1. The 8051 is said to be an accumulato
Evansville - EE - 354
EE 354 Assignment 2 8051 ArchitectureAssigned:September 3, 2008 Due: September 12, 2008Write an assembly language program that runs on the AT89C51AC3 board. Add three LEDs to your board to P1.0, P1.1, and P1.2 and add a push button switch to the
Evansville - EE - 354
EE 354 Assignment 2 8051 ArchitectureAssigned:September 3, 2008 Due: September 12, 2008Write an assembly language program that runs on the AT89C51AC3 board. Add three LEDs to your board to P1.0, P1.1, and P1.2 and add a push button switch to the
Evansville - EE - 354
EE 354 Hour Exam 1 MAKE UPName_ September 17, 2008 DUE: September 19, 2008 in class NOT ACCEPTED LATEDownload this exam as a Word document and type your answers directly below each question. 1. Give two advantages of bank switching. (1 point)2.
Evansville - EE - 354
EE 354 Assignment 3 Project Short AnswerSeptember 19, 2008 Due: September 26, 2008Download this file as a Word document. Type your answers directly below each question and hand in the printed result. Answer the following questions for the slide r
Evansville - EE - 354
EE 354 Assignment 6October 27, 2008 Due: November 5, 2008Using Keil Microvision 3 create a project for the Philips LPC 2138 ARM 7 chip. Enter the code below as a program in c. Run your program in the simulator and open the D to A window and the l
Evansville - EE - 354
EE 354 Project 2 Speed of SoundAssigned: November 19, 2008 Due: December 9, 2008Description and specifications A piezzo-electric sensor can be used to measure vibrations in solid materials. For this project you will be given two such sensors. You
Evansville - EE - 354
EE 354 8051 Assembly language problemsA)mov a, #0aah rl a setb c rrc a B)mov mov mov mov R1, #0h a, #5h 1, a a, R1Sept. 1, 2008C)mov R7, #0ffh mov R1, #7 mov a, @R1a = _ a = _D) mov a, #22h mov 5, a inc 5 add a, R5 a = __ G) mov a, #55h mov R7
Evansville - EE - 354
EE 354 Project 2 test Download the following two projects from http:/csserver.evansville.edu/~blandfor/EE354/index.htm UARTPiezzoTest.zip A Vision project for the ARM SpeedOfSound.zip A C# project to run under Visual StudioFall, 20081. Compile