Docsity

ECE 349 Homework Assignment #6 Solutions, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 349 Homework Assignment #6 Solutions
Show your work! You will not receive full credit for the answer alone.
1. (4 points) Using a PAL14L4, design a code converter that accepts as input the last five
bits of the ASCII code for a hexadecimal number and outputs the corresponding 4-bit
binary code. For example, if the input is 00101, the output is 1110 (E in hex). Assume
that the ASCII codes that do not represent hex digits will never occur as inputs. Note
that the PAL14L4 uses AND-NOR logic.
A B C D E W X Y Z
1 0 0 0 0 0 0 0 0
1 0 0 0 1 0 0 0 1
1 0 0 1 0 0 0 1 0
1 0 0 1 1 0 0 1 1
1 0 1 0 0 0 1 0 0
1 0 1 0 1 0 1 0 1
1 0 1 1 0 0 1 1 0
1 0 1 1 1 0 1 1 1
1 1 0 0 0 1 0 0 0
1 1 0 0 1 1 0 0 1
0 0 0 0 1 1 0 1 0
0 0 0 1 0 1 0 1 1
0 0 0 1 1 1 1 0 0
0 0 1 0 0 1 1 0 1
0 0 1 0 1 1 1 1 0
0 0 1 1 0 1 1 1 1
W= (AB0)0,X= (AC 0+C0D0+C0E0)0,Y= (AD0+D0E0+A0DE )0,
and Z= (AE0+A0E)0
2. For a PLA, it is often essential to maximize the number of common terms in the
design equations, while for a PAL, each design equation can be minimized individually.
Explain why this is the case.
In a PLA, the OR array is programmable. That is, a limited number of product terms
can be implemented and are shared by all of the design equations (OR gates). In a
PAL, the OR array is fixed so no product terms can be shared by design equations.
3. Do problem 11.2 on page 286 of your text.
V changes to 1 at 10 ns, back to 0 at 25 ns, and again to 1 at 35 ns. Z changes to 1 at
15 ns and back to 0 at 30 ns.
4. Do problem 11.4 on page 287 of your text.
(a.) R∗and S∗cannot be 0 simultaneously.
(b.) Q+= (S∗)0+R∗Q
(d.) S∗=S0and R∗=R0
pf3

Partial preview of the text

Download ECE 349 Homework Assignment #6 Solutions and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

ECE 349 Homework Assignment #6 Solutions

Show your work! You will not receive full credit for the answer alone.

  1. (4 points) Using a PAL14L4, design a code converter that accepts as input the last five bits of the ASCII code for a hexadecimal number and outputs the corresponding 4-bit binary code. For example, if the input is 00101, the output is 1110 (E in hex). Assume that the ASCII codes that do not represent hex digits will never occur as inputs. Note that the PAL14L4 uses AND-NOR logic. A B C D E W X Y Z 1 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 1 0 0 1 1 0 0 1 1 1 0 1 0 0 0 1 0 0 1 0 1 0 1 0 1 0 1 1 0 1 1 0 0 1 1 0 1 0 1 1 1 0 1 1 1 1 1 0 0 0 1 0 0 0 1 1 0 0 1 1 0 0 1 0 0 0 0 1 1 0 1 0 0 0 0 1 0 1 0 1 1 0 0 0 1 1 1 1 0 0 0 0 1 0 0 1 1 0 1 0 0 1 0 1 1 1 1 0 0 0 1 1 0 1 1 1 1 W = (AB′)′, X = (AC′^ + C′D′^ + C′E′)′, Y = (AD′^ + D′E′^ + A′DE)′, and Z = (AE′^ + A′E)′
  2. For a PLA, it is often essential to maximize the number of common terms in the design equations, while for a PAL, each design equation can be minimized individually. Explain why this is the case. In a PLA, the OR array is programmable. That is, a limited number of product terms can be implemented and are shared by all of the design equations (OR gates). In a PAL, the OR array is fixed so no product terms can be shared by design equations.
  3. Do problem 11.2 on page 286 of your text. V changes to 1 at 10 ns, back to 0 at 25 ns, and again to 1 at 35 ns. Z changes to 1 at 15 ns and back to 0 at 30 ns.
  4. Do problem 11.4 on page 287 of your text. (a.) R∗^ and S∗^ cannot be 0 simultaneously. (b.) Q+^ = (S∗)′^ + R∗Q (d.) S∗^ = S′^ and R∗^ = R′

(c.) Propagatioon delay assumed to be one division.

Q P

S* R*

For the next two problems, refer to Figure 11-17a on page 281 of your text.

  1. Trace the signals through the master-slave J − K flip-flop when the following input sequence is applied starting with J = K = P = Q = 0: change JK to 11, pulse C, change JK to 01, pulse C, change JK to 10, pulse C. Draw a timing diagram that includes P, Q, J, K, and C. See solution for problem 6. Zero propagation delay assumed.
  2. Improper operation may occur if J or K is changed while C is high. Starting with J = K = C = P = Q = 0, the inputs are changed in the following order: J = 1, C = 1 , J = 0, K = 1, C = 0. What is the final value of Q? The final value of Q is 1.

P

Q

J K C

Q

J K C

P

  1. Add extra gates to a clocked D flip-flop to create a clocked JK flip-flop.