Docsity

Logic Design - Solved Homework 2 - Fall 2002 | CS 120A, Assignments of Computer Science

Toggle sidebar
bg1
CS/EE 120A – Homework #2
Summer 1 2002. Prof. Hwang
Given July 9, 2002. Due July 15, 2002 at the beginning of class.
1. Use K-map to simplify the following function to standard form
F(v,w,x,y,z) = Σ(3,6,7,8,9,10,11,15,17,20,24,25,26,27,29,31)
List all the PI’s and all the EPI’s. List all possible solutions. (5)
Answer
yz
wx
00
v
= 0
00
1
1 1
1
1111
01 11 10
01
11
10
v
= 1
1
00
1
1 1
1111
01 11 10
F
wx'
v'yz
v'w'xy vw'xy'z'
vx'y'z
wyz
vwz
PI’s: wx', wyz, v'yz, v'w'xy, vw'xy'z', vwz, vx'y'z
EPI’s: wx', v'yz, v'w'xy, vw'xy'z', vwz, vx'y'z
Only one solution: F = wx' + v'yz + v'w'xy + vw'xy'z' + vwz + vx'y'z
pf3
pf4
pf5

Partial preview of the text

Download Logic Design - Solved Homework 2 - Fall 2002 | CS 120A and more Assignments Computer Science in PDF only on Docsity!

CS/EE 120A – Homework

Summer 1 2002. Prof. Hwang

Given July 9, 2002. Due July 15, 2002 at the beginning of class.

  1. Use K-map to simplify the following function to standard form

F ( v , w , x , y , z ) = Σ(3,6,7,8,9,10,11,15,17,20,24,25,26,27,29,31)

List all the PI’s and all the EPI’s. List all possible solutions. (5)

Answer

yz wx 00

v = 0 00 1 1 1 1 1 1 1 1

01 11 10

01 11 10

v = 1

1

00

1 1 1 1 1 1 1

01 11 10

F

wx'

v'yz

v'w'xy vw'xy'z'

vx'y'z

wyz

vwz

PI’s: wx' , wyz , v'yz , v'w'xy , vw'xy'z' , vwz , vx'y'z EPI’s: wx' , v'yz , v'w'xy , vw'xy'z' , vwz , vx'y'z Only one solution: F = wx' + v'yz + v'w'xy + vw'xy'z' + vwz + vx'y'z

  1. Design and draw the circuit for a 4-bit ALU having the following functions:

Select S 2 S 1 S 0

Functions

0 0 0 Pass A 0 0 1 Decrement A 0 1 0 Pass B through LE 0 1 1 Increment A 1 0 0 A subtract B 1 0 1 B subtract A 1 1 0 A or B 1 1 1 Not A

Use K-maps to reduce all your expressions to standard forms. Show all your work. (5)

Answer

The truth table for LE ( xi ), AE ( yi ), and CE ( C 0 ) is as follows:

Select S 2 S 1 S 0

Functions LE xi

AE

yi

CE

C 0

0 0 0 Pass A A 0 0 0 0 1 Decrement A A 1 0 0 1 0 Pass B through LE B 0 0 0 1 1 Increment A A 0 1 1 0 0 A subtract B A B' 1 1 0 1 B subtract A A' B 1 1 1 0 A or B A or B 0 0 1 1 1 Not A A' 0 0

The LE ( xi ) K-map, equation and circuit is as follows: xi (^) AB S 1 S 0 00

S 2 = 0 00 1 1 1 1 1 1 1 1

01 11 10

01 11 10

S 2 = 1 00 1 1 1 1 1 1 1 1 1

01 11 10

xi = S 2 'S 0 A + S 2 S 0 A' + S 1 'S 0 'A + S 1 S 0 'B + S 2 S 0 'A

The AE ( yi ) K-map, equation and circuit is as follows:

  1. Design and draw the circuit for an 8-to-3 priority encoder having the following truth table. Reduce all equations to standard forms. (5)

Inputs Outputs E I 0 I 1 I 2 I 3 I 4 I 5 I 6 I 7 A 2 A 1 A 0 GS (^0) × × × × × × × × 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 (^1) × 1 0 0 0 0 0 0 0 0 1 1 (^1) × × 1 0 0 0 0 0 0 1 0 1 (^1) × × × 1 0 0 0 0 0 1 1 1 (^1) × × × × 1 0 0 0 1 0 0 1 (^1) × × × × × 1 0 0 1 0 1 1 (^1) × × × × × × 1 0 1 1 0 1 (^1) × × × × × × × 1 1 1 1 1

Answer

A 2 = EI 4 I 5 'I 6 'I 7 ' + EI 5 I 6 'I 7 ' + EI 6 I 7 ' + EI 7 A 1 = EI 2 I 3 'I 4 'I 5 'I 6 'I 7 ' + EI 3 I 4 'I 5 'I 6 'I 7 ' + EI 6 I 7 ' + EI 7 A 0 = EI 1 I 2 'I 3 'I 4 'I 5 'I 6 'I 7 ' + EI 3 I 4 'I 5 'I 6 'I 7 ' + EI 5 I 6 'I 7 ' + EI 7 GS = EI 0 I 1 'I 2 'I 3 'I 4 'I 5 'I 6 'I 7 ' + EI 1 I 2 'I 3 'I 4 'I 5 'I 6 'I 7 ' + EI 2 I 3 'I 4 'I 5 'I 6 'I 7 ' + EI 3 I 4 'I 5 'I 6 'I 7 ' + EI 4 I 5 'I 6 'I 7 ' + EI 5 I 6 'I 7 ' + EI 6 I 7 ' + EI 7

E I 7 I 6 I 5 I 4 I 3 I 2 I 1 I 0

A 2

etc.

  1. Use one 4 × 8 × 4 PLA to implement the following two functions: (5)

F 1 ( w , x , y , z ) = Σ(0,2,3,4,5,6,11,12,13,14,15) F 2 ( w , x , y , z ) = Σ(1,2,3,5,7,9)

Answer

OR array

AND array

0 1

output array

A 3 A 2 A 1 A 0

F 1

z

F 2

w x y