fq_sol_s11

fq_sol_s11 - 1 k EEL'3701 — Dr Gugel Last Name 0V 6 First...

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

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

View Full Document

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.

Unformatted text preview: 1 ' k EEL'3701 — Dr. Gugel Last Name 0V! 6? First Name Spring 2011 "Final Quiz UF ID# - Open book and open notes, 90-minute examination to be done in pencil. - No electronic devices permitted. All work and solutions are to be written on the exam where appropriate. Point System: Page 1 & 2. 20 points M» Page 3. 15 points E1 r Page 4. 15 points ﬂmww TOTAL out of 50 ‘Grade Review Information: (NOTE: deadline of request for grade review is the day the exam is returned.) I .1. For lab #9, you are given an 8K x 8 EEPROM to hold your test program. Your design has the usual 4 bit program counter and all unused address lines are tied high. Show the memory contents you must program in the EEPROM to compute the following algorithm: Multiply the contents of registerA by 9 and store it in register B. 3 Your code should not exceed 9 nibbles in memory and your last instruction should be an infinite loop so that no new instructions are executed beyond this point. (6 pt.) EEPROM Address Required EEPROM Data (program all unused hits as zerg) Hex 0 Hex ‘FW Hex 5,431. ’45; Hex 5/91.. A 35\$! 2, Hex SAL 1435's 2. In the above problem, what i itial values of Reg. A will result in an over flow condition after the computation? (2 pt.) Li Pg. 'Score = 3. For the circuit below, derive the logic equation for Z.H.' Do not simplify! (6 pt.) 30 1|; I? 5| 0. DZL EJH ESE + cDE’ +CD£I4+ 656? LS" vs vs- 1'5 2H = 4. Using only. 2 input NAND gates, implement the foliowing logic equation. Do not simplify! (6 pt.) Page Score = 5. Avector containing 75 signed (2’s complement) 8 bit numbers is stored in memory. Write a G-CPU program to convert the 75 values to unsigned values by adding 128 to the original signed number. i.e. signed numbers -1 28, 0 , 1, and 127 convert to 0, 128, 129, and 255, respectively. Assume you have 1K x 8 ROM starting at \$4000 and 1K x 8 RAM at \$8000. Also assume the following below: a. Starting address of the signed vector is \$4100. Starting address of the unsigned vector should be \$8000. b. * The vector length is 75 and should be used as a counter value. _ c. Use the X register as a pointer to the signed vector. Use the Y reg. as a pointer to store the unsigned vectors. ‘ .. d. ROM \$4000-\$4FFF is designated as use for program. Only 75 values in RAM are used and the rest is open. ,. - a Write your answer on the leftmost column lines & if you need more room wrap around to the right column. ORG \$4000 Mtg #m fjpi‘thZinafimd Ml); #‘j 9000 M ___________ TOLJM—i __M4___ 575A 02% zﬂﬂ ‘ ' 5 we [1-5.1/ we /~% 1' inc ﬁll/5 “)2 . E . [44:5 ‘Kgff y'a/ec com . ___.__-—___._—.__—_u-———-— Mm rig/00' 6mm... 6a. 57,20»?— 5gl0b 2' \$40k 7'?» Slat/495 j was awe Laws w. Page 3 _ Page Score = 6; The following G-CPU program was put in EEPROM starting at address \$4000; answer the questions below. 005 0‘) :3? \$2300 #000 0;, 50\$, 00 taxi W '5 q007 so . /—_—) 343?“ \$40” 9002 0“ W de 0)“ LNYB #\$FF 9003 00 If” 00 DA SEE—BA TOP 4092} L/D W 542% ) 0 ‘ «foo I? 9’ 7 6A. What is the effective address for the ﬁrst LDAA #\$50 instruction? 9 Hex (2 pt.) BB. What is the effective address for the STAA \$40,Y the last time the loop is executed? Hex (2 pt.) 7% 60. What is the value of the BNE instruction operand? C3 Hex (2 pt.) 6D. lfthe clock is 1 MHz, how many seconds does it take to execute the STAA \$40,Y instruction? (1 pt.) , . 0000 1 9% {g c/ .— j/r; lfnsﬁﬁ v 0 yaw, §} [42¢ GE. Show the expected values for each of the column variables below for ali the cycles required to execute the LDAA 0,X and STAA \$40,Y instructions the first time they are executed. Ali answers in Hex. (8 pt.) Note: At reset all regs were initialized to zero. The above program will however after many of them. Reg Driving Device Driving gm Addr Bus Data Bus B 39 m ﬁg Y_R_eg Addr Bus Data Bus 1 4m 0c oi was i qooo 3000 pa got 7005’ OC OC ‘IDDS | 1: ll PC pom/t 2 l i ii 3 4/006” (no 05 #009 ‘ PC law“ 4 4000 02- 06 900;) I 1‘ n 94%? W s 9’00)9 1) H 400’9 I ” ll PC ﬂow 7 915198 #0 8 2W0 P6964 I 7% “{rwﬂkﬂ {GOP + ‘ W’ILHL PageScorejZ W m ...
View Full Document

This note was uploaded on 01/15/2012 for the course EEL 3701c taught by Professor Gugel during the Spring '05 term at University of Florida.

Page1 / 4

fq_sol_s11 - 1 k EEL'3701 — Dr Gugel Last Name 0V 6 First...

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

View Full Document
Ask a homework question - tutors are online