Y = (A + C) (A + B) (B + C)

Similar documents
Total: EEL 3701 Digital Logic & Computer Systems Final Exam Fall Semester 2007 COVER SHEET: Re-Grade Information: 1 (10) 2 (10) 3 (10) 4 (14) 5 (14)

LECTURE #21: G-CPU & Assembly Code EEL 3701: Digital Logic and Computer Systems Based on lecture notes by Dr. Eric M. Schwartz

Homework 12 Solutions

Decimal, Hexadecimal and Binary Numbers Writing an assembly language program

EE 5340/7340 Motorola 68HC11 Microcontroler Lecture 1. Carlos E. Davila, Electrical Engineering Dept. Southern Methodist University

ECE331 Handout 3- ASM Instructions, Address Modes and Directives

Lecture 6 Assembly Programming: Branch & Iteration

ME4447/6405. Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics. Instructor: Professor Charles Ume LECTURE 7

EEL 4511 Dr. Gugel LAST NAME FIRST NAME Fall 2015, Real-time DSP Exam #1

Programming the Motorola MC68HC11 Microcontroller

EEL 4511 Dr. Gugel LAST NAME FIRST NAME Spring 2016, Real-time DSP Exam #1

UNIVERSITY OF HONG KONG DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING. Principles of Computer Operation

Go Gators! Relax! May the Schwartz be with you!

UNIVERSITY OF HONG KONG DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING

Menu Computer Organization Programming Model for the an example microprocessors (the G-CPU & Motorola 68HC11) Assembly Programming Look into my...

Most of the HC12 s instructions access data in memory There are several ways for the HC12 to determine which address to access

538 Lecture Notes Week 2

Introduction to Embedded Systems and Chapter 1: Introduction to HCS12/MC9S12. EE383: Introduction to Embedded Systems University of Kentucky

EMCH 367 Fundamentals of Microcontrollers Example_Sort EXAMPLE SORT

Lab 2 Part 1 Assembly Language Programming and 9S12 Ports

Introduction to Programming

Serial Communication Through an Asynchronous FIFO Buffer

Ryerson University Department of Electrical and Computer Engineering ELE 538 Microprocessor Systems Final Examination December 8, 2003

Lecture 9 Subroutines

Teaching and Curriculum Development of Microprocessor Classes

EE 3170 Microcontroller Applications

Exam I Review February 2017

ECE 372 Microcontroller Design Assembly Programming Arrays. ECE 372 Microcontroller Design Assembly Programming Arrays

2) [ 2 marks] Both of the following statements cause the value $0300 to be stored in location $1000, but at different times. Explain the difference.

CC312: Computer Organization

ECE 372 Microcontroller Design Basic Assembly Programming. ECE 372 Microcontroller Design Basic Assembly Programming

Chapter 2: HCS12 Assembly Programming. EE383: Introduction to Embedded Systems University of Kentucky. Samir Rawashdeh

ELEG3924 Microprocessor

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Sciences

the SAP-2 I. Intro cmpt-150-arc Sections 8-8, 8-9, 9-4, 9-5, 9.6, We ll do this in bits and pieces, doing the beginning of each section first.

MC9S12 Assembler Directives A Summary of MC9S12 Instructions Disassembly of MC9S12 op codes. Summary of HCS12 addressing modes ADDRESSING MODES

ELEG3923 Microprocessor Ch.3 Jump, Loop, and Call

Read this before starting!

Computer Architecture 2/26/01 Lecture #

Good Evening! Welcome!

Introduction to Microcontrollers

Basic characteristics & features of 8086 Microprocessor Dr. M. Hebaishy

The Motorola 68HC11 Instruc5on Set

Table 1: Mnemonics Operations Dictionary. Add Accumulators Add B to Y. Add with carry to B. Add Memory to B. Add 16-bit to D And B with Memory

Introduction to Microcontrollers II

CE-320 Microcomputers I Winter 2010 LAB 1: MINIIDE GROUP #: NAME: PARTNER: Lab 1 Page 1

Lab 8: Debugging Embedded Devices and Software

