HW9_solution

# HW9_solution - SOLUTION ECE 2504 Introduction to Computer...

This preview shows pages 1–4. Sign up to view the full content.

SOLUTION ECE 2504 Introduction to Computer Engineering, Fall 2009 Homework 9 Due date: Fri, 6 Nov 09, 11:55pm Show all work. Use Logicworks to draw your circuit diagrams. 1. (4 pts) The 8-bit registers AR, BR, CR and DR initially have the following values: AR = 11110010 BR = 11111111 CR = 10111001 DR = 11101010 Determine the 8-bit values in each register after the execution of the following sequence of microoperations. AR AR + BR CR CR DR, BR BR + 1 AR AR - CR Answer: After “AR AR + BR”: AR=11110001 BR=11111111 CR=10111001 DR=11101010 After “CR CR DR, BR BR + 1”: AR=11110001 BR=00000000 CR=10101000 DR=11101010 After “AR AR – CR”: AR=01001001 BR=00000000 CR=10101000 DR=11101010 2. (4 pts) Register A holds the 8-bit binary 10110110. Determine the B operand and the logic microoperation to be performed in order to change the value in A to a. 11011111 selective complement: A 01101001 Operation Operand Value A 10110110 B 01101001 XOR A B 11011111 b. 10100010 mask: A 1X10X01X Operation Operand Value A 10110110 B 1X10X01X AND A B 10100010

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
SOLUTION 3. (6 pts) Draw the block diagram for the hardware that implements the following statement. y T 3 +yT 0 S 1 : A A B, B A where A and B are two n-bit registers and y, T 0 , T 3 , and S 1 are control variables. Include the logic gates for the control function. Hint: Recall that the symbol + designates an OR function in the control or Boolean function and an arithmetic plus in a microoperation. You will probably find the Logicworks part Reg-4 wo/CLR helpful. T3 y S1 LOAD B A T0 CLK D3 D2 D1 D0 Q3 Q2 Q1 Q0 CLK D3 D2 D1 D0 Q3 Q2 Q1 Q0
SOLUTION 4. (8 pts) Consider the characteristics of an ideal computer memory. Complete the table below by filling in the columns with types of memory devices, in order from most desirable to least desirable. Include at least 8 types of devices. Some samples:

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 01/28/2010 for the course ECE 2504 at Virginia Tech.

### Page1 / 8

HW9_solution - SOLUTION ECE 2504 Introduction to Computer...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online