



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Name GT#________ ECE2030b Fall ’02 - Exam p. 1 of 5 ECE 2030b, Intro. To Computer Eng., Final Exam Dec. 13, 2002 Prof. John A. Copeland School of Electrical and Computer Engineering RULES. i This quiz is closed book. ii. Calculators may not be used. iii Answer all questions and show all work to receive full credit. i v All questions have the same weight. (10 Points). All sub-questions within a question are weighted equally. v Please do not ask the proctors any questions during the exam about exam questions. Part of the test is understanding the question as written, without supplemental information. If you feel additional data is needed to solve the problem, make (and state) an assumption and then work the problem.
For the truth tables below, show the minterm sum of products, and the maxterm product of sums. Below that list the minterm indices and the maxterm indices A B C F 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 0 sum of products A'BC' + A'BC + AB'C' + ABC' product of sums (A+B+C) (A+B+C') (A'+B+C') (A'+B'+C') minterm indices 2,3,4, maxterm indices 0,1,5,
the Essential Prime Implicants with “EPI”. AB \ CD 00 01 11 10 00 0 1 0 0 01 1 1 1 1 11 0 1 0 1 10 0 1 0 0 Write the reduced logic expression: A'B + C'D + BCD' _ minterm indices (decimal) 1, 4, 5, 6, 7, 9, 13, 14 __
using the mixed logic technique. Assume only signals A, B, C, and D are available. A’ = NOT A.. Step 1. Step 2. Show gates in standard form (not DeMorgan alternate forms) and no bars.
Do the arithmetic below in two’s compliment binary arithmetic (8-bit integers, -128 to +127). +28 _______ 0001 1100 ____________
Equal” (BNE $X, $Y) commands. Show how to use the “Set on Less Than” (SLT $1, $X, $Y) and BEQ or BNE to make as two-command equivalent of the following (note: $0 always = 0 ): BLT $2, $ SLT $1, $2, $ BNE $0, $1, label branch if $1 == 1 BGT $2, $ SLT $1, $3, $2 $1 = 1 if $3 < $2, $1 = 0 if $3 >= $ BNE $0, $1, label branch if $1 == 1
[____ Conditional ______] Branch commands are always (conditional, unconditional) [____ relative _______] and (absolute, relative). [_____ Unconditional ] Jump commands are always (conditional, unconditional) [________ absolute _____] and (absolute, relative). [_________ X + 4 _______] If a subroutine is called by an instruction at memory location X, what is the location of the first instruction executed after the subroutine returns. [______ on the stack _____] If there are nested subroutines, where are the return locations kept?. [_____ recursive _________] A subroutine that can calls itself is called ____. [ **push the current value]** What must a subroutine do before it can use a register. [_ pop the old values back _] What must a subroutine do before it can return with regard to registers that were used.
Show how the control lines are set to achieve the operations below. Assume msel = 1; asl: 0=AU, 1=LU, 2=SU, 3 = invalid; ST: 0=arithmetic, 1=logical, 2=rotate, 3 = invalid; LF: 0=AND, 1=OR, 2=XOR, 3 = invalid; a’/s: 0=add, 1= subtract rwe: 1=write, 0= do not write Add $2 to the value in memory (address=$9) and put the result into $2. $5 = M[$9] + $ (note: loading or storing data requires a separate CPU clock cycle) Mem r ’ / w X Y Z r w e asl a ’ / s en ld en st en im en im va (Immediate Value)