





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!






STUDENT NAME and NUMBER: (PLEASE PRINT CLEARLY)
REMARKS: 1. All questions should be answered (in the space provided).
DATE: April 30, 2001 TIME: 2:50 p.m. - 5:40 p.m.
Marks:
Total:
Georgia Institute of Technology Department of Electrical and Computer Engineering
ECE2030: Introduction to Computer Engineering
For the two expressions below, create a switch level implementation using nMOS and pMOS transistors. Assume that you also have the complements of each input.
Out 1 = A + B C ( + D ) Out 2 = A BC ( + D ) + E
Out (^1)
Out (^2)
For the following Karnaugh map, derive a simplified product of sums ( POS ) expression. Be sure to circle and list the prime implicants, indicating which are essential. Write the simplified POS expression in the space below.
The table below shows a 3-bit gray code and 3-bit binary code. Design a circuit using a three-input binary decoder and an eight-input binary encoder that can convert a three-bit Gray code input into a three-bit binary code.
prime implicants
essential? yes no
or
Binary Code
Gray Code
Decimal Digit
3-to-8Decoder
0 1 2 3 4 5 6 7 2 0
2 1
2 2
I 0
I 1
I 2
8-to-3Encoder
0 1 2 3 4 5 6 7 20
21
22
D (^0)
D (^1)
D (^2)
a) Drawn below is an implementation of a state machine. Write out the Boolean equations for , , and for this state machine in terms of , and.
b) Develop the state table for these equations.
c) Draw the state diagram for this state machine. Assume that is the initial state.
d) Is this a Mealy or a Moore machine? Moore machine.
Present State Input Next State Output
0 1 0 1 0 1 0 1 S 0 or 0 0
PS 1 PS (^0) X Z
S 0 or 0 0 S 1 or 0 1 S 1 or 0 1 S 2 or 1 0 S 2 or 1 0 S 3 or 1 1 S 3 or 1 1
NS 1 NS 0 0 0 1 1 1 1 1 1 S 3 or 1 1 S 3 or 1 1 S 2 or 1 0 S 2 or 1 0 S 2 or 1 0 S 0 or 0 0 S 3 or 1 1 S 1 or 0 1
S (^0)
a) In the code below, identify each push or pop by circling the instructions associated with each push or pop. Write to the side of each circle either โpush
b) What is the type of branch (i.e. ble, bge, blt, bgt) that is being done in the procedure call. Write to the side of the branch the effective branch type โbxx
bge $24, $25, func1end
c) What simple function is โfunc1โ actually performing?
Finds the maximum of the two top items on the stack and pushes this maximum back on the stack.
d) Using the initial condition that $8 = 0x04 and the stack is as shown on the left below before running this code, show how the stack changes every time that func1 is called..
e) What is the value at the top of the stack when the instruction at 0x0010 is reached? f) Fill in below the instruction set architecture bits needed to encode the instruction at address 0x0008.
0xF 0xF 0xF 0xF00C 0xF 0xF 0xF
0x 0x 0x 0x 0x 0x 0x
0x 0x 0x 0x 0x 0x 0x
0x 0x 0x 0x 0x 0x 0x
0x 0x 0x 0x 0x 0x 0x
0x 0x 0x 0x 0x 0x 0x
0x
beq opcode 01 000 0 0000 0000 0000 0000 0001
src1 src2 word_offset
X- register driven onto X bus Y- register driven onto Y bus Z- register written from Z bus rwe - register write enable
im en - immediate register enable
a en - ALU enable LF - 4 bit logical function
Logical Function LF LF 0 LF 1 LF 2 LF 3
ST - 2 bit shift type
Shift Types 00 = Logical 01 = Arithmetic 10 = Rotate
Shift Direction (B on ALU) positive B = shift right negative B = shift left
im va - immediate value st en - store enable ld en - load enable
a/s - add or subtract (add=0, sub=1) asl - arithmetic unit, shift unit, logical unit select
r/w - memory read/write (read=0,write=1) msel - memory select
asl 00 - select arithmetic unit 01 - select shift unit 10 - select logical unit