CS 266: Computer Architecture I - Homework 4 Solutions - Prof. Mitchell D. Theys, Study notes of Computer Architecture and Organization

The solutions to homework 4 of the computer architecture i course offered by the university of illinois at chicago in fall 2012. The homework includes three questions: designing a combinational circuit to convert a binary number to bcd, designing a 5-to-32-line decoder using four 3-to-8-line decoders and a 2-to-4-line decoder, and designing a dual 8-to-1-line multiplexer using a 3-to-8-line decoder and two 8x2 and-ors. The document also includes the k-map tables and circuit diagrams for the combinational circuits.

Typology: Study notes

2011/2012

Uploaded on 12/16/2012

billyking100
billyking100 🇺🇸

3

(2)

37 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
University of Illinois at Chicago
CS 266: Computer Architecture I Fall 2012
Homework 4 Solutions
Question 1 [25 points]
Design a combinational circuit that converts a binar y number of four bits to a decimal number n BCD. Note that the BCD number is
the same as the binary number as long as the inpu t is less than or equal to 9. The binary number from 1010 to 1111 converts into
BCD numbers from 1 0000 to 1 0101.
Decima
l
Binary
BCD
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
1
2
0
0
1
0
0
0
0
1
0
3
0
0
1
1
0
0
0
1
1
4
0
1
0
0
0
0
1
0
0
5
0
1
0
1
0
0
1
0
1
6
0
1
1
0
0
0
1
1
0
7
0
1
1
1
0
0
1
1
1
8
1
0
0
0
0
1
0
0
0
9
1
0
0
1
0
1
0
0
1
10
1
0
1
0
1
0
0
0
0
11
1
0
1
1
1
0
0
0
1
12
1
1
0
0
1
0
0
1
0
13
1
1
0
1
1
0
0
1
1
14
1
1
1
0
1
0
1
0
0
15
1
1
1
1
1
0
1
0
1
We would like to represent each of
,
,
,
,
as function of
,
,
,
,
. For each we build the k-map.
=

+

=
A
B
CD
0
0
01
1
11
10
1
1
1
0
0
01
11
10
1
1
A
B
CD
0
0
01
1
11
10
0
0
01
11
10
1
pf3
pf4
pf5

Partial preview of the text

Download CS 266: Computer Architecture I - Homework 4 Solutions - Prof. Mitchell D. Theys and more Study notes Computer Architecture and Organization in PDF only on Docsity!

University of Illinois at Chicago

CS 266: Computer Architecture I Fall 2012

Homework 4 Solutions

Question 1 [25 points]

Design a combinational circuit that converts a binary number of four bits to a decimal number n BCD. Note that the BCD number is

the same as the binary number as long as the input is less than or equal to 9. The binary number from 1010 to 1111 converts into

BCD numbers from 1 0000 to 1 0101.

Decimal Binary BCD

ᠧ ᠨ ᠩ ᠰ ᡘ

0 0 0 0 0 0 0 0 0 0

1 0 0 0 1 0 0 0 0 1

2 0 0 1 0 0 0 0 1 0

3 0 0 1 1 0 0 0 1 1

4 0 1 0 0 0 0 1 0 0

5 0 1 0 1 0 0 1 0 1

6 0 1 1 0 0 0 1 1 0

7 0 1 1 1 0 0 1 1 1

8 1 0 0 0 0 1 0 0 0

9 1 0 0 1 0 1 0 0 1

10 1 0 1 0 1 0 0 0 0

11 1 0 1 1 1 0 0 0 1

12 1 1 0 0 1 0 0 1 0

13 1 1 0 1 1 0 0 1 1

14 1 1 1 0 1 0 1 0 0

15 1 1 1 1 1 0 1 0 1

We would like to represent each of ᡘ ⡨

as function of ᡔ

. For each ᡘ we build the k-map.

AB

CD

AB

CD

Therefore we know how to represent a BCD number based on bits from binary representation:

And the circuit is:

AB

CD

AB

CD

AB

CD

Question 3 [20 points]

Design a dual 8-to-1-line multiplexer using a 3-to-8-line decoder and two 8X2 AND-ORs.

Question 4

Implement the function ᡑ = ᠧ̅ᠨ

ᠩ̅ + ᠧᠨᠩ using

a. [10 points] an 8:1 multiplexer

b. [10 points] a 4:1 multiplexer and one inverter

...

8x2 AND OR

...

⡩,⡨

⡩,⡩

⡩,⡵

...

8x2 AND OR

ᠵ ⡰,⡨

ᠵ ⡰,⡩

ᠵ ⡰,⡵

3 - to- 8

decoder

ᡅ ⡰

A B C

Y

c. [10 points] a 2:1 multiplexer and two other logic gates

A B

Y

C

A

C

Y

B