DOC PREVIEW
Berkeley COMPSCI 150 - Homework 8

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Homework #8UNIVERSITY OF CALIFORNIA Department of Electrical Engineering and Computer Sciences CS150 Fall 2001 Prof. Subramanian Homework #8 Due: Friday, November 30, 2001 1) Problem 11.2 on the book. 2) Given four registers (R1, R2, R3 and R4), and an additional signal A, you are required to design the interconnection between them so that the resulting datapath can support the operations described in the following cases: a) transfer the value of any register or A into any register, and being able to do several transfers at the same time. b) transfer the value of any register or A into any register, but only one transfer at a time. c) divide the registers into two groups: group 1 contains R1 and R2, and group 2 contains R3 and R4; you should be able to transfer one register of one group or A into one or both registers of the other group, and being able to do two inter-group transfers at the same time. 3) Given the datapath shown in section 9, page 1-20 of the lecture notes, describe in register transfer notation the execution of the following instructions: a) rt = 55h (Hint: the constant 55h is located in the memory right after the opcode) b) rt = mem(10h) (Hint: the constant 10h is located in the memory right after the opcode) 4) The figure shows the datapath of a simple Digital Signal Processor. The MAC unit performs the multiply-accumulate operation (A+B*C). The registers have a load control signal (PCld, IRld, Ald, Bld, Cld, MARld) and those with two inputs have a select signal (PCsel, Asel, MARsel and MBRsel). Additionally, MBR can enable a buffer to let the data flow from the memory to the registers by using the signal MBRen. a) Describe in register transfer notation how would you implement the instruction A=n, where n is a constant value. (Include the opcode fetch). A B C MAC PC +1 IR MAR MBR memory address memory data b) Which of the following instructions you can't implement with this di) B=mem(atapath? n) c) nce of valid instructions to ii) A=A+B*C iii) B=C iv) jump n v) A=B+C vi) jump A Give a sequeperform Y=X2, where X and Y are variables located in mem(10h) and mem(11h) respectively.5) Giv e figure, design an implementation of the FSM using the jump the ) Using the datapath of Problem 4, identify all the microoperations. Write the opcode fetch ) A processor has 3 general purpose registers (A,B,C) and is able to perform the following lt y. conditional jump on the sign of the ign en the state diagram of thcounter method. Your design should be complete, including state assignment, minimized Boolean expressions for Clear, Load and Count, jump state logic (if you use a ROM, give contents) and schematic. WAIT WAIT' WAIT WAIT' WAIT' WAITOP=0001 1X BC DE H K M F I G J LN A 6implementation using a horizontal microcode format. 7operations: load/store value from/to memory to/from any register, add A+B and store resuin any register, subtract A-B and store result in any register, shift right/left any register, jumpto any memory location unconditionally and conditionally on zero or sign of the result. a) Draw a datapath for this processor (you can use an ALU and a Shifter). b) Select a coding for the instructions, grouping the bits in a convenient wac) List the microoperations implied by the datapath. d) Write a sequence of microoperations to perform a result from the ALU. The jump instruction mnemonic is JP N,label and means: if the sis negative, jump to the address


View Full Document

Berkeley COMPSCI 150 - Homework 8

Documents in this Course
Lab 2

Lab 2

9 pages

Debugging

Debugging

28 pages

Lab 1

Lab 1

15 pages

Memory

Memory

13 pages

Lecture 7

Lecture 7

11 pages

SPDIF

SPDIF

18 pages

Memory

Memory

27 pages

Exam III

Exam III

15 pages

Quiz

Quiz

6 pages

Problem

Problem

3 pages

Memory

Memory

26 pages

Lab 1

Lab 1

9 pages

Memory

Memory

5 pages

Load more
Download Homework 8
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Homework 8 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Homework 8 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?