May the Schwartz be with you!

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER

Section 001. Read this before starting!

ASSIGNMENT ECE514 (COMPUTER ORGANIZATION) ASSIGNMENT NO. 3

Sample Problem Set #1

CS 151 Quiz 4. Instructions: Student ID. (Last Name) (First Name) Signature

University of Florida EEL 4744 Fall 1998 Dr. Eric M. Schwartz

Lecture 5:8086 Outline: 1. introduction 2. execution unit 3. bus interface unit

Chapter 2A Instructions: Language of the Computer

COE608: Computer Organization and Architectures Winter Introduction to the Semi-RISC Processor

Chapter 4. MARIE: An Introduction to a Simple Computer. Chapter 4 Objectives. 4.1 Introduction. 4.2 CPU Basics

Exam 2 E2-1 Fall Name: Exam 2

Philadelphia University Student Name: Student Number:

Section 001 & 002. Read this before starting!

C SC 230 Computer Architecture and Assembly Language April 2000 Exam Sample Solutions

ME 6405 Introduction to Mechatronics

ECE3120: Computer Systems Hardware & Software Development Tools

The Itanium Bit Microprocessor Report

Hardware and Software Architecture. Chapter 2

ORG ; TWO. Assembly Language Programming

CHAPTER 8. Solutions for Exercises

Using the MC9S12 in Expanded Mode External Ports S12CPUV2 Reference Manual Multiplexed External Bus Interface (MEBI) Module V3 Block User Guide

HC11 Instruction Set Architecture

ECE/CE 3720: Embedded System Design

E3940 Microprocessor Systems Laboratory. Introduction to the Z80

HC11 Instruction Set Architecture

CENG3420 Lecture 03 Review

Introduction to Microcontrollers II

Memory General R0 Registers R1 R2. Input Register 1. Input Register 2. Program Counter. Instruction Register

EECS 270 Midterm Exam

ECET Chapter 2, Part 2 of 3

Instructions: MIPS ISA. Chapter 2 Instructions: Language of the Computer 1

1. Memory Mapped Systems 2. Adding Unsigned Numbers

CS303 LOGIC DESIGN FINAL EXAM

EE 3170 Microcontroller Applications

Chapter 3. Z80 Instructions & Assembly Language. Von Neumann Architecture. Memory. instructions. program. data

ENGIN 112 Intro to Electrical and Computer Engineering

Register Transfer and Micro-operations

Note that none of the above MAY be a VALID ANSWER.

Using the stack and the stack pointer

UNIVERSITY OF MANITOBA DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING. Term Test #2 Solution ECE 3610 MICROPROCESSING SYSTEMS

COSC 243. Instruction Sets And Addressing Modes. Lecture 7&8 Instruction Sets and Addressing Modes. COSC 243 (Computer Architecture)

CSE2421 FINAL EXAM SPRING Name KEY. Instructions: Signature

N.B. These pastpapers may rely on the knowledge gained from the previous chapters.

ECE 4510/5530 Microcontroller Applications Chapter 1

538 Lecture Notes Week 1

Lab 7: Asynchronous Serial I/O

EE251: Tuesday December 4

Timing Generation and Measurements


ECE 331: PC Lab 3 Stack and Subroutines

ECE 2030B 1:00pm Computer Engineering Spring problems, 5 pages Exam Two 10 March 2010

