Docsity

CSE140 - HW #4 - Solution, Study notes of Physics

Toggle sidebar
bg1
CSE140 - HW #4 - Solution
Due Monday May 28, 11:59PM
We practice the standard interconnect module designs and applications.
1. (Decoders) Given four four-input Boolean functions (35 Points)
f1(a, b, c, d) = Pm(0,1,4,7) + Pd(2,3,5),
f2(a, b, c, d) = Pm(1,4,11) + Pd(3,14),
f3(a, b, c, d) = Pm(0,8,10,11) + Pd(9,12,15).
f4(a, b, c, d) = Pm(2,12) + Pd(8,11,14).
1.1. Implement the functions using a minimal network of 4:16 decoders and OR gates. (5
Points: Completion)
1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download CSE140 - HW #4 - Solution and more Study notes Physics in PDF only on Docsity!

CSE140 - HW #4 - Solution

Due Monday May 28, 11:59PM

We practice the standard interconnect module designs and applications.

  1. (Decoders) Given four four-input Boolean functions (35 Points) f 1 (a, b, c, d) =

∑ m(0, 1 , 4 , 7) +

∑ d(2, 3 , 5), f 2 (a, b, c, d) =

∑ m(1, 4 , 11) +

∑ d(3, 14), f 3 (a, b, c, d) =

∑ m(0, 8 , 10 , 11) +

∑ d(9, 12 , 15). f 4 (a, b, c, d) =

∑ m(2, 12) +

∑ d(8, 11 , 14). 1.1. Implement the functions using a minimal network of 4:16 decoders and OR gates. ( Points: Completion)

1.2. Implement the functions using a minimal network of 3:8 decoders and OR gates. ( Points: Correctness)

  1. (Encoders) A high bit priority encoder inputs 2n^ bits from 2n^ devices and outputs n bit as the index of the asserted input line with the highest priority (largest in binary code) as shown in page 25 of lecture 11. Implement a high bit 16:4 priority encoder using 4:2 high bit priority encoders and minimal networks of NAND gates.(15 Points: Completion)
  1. (Multiplexers) Assume a dual-railed system, where you have access to any variable and its complement. Implement the following four-input Boolean function as indicated in each of the following subproblems. (15 Points) f (a, b, c, d) =

∑ m(1, 2 , 3 , 5 , 8 , 13) +

∑ d(0, 7 , 10 , 14). 3.1. Implement the function using a minimal network of 8:1 multiplexers. (5 Points: Completion)

a b c d = 0 d = 1 D(d) 0 0 0 X 1 1 0 0 1 1 1 1 0 1 0 0 1 d 0 1 1 0 X 0 1 0 0 1 0 d′ 1 0 1 X 0 0 1 1 0 0 1 d 1 1 1 X 0 0

3.3. Implement the function using a minimal network of 2:1 multiplexers. (5 Points: Completion)

a b cd = 00 cd = 01 cd = 10 cd = 11 D(c, d) 0 0 X 1 1 1 1 0 1 0 1 0 X d 1 0 1 0 X 0 d′ 1 1 0 1 X 0 c′d

For the case of ab = 11:

c d = 0 d = 1 D(d) 0 0 1 d 1 X 0 0

  1. Assume a dual-railed system, where you have access to any variable and its complement. Given a four-input Boolean function (35 Points) f (a, b, c, d) =

∑ m(0, 3 , 4 , 7 , 10 , 12) +

∑ d(5, 11 , 14). 4.1. Implement the function using a minimal network of 2:4 decoders and OR gates. ( Points: Completion)

4.3. Implement the function using a minimal network of 2:1 multiplexers. (5 Points: Completion)

bcd a 000 001 010 011 100 101 110 111 D(b, c, d) 0 1 0 0 1 1 X 0 1 D 0 1 0 0 1 X 1 0 X 0 D 1

Here is the K-map for D 0 , which gives D 0 = c′d′^ + cd: cd

b

1 X 1

Here is the K-map for D 1 , which gives D 1 = bd′^ + cd′^ or D 1 = bd′^ + b′c: cd

b

X

X

To get the minimal circuit, we choose D 1 = bd′^ + b′c:

Choosing D 1 = bd′^ + cd′^ results in an extra multiplexer.

b cd = 00 cd = 01 cd = 10 cd = 11 D(c, d) 0 0 0 1 0 cd′ 1 1 0 1 0 d′