Docsity

Label all Signals - Computer Engineering - Exam, Exams of Computer Science

Toggle sidebar
bg1
ECE 2030 B 12:00pm Computer Engineering Fall 2010
5 problems, 9 pages Final Exam 13 December 2010
Instructions: This is a closed book, closed note exam. Calculators are not permitted. If you have
a question, raise your hand and I will come to you. Please work the exam in pencil and do not
separate the pages of the exam. For maximum credit, show your work.
Good Luck!
Your Name (please print) ________________________________________________
1 2 3 4 5 total
24 32 30 48 39 173
1
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Label all Signals - Computer Engineering - Exam and more Exams Computer Science in PDF only on Docsity!

ECE 2030 5 problems, B 9 1 pages 2 :00p m Computer EngineeringFinal Exam 13 DecemberFall (^20102010) Instructions: a question, raise your hand and I will come to you. Please work the exam in pencil and do not separate the pages of the exam. For maximum credit, show your work. Good Luck! This is a closed book, closed note exam. Calculators are not permitted. If you have Your Name ( please print ) ________________________________________________

241 322 303 484 395 total 173

ProblemECE 2030^ 5 problems, 1 (^3 B^9 parts,^1 pages^2 :00 24 p^ m points)^ Computer EngineeringFinal Exam^ 13 DecemberDesignFall^20102010 This Complete each design below. Be sure to label all signals. Part A: Define a completing the behavior table. 2 to 1 priority encoder, where I 1 > I 0 , by IN 0 IN 1

Out IN 0 EncoderIN^ Priority^ 2 to 1 1 VV Out 011 X (^01)

Implement true (non-complemented) inputs are available. Label all inputs (IN0, IN1) the 2 to 1 encoder using and outputs (Out, V) one. basic gate. Only

Part and an inverter. Determine # of switches needed. B: Implement a 1 to 2 demux using only pass gates

switches =

Pa write a sum of products (SOP) expression.rt C: Complete the truth table for even parity. Then A 01 B 00 Out (^01 ) A⊕B=

ProblemECE 2030^ 5 problems, 3 (3 parts, 30 points)^ B^9 1 pages^2 :00p^ m^ Computer EngineeringFinal Exam^ 13 DecemberAccountableFall^20102010 Part A (10 points) Design a toggle cell using (use icons, enable input The CLR signal has precedence over labeling inputs & outputs TE , and an active low clear input TE ). Your toggle cell should have an active high toggle. Also complete the behavior table for the toggle cell. transparent latchesCLR , clock inputs Φ, 1 2to1 muxes and Φ 2 , and an output, and inverters Out.

TE

Out CLR Φ (^1) Φ 2

TE 0 CLR 0 CLK↑↓ Out 10 01 ↑↓↑↓ Part B (10 points) Now combine these toggle cells to build a divide by 6^1 counter. Your counter^1 ↑↓ should have an external clear, external count enable, and three count outputs O basic gates (AND, OR, NAND, NOR, & NOT) you require. Assume clock inputs to the toggle cells are already connected. Your design should support multi-digit systems. 2 , O 1 , O 0. Use any

O 0

O 1

O 2

Ext CE

Ext CLR

TE CLR Out TE CLR Out TE CLR Out

Part C (10 points) Build a stopwatch that counts seconds and minutes using divide by N countersECE 2030^ 5 problems,^ B^9 1 pages^2 :00p^ m^ Computer EngineeringFinal Exam^ 13 DecemberFall^20102010 drawn below. Use any basic gates you require. Assume a one hertz clock is already connected. Be sure to fill in the needed divider for seconds, tens of seconds, and minutes.

Ext CLR Ext CE

CLR CE

Max^ Out CE^ Count^ Divide by __ Max^ Out Count^ Divide by __ CLR Max^ Out Count^ Divide by __ CLR (^) CE

ProblemECE 2030^ 5 problems, 5 (4 parts,^ B^9 1 pages^2 :00 39 p^ m points)^ Computer EngineeringFinal Exam^ 13 December“Random Bits”Fall^20102010 Part A (9 points) Consider the instruction set architecture below with fields containing zeros. opcode 0 0000 (^) dest. reg. (^0000) source 1 reg. 0000 0000 0000 0000 0000 0000immediate value What is the maximum number of opcodes? What is the number of registers? What is the range of the signed immediate value? Part B (9 points) For the representations below, determine the most positive value and the step size (difference between sequential values). notation. Fractions (e.g., 3/16ths) may be used. Signed representations are two’s complement. All answers should be expressed in decimal ( 15 representation^ signed integer bits). (0 bits)^ most positive value^ step size un signed fixed-point ( (signed fixed-point (^105) bits). ( bits). ( 105 bits)bits) Part C ( exponent field, and one sign bit. What is the largest value that can be represented (closest to infinity)? 9 points) A 16 bit floating point representation has a Express all answers in decimal. 10 bit mantissa field, a 5 bit What is the smallest value that can be represented (closest to zero)? How many decimal significant figures are supported? Part D (12 points) For each problem below, compute the operations using the rules of arithmetic, and indicate whether an overflow occurs assuming all numbers are expressed using a unsigned fixed-point and five bit two’s complement fixed-point representations. five bit

result^ +^1 11.111.1^ + 1^11 0..011^101 -^101010110 +^10 0.00.

unsigned error? signed error? □ no□ no □ yes□ yes □ no□ no □ yes□ yes □ no□ no □ yes□ yes □ no□ no □ yes□ yes

ECE 2030 5 problems, B 9 1 pages 2 :00p m Computer EngineeringFinal Exam 13 DecemberFall (^20102010)

register 32 x 32 file memory rwe^ X^5 Y^5 Z^5 au en^ arithmetic unit^ -a/s

im en sign extender im va

lu en^ logical unit^4 lf

addr data r/-w msel

st en logical functions X 0101 Y 0011 outlflflflf 0123 shift types 0 = logical 1 = arithmetic 2 = rotate + count shifts right - count shifts left ld en

cycle X Y Z rwe im en im va cycle numberregister driven onto X busregister driven onto Y busregister written from Z busregister write enableimmediate enable on Y busimmediate value au en -a/s lu en lf su en st ld en arithmetic unit enable-add / sub (0 = add, 1 = subtract)logical unit enablelogical functionshift unit enableshift typeload enable st en r/-w msel description store enableread/-write (0 = write, 1 = read)memory selectoperation description

su en^ shift unit^ count^2 st

16 32