3 Pages

hw2

Course: EECS 443, Fall 2009
School: E. Kentucky
Rating:
 
 
 
 
 

Word Count: 759

Document Preview

443 EECS Digital Systems Design Homework 2 Spring 2009 RISC processing is based on the principle that a small number of highly efcient operations is more effective than many complex, special purpose instructions. Thus, we need to start thinking about how typical operations can be implemented using RISC instructions. Exercise 1 Use the instruction set of KURM09 to implement the following two operations: 1. Load...

Register Now

Unformatted Document Excerpt

Coursehero >> Kentucky >> E. Kentucky >> EECS 443

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.
443 EECS Digital Systems Design Homework 2 Spring 2009 RISC processing is based on the principle that a small number of highly efcient operations is more effective than many complex, special purpose instructions. Thus, we need to start thinking about how typical operations can be implemented using RISC instructions. Exercise 1 Use the instruction set of KURM09 to implement the following two operations: 1. Load R11 with the contents of the memory location stored in R12 . (Register direct) 2. Load R11 with the contents of the memory location stored in the memory location stored R12 . (Register indirect addressing) 3. Copy the contents of the memory location stored in R11 to the memory location stored in R12 . (Memory move) 4. Copy the contents of R10 words of memory starting with the address stored in R11 to the memory location starting with R12 . (Block memory move) 5. Increment R15 by 2. (Standard increment operation) 6. Branch to the address PC + 8 if the contents of R11 are less than 0. (BLZ in many instruction sets) 7. Branch to the address PC + 8 if the contents of R11 are greater than 1. (BGT in many instruction sets) 8. Simulate a stack push by treating the contents of R12 as data to be pushed on a stack in memory whose top is pointed to by R15 . Your stack should grown down in memory. (Set up for a function call.) 9. Redo the previous problem as a subroutine. Show an example call to your subroutine. Assume that the return address for the subroutine will be stored in R14 . (Subroutine denition.) 10. Simulate a stack pop by moving the top element of a stack pointed to by R15 into R12 . On the stack-based problems, remember to update the stack pointer after all operations. Instruction add Rs ,Rt ,Rd sub Rs ,Rt ,Rd or Rs ,Rt ,Rd and Rs ,Rt ,Rd set Rs ,Rt ,msk bra msk,o lw Rs ,Rt ,o sw Rs ,Rt ,o jmpl Rs ,Rt ,o f f Meaning Rd := Rs + Rt Rd := Rs Rt Rd := Rs Rt Rd := Rs Rt set status msk if (msk status) = 0 pc := pc + o Rt := M ( Rs + o ) M ( Rs + o ) := Rt Rt := PC + o PC := Rs Table 1: KURM instruction set Exercise 1 is designed to show you the code that would be generated by a compiler for some common run-time operations and to demonstrate we that only need 1 addressing mode per operand for any instruction. eecs 443 digital systems design 2 architecture beh of cpu is begin CPU: process M : array of word; R11,R12,R13 : word; PC : word; begin ... end process CPU; end architecture beh; Figure 1: VHDL skeleton for a CPU process. Exercise 2 Assume the VHDL fragment in gure 1 representing the skeleton of a simple CPU model. Using VHDL statements, dene behaviors for the following operators and memory addressing modes: (Note that you need to indicate only the VHDL needed to implement the function. You may assume that word addition and comparison functions exist. These are not necessarily instructions that are dened for KURM09.) 1. lw R11 #99 - Load R11 with the value 99. 2. lw R11 R12 - Load R11 from the address stored in R12 3. lw R11 ( R12 ) - Load R11 from the address stored in the memory location at the address in R12 4. sw R11 R13 ( R12 ) - Store R11 using register indirect addressing with an offset stored in R13 . 5. add R12 R13 R11 - Add contents of R12 and R13 storing the result in R11 6. inc R11 - Increment R11 by 1 7. mov R11 R12 - Move the contents of R11 into R12 8. push R11 R12 - Treating the address stored in R12 as the top of a stack, push the value in R11 and update R12 appropriately 9. bze R11 R12 - Jump to the ...

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:

E. Kentucky - EECS - 443
EECS 443 Digital Systems DesignHomework 1 Due: January 27, 2009Exercise 1 Design 1-bit, 4-1 multiplexer (MUX) using AND/OR logic. Exercise 2 Using a 1 bit, 4-1 MUX, design a circuit that implements the function in table 1. Exercise 3 Implement the
E. Kentucky - EECS - 762
EECS 762 - Programming Language Foundation IFall Semester, 2008 DescriptionProgramming Language Foundation I is an introduction to the semantics of programming languages. The course will present modern approaches for dening dynamic and static seman
E. Kentucky - EECS - 762
A Haskell Companion for "Fold and Unfold for Program Semantics"Uk'taad B'mal The University of Kansas - ITTC 2335 Irving Hill Rd, Lawrence, KS 66045 lambda@ittc.ku.edu June 15, 2004Abstract This document is a primer to accompany the paper "Fold and
E. Kentucky - EECS - 762
p!8H@H3iW ~&f~vp ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 6Hyi3jHw~vvjb ~ 8t~H3aW~vinHAiiA ~ ~ ~ ibW bx88@H8HHt@HH ~ ~ 8Hx@!b@8x8HbtiHW ~ ~ ~ ~ @bx@fwcHHbvH!iHW
E. Kentucky - EECS - 762
A Haskell Companion for Using catamorphisms, subtypes and monad transformers for writing modular functional interpretersUktaad Bmal The University of Kansas - ITTC 2335 Irving Hill Rd, Lawrence, KS 66045 lambda@ittc.ku.edu March 3, 2004Abstract Thi
E. Kentucky - EECS - 762
4.2.1
E. Kentucky - EECS - 512
EECS 512 - Electronic Circuits III (Spring `09)MWF 2:00 - 2:50 pmRoom 3154 Learned Hall KU Course # 67607Instructor: Office Hours: Office: Phone: Email: Catalog data:Prof. Ron Hui 1:00- 2:00pm, MWF and by appointment 3026 Eaton Hall or 222 Nich
University of Montana - MATH - 447
More on CI GraphsIn the DEMO of week 9 lab I mentioned an article I found which constructs a graph of confidence intervals, where you can actually see how many of the CIs capture the mean. This is posted in the web site as Cigraph.pdf .I revisited t
University of Montana - MONOGRAPH - 1
TMME Monograph1, p.119HOW MANY DEATHS? EDUCATION FOR STATISTICAL EMPATHY Swapna Mukhopadhyay1 and Brian Greer Portland State University, USAAbstract In this paper, we suggest the term "statistical empathy" for the ability to relate statistical dat
University of Montana - MONOGRAPH - 1
TMME Monograph1, p.63UNDERTAKING AN ARCHAEOLOGICAL DIG IN SEARCH OF PEDAGOGICAL RELAY Robyn Zevenbergen1 Griffith University, Australia Steve Flavel Consultant stevef@upnaway.comAbstract: In this paper we discuss a method through which it becomes
University of Montana - MATH - 111
Spring 2009Math 111 MWF(This schedule is tentative and subject to changes.)Sections in the book HomeworkCourse Coordinator: Regina Souza Room Math 104 243-2166 regina.souza@umontana.edu1 2 3 4 5 6 7 8 9 11 12 10 13 14 15 16 17 18 19 20 21 22
University of Montana - PHYSICS - 214
Change of Phase. Physics 214 We will determine the heat of fusion (LF ) of water and the heat of vaporization of water (LV ). Pre-lab assignment: 1. Read these lab instructions carefully. 2. Prepare the rst page of your lab report by writing out the
University of Montana - PHYS - 212
LECTURE 2More on heat Phase transformations CalorimetryWe define Q as the heat the system gains from its environmentSince Q is heat gained by the system: Q Q>0 <0Thermal energy is transferred from the environment to the system Thermal ene
University of Montana - PHYS - 212
Phys 222 A. WareSpring 2008 Homework 3 SolutionsHRW 20.Q4 (a) The horizontal line, E, is isothermal because t = T0 remains constant. (b) C is isobaric because T V in an iosbaric process. Both the volume and temperature double for C. (c) For an a
University of Montana - PHYS - 212
LECTURE 7EntropyChanges in entropy of the Universe lead to irreversible processesEntropy: A measure of the disorder of a systemReversible or not?Macroscopically, entropy is a property of a system and heating causes changes in a systems
University of Montana - PHYSICS - 214
Measuring the Coecient of Linear Expansion for Copper, Steel, and Aluminum. Physics 214 In this lab we will experimentally determine the Coecient of Linear Expansion for Copper, Steel, and Aluminum. Pre-lab assignment: 1. Read these lab instructions
University of Montana - PHYS - 212
Homework KeyChapter 19 Homework Due by Monday, February 9 at the start of class.Physics 222 Spring 2007Physics 212 Spring 2009of length L =1.25.0 m of length open25.0 one end contains air at contains air at A pipe that is L = at m that is ope
University of Montana - PHYS - 212
Phys 222 A. Ware HRW 19.2 We just need to use Avogadros number: m = (7.50 1024 atoms)(74.9 g/mol) 1 mol 6.02 1023 atomsSpring 2008 Homework 2 Solutions 1 kg 1000 g= 0.933 kgHRW 19.4 A little fun with the ideal gas law and Avogadros number (No
University of Montana - PHYSICS - 214
Errors and Treatment of DataPhysics 214Introduction This handout is an introduction and discussion of most of the error analysis that you will need for this laboratory course. This rst laboratory focuses on becoming familiar with the material in th
University of Montana - MATH - 444
WHAT YOU NEED TO KNOW - Chapters 1-4.31. Know the basic steps involved in statistical methodology: collecting, summarizing, analyzing, and presenting data. 2. Know how to identify the population and sample in a study, and what the benets and drawbac
University of Montana - MATH - 241
WHAT YOU NEED TO KNOW - Test #3 (Final): Chapters 17-231. Know when to use the binomial model and how to calculate probabilities based on this model. 2. Know the basic assumptions of a binomial experiment. 3. Be able to calculate binomial probabilit
University of Montana - MONOGRAPH - 2
COGNITIVE PSYCHOLOGY AND MATHEMATICS EDUCATION: REFLECTIONS ON THE PAST AND THE FUTURE1Lyn D. English2 Queensland University of Technology, AustraliaIt has been well over a decade since I wrote the book, Mathematics education: Models and processes
University of Montana - ETD - 09262007
EDUCATION LAW PRIORITIES AND NEED: A COMPARATIVE ANALYSIS by Michael A. Magone B.A., University of Montana, 1983 J.D., University of Montana, 1988 Dissertation presented in partial fulfillment of the requirements for the degree of Doctor of Education
University of Montana - ETD - 01172007
ECOSYSTEM ENGINEERING: BEAVER AND THE POPULATION STRUCTURE OF COLUMBIA SPOTTED FROGS IN WESTERN MONTANABy Stephen Joseph Amish B.A., Whitman College, Walla Walla, WA, 1989 Thesis presented in partial fulfillment of the requirements for the degree of
University of Montana - ETD - 05302008
PRIOR PIDGINIZATION AND CREOLIZATION IN MOROCCAN ARABIC By Kennetta Kathleen Aune B.A in Modern Languages and Literature, Montana State University, Bozeman, Montana, 2003 B.S. in Elementary Education, Montana State University, Bozeman, Montana, 2003
University of Montana - ETD - 05102007
THE CREATION OF CARGO SCANNER SOFTWARE TO IMPROVE THE CONTAINER PACKING PROCESS By Jonathan Berkey Adams B.S., Liberty University, Lynchburg, Virginia, 2005 Professional Paper presented in partial fulfillment of the requirements for the degree of Mas
University of Montana - ETD - 05122008
THE REWILDING OF NEW YORKS NORTH COUNTRY: BEAVERS, MOOSE, CANINES AND THE ADIRONDACKS By Peter Miles Aagaard Bachelor of Arts, State University of New York College at Geneseo, Geneseo, NY, 2005 Thesis presented in partial fulfillment of the requireme
University of Montana - ETD - 05302008
INTO THE DEN OF EVILS: THE GENZAROS IN COLONIAL NEW MEXICO By DORIS SWANN AVERY Bachelor of Arts, Duke University, Durham, NC, 1993 Thesis presented in partial fulfillment of the requirements for the degree of Master of Arts in History The University
University of Montana - ETD - 09262007
PHARMACOLOGICAL MODELING AND REGULATION OF EXCITATORY AMINO ACID TRANSPORTERS (EAATS) By Shailesh Ramjilal Agarwal Bachelor of Pharmacy, The University of Pune, Pune, India, 1997 Dissertation presented in partial fulfillment of the requirements for t
University of Montana - ETD - 05302007
A MARKEDNESS APPROACH TO EPENTHESIS IN ARABIC SPEAKERS L2 ENGLISHBy Elizabeth Dawn Alezetes B.A. in English, Ball State University, Muncie, Indiana, 2004Thesis presented in partial fulfillment of the requirements for the degree of Master of Arts
University of Montana - ETD - 05112007
COMPARISON OF STRATEGIES FOR THE CONSTRAINT DETERMINATION OF SIMULINK MODELS By Charles Joseph Alex, IV Bachelor of Science, Rensselaer Polytechnic Institute, Troy, NY, 1993 Thesis presented in partial fulllment of the requirements for the degree of
University of Montana - ETD - 05112007
A LITHIC RAW MATERIALS STUDY OF THE BRIDGE RIVER SITE, BRITISH COLUMBIA, CANADAby Darrell A. Austin B.A. University of Montana Thesis Presented in partial fulfillment of the requirements for the degree of Master of Arts The University of Montana Sp
University of Montana - ETD - 07172007
FALL AND REDEMPTION: THE ESSENCE OF COUNTRY MUSIC By Patrick Jude Campbell Bachelor of Arts in English Literature, University of Utah, Salt Lake City, Utah, 1992 presented in partial fulfillment of the requirements for the degree of Master of Arts in
University of Montana - ETD - 12212007
PILOT STUDY ON THE PREDICTION OF HEART ROT IN APPARENTLY SOUND WESTERN LARCH FOR SNAG RETENTION AND MANAGEMENTBy Angela G. Daenzer B.S., Evergreen State College, 1999 Thesis Presented in partial fulfillment of the requirements for the degree of Mas
University of Montana - ETD - 05302007
FREE LIVING NITROGEN-FIXATION IN PONDEROSA PINE/DOUGLAS-FIR FORESTS OF WESTERN MONTANABY TRICIA A. BURGOYNE B.S. UNIVERSITY OF WISCONSIN, MADISON, 2002 THESIS PRESENTED IN PARTIAL FULFILLMENT OF THE REQUIREMENTSFOR THE DEGREE OFMASTERS OF SCIENC
University of Montana - ETD - 07162007
CALLING ALL CLOWNS A CREATIVE PROJECT AND PERSONAL JOURNEYBy Linda Ann Elizabeth Cripps B.S. - Architecture, University of Virginia, Charlottesville, Virginia, 1978 Professional Paper presented in partial fulfillment of the requirements for the deg
E. Kentucky - CPE - 221
UNIFORM STATE, UNIFORM FLOW Is it weird that the temperature of a venting tank will drop, and the temperature of a filling tank will rise? Consider filling a tank : Assume: No KE, PE effects Adiabatic, Q = 0 Constant volume: W = 0 (W is moving bounda
E. Kentucky - CPE - 522
EXAM 1 Tuesday 9/16 2:00 3:20 OR 2:30 3:50 Covers: Chapter 2, 3.2Inflation definitionsInflationDecrease or increase (deflation) of the purchasing power of money over time. Cash flows in terms of todays dollars effect of inflation is removed
E. Kentucky - CPE - 221
MPS 6-STEP STRATEGY TO PROBLEM SOLVING With your texts strategy included A. Engage B. Define C. Explore 1. 2. 3. 4. 5. 6. 7. D. Plan E. Do It F. Evaluate Sketch. Identify control mass or control. List known properties for the initial state. List know
E. Kentucky - CPE - 211
MATERIAL BALANCE EQUATION SOLUTION TECHNIQUES As we have seen, we typically have to solve a system of N equations with N unknowns. There are 3 ways to do this: 1. Algebra. This is what we have been doing all along. Look for small systems of equations
E. Kentucky - CPE - 522
CHAPTER 3 Inflation & Bonds Inflation Review: To convert Constant Value cash flows to Then Current cash flows: TC = CV (1 + j )n To convert Then Current cash flows to Constant Value cash flows: TC CV = = TC (1 + j ) n (1 + j )n where j is the annual
E. Kentucky - CPE - 211
INTRODUCTION TO MATERIAL BALANCES In Chemical Engineering, a process is an operation or series of operations that causes a physical or chemical change in a substance. The streams entering are the input or feed streams. The streams leaving are the out
E. Kentucky - CPE - 613
SynDesCoDivision of C. S. Howat & Associates Lawrence, Kansas 66049-1840Memo To: Memo From: Job: Memo Date: Re: Exercise #:Process Design Group CSH, Group Leader In Class/Out of Class Exercises October 17, 2005 Process Integration Exercise 41.
E. Kentucky - CPE - 613
Dynamic Simulations with Controls on ChemCAD, A Short TutorialMurali Satuluri and Colin S. Chip HowatKurata Thermodynamics Laboratory Department of Chemical & Petroleum Engineering University of Kansas1Outline Motivation Dynamic Simulat
E. Kentucky - CPE - 221
CHAPTER 2 Concepts and DefinitionsSYSTEMS AND CONTROL VOLUMES:For a closed system, no material flows across the control volume boundary, but energy, in the form of heat or work, can flow across the control volume boundary. Example: closed piston T
E. Kentucky - CPE - 624
PROCESS HAZARD EVALUATION ChecklistsPlant & Environmental SafetyColin S. Howat Ph.D., P.E.Checklist - PES - CSH 1998 C. S. Howat1Process Hazard Evaluation - ChecklistsLecture: Title: Thought: One Class Period Introduction to Checklists in
E. Kentucky - CPE - 221
CHAPTER 3 Properties of a Pure SubstanceA pure substance has the same chemical composition (one kind of molecule) throughout. If two phases are in equilibrium for a pure substance, the composition is the same in both phases. If two phases are in equ
E. Kentucky - MATH - 116
Math 116Je Mermins sections, Quiz 8, April 61. (1 point each) Indicate whether the following statements are true or false. (True means Always true, false means sometimes false or possibly false.) No justication is necessary. a is a number, x and y
University of Montana - MATH - 447
Lab # 9 KEY 2008MA 447Statistical Methods, Fall,Topics this week: Confidence Intervals Doing Simulations with R 1. We took samples from the normal distribution, as well as from an EXCEL set of data called HeartRates.csv and found that the Centr
University of Montana - MATH - 549
Unequal Probability Sampling (Chapter 6)Unequal probability sampling is when some units in the population have probabilities of being selected from others. This handout introduces the Hansen-Hurwitz (H-H) estimator and Horvitz-Thompson (H-T) estimat
University of Montana - MATH - 549
The Horvitz-Thompson EstimatorThe Horvitz-Thompson estimator is a general estimator for a population total, which can be used for any probability sampling plan. This includes both sampling with and without replacement. Let i be the probability that
University of Montana - MATH - 549
Double Sampling (Chapter 14)To this point, we have considered a number of sampling or estimation methods (ratio and regression estimation, stratified sampling, e.g.) whereby auxiliary information was used to estimate a population mean or total. In a
University of Montana - MATH - 549
Regression EstimationRecall that the method of ratio estimation is appropriate when the response variable y is linearly related to some auxiliary variable x, and the value of y = 0 when x = 0. Regression estimation requires population information on
University of Montana - MATH - 549
Sample Size Considerations (Chapter 4)Up to now, we have assumed that the sample size n was known, and have studied properties of various resulting estimators of the population mean or total. Taking a step back, we now consider the more realistic qu
University of Montana - MATH - 447
Lab Report # 5 Key Name: _This weeks topics include: 2 way tables Segmented (or stacked) bar graphs The 68-95-99.7 ruleMA 447 Fall, 2008 Date: _= 1. In a recent previous year in MA 241, a survey was taken among statistics students and is call
University of Montana - MATH - 549
Sampling with Probability Proportional to Size (Supplement)Consider a sampling situation where we sample with replacement with probability proportional to size (PPS). This situation is discussed in Section 6.1 where the population mean and total can
University of Montana - MATH - 447
Lab # 5 Demo 2008MA 447-Statistical Methods, Fall,Topics this week: 2 way tables categorical data segmented bar graphs distributions based upon tables and segmented bar graphs "Checking out" the 68-95-99.7 Empirical Rule with real data == 1.
University of Montana - BIOL - 406
2/10/09Genetics IPopulations change over time* the genotypes present in a population today are not the same as the genotypes that were present in that population ve hundred thousand years ago.Assumes that individuals act in such a way as to m
E. Kentucky - ANTH - 503
140Human Aging: Biological Perspectives Other ways of reducing the risk of a stroke in individuals of advanced age include reducing high blood pressure, treating blood disorders, and avoiding exhaustion. When a person seems to be having a stroke, m
E. Kentucky - OFR - 08
TABLE 1 - Desorption data for KLM EXPLORATION DUNN #7; NW SE SE 33-T.8S.-R.20E., Jefferson County, KS NOTE: los gas is estimated by time interval between at surface and canister times, and total gas evolved est. lost gas (cc) = TIME 0F: elapsed time
E. Kentucky - OFR - 07
CHAPTER 7. WATER SATURATIONS AND FREE WATER LEVELAlan P. Byrnes and Martin K. DuboisIntroduction Determining accurate water saturations (Sw) in the Hugoton is important both for accurate volumetric calculations and for flow modeling, because water