M. Sc (CS) (II Semester) Examination, Subject: Computer System Architecture Paper Code: M.Sc-CS-203. Time: Three Hours] [Maximum Marks: 60

Transcription:

EEL3701 Dr. Gugel Last Name First Name Spring 2012 Final Quiz UF ID# Open book and open notes, 90-minute examination to be done in non-red pencil or pen. No electronic devices permitted. All work and solutions are to be written on the exam where appropriate. Point System: Pages 1/2 => 20 points Page 3 => 21 points Page 4 => 9 points TOTAL => (50 pt.) Grade Review Information: (NOTE: deadline of request for grade review is the day the exam is returned.) 1. Using only 2 input OR gates and Inverters, implement the following logic equation (do not simplify). Your final answer should only contain 2 input OR Gates and Inverters Only! (6 pt); Y = (A + C) (A + B) (B + C) Assume: Y.H, A.H, B.L and C.L Pg. Score =

2. For the circuit below, determine the logic equation for Y.L. Also show all intermediate terms as their low true equivalents. i.e. After every gate, write the low true version for the logic term. (6 pt.) A.H B.L C.H D.L Y.L E.H F.L G.H Y.L = 3. Assume that several bytes are stored in memory starting at 2000 Hex. The bytes are assumed to be in 2's complement (signed number) format. Write a short G-CPU program to replace each positive number with a 1 and replace each negative number with -1. i.e. Read in the value, if it is positive, replace it with 1. Else if it is negative, replace with -1. Continue on through memory until a zero is read in. This is the terminating value. If the value read is zero, end your code in an infinite loop. You may assume you also have G-CPU instructions: DECA, INCA and BRA unconditional. The Best Code = The Most Points! (8 pt) Write your answer in the leftmost column lines. If you need more room, wrap around to the right column lines. Page 2 Page Score =

4. See the attached G-CPU program in Appendix A at the end of our quiz. Assume the code was placed in EPROM starting at $6000. Also assume there is SRAM starting at $A000. Answer the questions below: 4A. What is the effective address for the first LDY #$A000 instruction? Hex (1 pt.) 4B. What is the effective address for STAB 1,Y the first time the loop is executed? Hex (1 pt.) 4C. What are the values stored at $6008 and $6009? Hex (1 pt.) 4D. If the clock is 2 MHz, how many seconds does it take to execute the SUM_BA instruction? (1 pt.) 4E. Show all SRAM addresses and associated data modified by the code above. (5 pt.) 4F. Fill out the cycle diagram below for the SUM_BA & BEQ instructions for the first pass of the loop. (8 pt.) Reg Driving Device Driving Cycle Addr Bus Data Bus IR PC R/-W X Reg Y Reg Addr Bus Data Bus 1 600A 2 3 4 5 4G. For the previous problem, assume the size of the EPROM and SRAM are 8K x 8 each. What is the range of each memory in the CPU memory map? EPROM Range (1 pt.) SRAM Range (1 pt.) 4H. What is the logic decode equation required for each device? Assume the usual CPU control bus signals including a /DS (data strobe) signal. /EPROM_CE = (1 pt.) /SRAM_CE = (1 pt.) Page 3 Page Score =

5. We would like to add index addressing to our simple CPU in Lab #9. The new register for index addressing will be the W register. There will be no displacement register but instead we will implement instructions that read/write data using W as a pointer and automatically inc or dec W. See Appendix B. The new controller ASM signals required for the W block therefore are: INC_W, DEC_W and LD_W Note: Assume only one or none of these signals is true in a particular state in the controller ASM and that they are all high true signals. 5A. Show the required hardware to create the W register block. Also show any additional hardware needed to support index addressing in your Lab #9 CPU and make sure you use the new control signals shown above. Label all wires using bus notation and also label all devices & signals employed in the design. You can use any generic device used in lab this semester but do not use any 74XX parts. (6 pt.) 5B. Show the changes/states that must be added to your ASM controller flowchart to implement LDW #data and LDAB W+. Show only the signals that are true in your ASM state. Pick two new/open opcodes. (3 pt.) Page 4 Page Score =

Appendix A. G-CPU Code for Problem #4: ORG $6000 LDAA #$FA LDX #$6000 LDY #$A000 T1 LDAB #1 SUM_BA BEQ END1 LDAB 0,X STAB 1,Y LDAB 1,X STAB 0,Y INX INX INY INY BRA T1 END1 BRA END1 Appendix B. W Register Instructions: LDAA W+ ;use W as a pointer to read data into A and then increment W once. LDAA W- ;use W as a pointer to read data into A and then decrement W once. LDAB W+ ;use W as a pointer to read data into B and then increment W once. LDAB W- ;use W as a pointer to read data into B and then decrement W once. LDW #data ;load immediate data into W. Page 5 Page Score =