Docsity

8 Problems in MidTerm Exam - Microprocessor Systems | CPE 310, Exams of Microprocessors

Toggle sidebar
bg1
Name: __________________
CpE-310 Mid Semester Exam Oct 19, 2012
As usual, no notes, no books, no hats, no cell phones, no calculators, no cheating, etc….
Subject/Learning Outcome Estimated
time (min)
% Score
1.a draw a computer architecture diagram 1 5
1.b draw a computer architecture diagram 2 10
2 describe memory types 2 5
3a draw the 8086 CPU architecture 3 15
3b draw modified 8086 CPU architecture (10% bonus) 10 20
4 assembly language 1 5
5 physical addresses in 8086 3 5
6 addressing modes, data transfer and arithmetic instruction 6 15
7 writing a procedure in 80x86 assembly language 10 15
8 Interrupt processing 10 15
Total 48 110
1
pf3
pf4
pf5

Partial preview of the text

Download 8 Problems in MidTerm Exam - Microprocessor Systems | CPE 310 and more Exams Microprocessors in PDF only on Docsity!

Name: __________________

CpE-310 Mid Semester Exam Oct 19, 2012

As usual, no notes, no books, no hats, no cell phones, no calculators, no cheating, etc…. Subject/Learning Outcome Estimated time (min) % Score 1.a draw a computer architecture diagram 1 5 1.b draw a computer architecture diagram 2 10 2 describe memory types 2 5 3a draw the 8086 CPU architecture 3 15 3b draw modified 8086 CPU architecture (10% bonus) 10 20 4 assembly language 1 5 5 physical addresses in 8086 3 5 6 addressing modes, data transfer and arithmetic instruction 6 15 7 writing a procedure in 80x86 assembly language 10 15 8 Interrupt processing 10 15 Total 48 110

Name:______________

Test #1 CpE-310 Oct 19, 2012

Q1-a (5%) Draw a diagram of a Von Neuman architecture computer Q1-b (10%) Draw a diagram of a computer with a North-bridge/South-bridge style motherboard. Include components like Graphics, Memory, IDE, LAN, Audio, USB, and PCI, and show connections. Q2-(5%) What is the difference between static RAM and dynamic RAM , in terms of how they are built and how they maintain the stored bits (3pt)? Which one is faster (1pt)? Which one is more expensive for the same size of memory (1pt)?

Q3-b (20% including 10% bonus ) The address bus of 8086 is 20-bit, allowing 1MB of address space. Explain what minimal changes are needed for expanding memory space to 16MB. (5pt). Suggest a method for creating the new “effective or physical address”, assuming no change to 8086 registers, and assuming a similar (not the same) method of using segment and offset addresses as in 8086. (8pt) Hint: the effective address of 8086 is created by adding a 16-bit offset (like the content of DI register) to a 16-bit segment register which is 4-bit shifted, creating a 20-bit address. Draw a modified architecture such that 16MB of memory can be addressed (7pt).

Q4-(5%) What is an assembler pseudo-opcode, give an example? Q-5 (5%) What is the effective address if the CS:IP is (show your work!) a. 0641:58B0 _________ b. 5000:3420 _________ Q6-(15%) If AX=1000H, BX = 3060H, DS = 1000H, SI = 0001H, BP=0000H, and SS=1001H; determine what the content of AX register will be after executing each of the following instructions in a “program”. Note that this is a program, so instructions run consecutively and contents of registers and memory are not reset or lost after each instruction. Show your work. MOV AX, [SI] AX = ADD AX, [0002H] AX= SUB [SI+5], AL AX= SUB AX, [BP+2] AX= ADD AL, BL AX= Memory (all hex) address data 10000 12 10001 00 10002 80 10003 00 10004 0F 10005 10 10006 90 10007 34 …. …. 10010 11 10011 20 10012 10 10013 80

Q8- (15%) Draw a “prioritized interrupt circuitry” that can handle 5 interrupts (INT0 to INT4). Use the Priority Encoder 74LS148 (the same encoder shown in the book). This encoder takes 8 inputs and outputs a 3-bit number corresponding to the highest active input. Design the circuit in a way that data-bus values of A0H to A4H are generated for INT0 to INT4. Part of the circuit is shown below.