As Sing Ment

15
LAB: 1 TITLE: INTRODUCTION TO SCHEMATIC LOGIC DESIGN Learning Outcomes: At the end of the practical, student able to: i. Explain schematic design using CPLD ii. Explain function clocks (wave form) in digital computer. iii. Use schematic CPLD to simulate digital output for SR, D, master slave and JK flip-flop. iv. Design shift register using flip-flop JK. Laboratory Equipment: i. Computer ii. Software Altera Max Plus II

Transcript of As Sing Ment

Page 1: As Sing Ment

LAB: 1

TITLE: INTRODUCTION TO SCHEMATIC LOGIC DESIGN

Learning Outcomes:

At the end of the practical, student able to:

i. Explain schematic design using CPLD

ii. Explain function clocks (wave form) in digital computer.

iii. Use schematic CPLD to simulate digital output for SR, D, master slave and JK flip-flop.

iv. Design shift register using flip-flop JK.

Laboratory Equipment:

i. Computer

ii. Software Altera Max Plus II

Page 2: As Sing Ment

BASIC FLIP FLOP

)Truth table: 2)The Karnaugh Map (K-Map)

Input Output a b Y Z0 0 0 00 1 0 11 0 0 11 1 1 1

3)The Boolean equations.

Y =ab

Z = a+b

0 10 0 01 0 1

0 10 0 11 1 1

Page 3: As Sing Ment

SR NOR FLIP FLOP

Input OutputOperation

S R Q Q

1 0 1 0 Set

0 0 1 0 Hold

0 1 0 1 Reset

0 0 0 1 Hold

1 0 1 0 Set

1 1 0 1 Invalid

0 0 0 1 Hold

Page 4: As Sing Ment

SR NAND FLIP FLOP

INPUT OUTPUTOPERATIONS R Q Q’

1 0 1 0 SET0 0 1 0 NO CHANGE0 1 0 1 RESET0 0 0 1 RESET1 0 1 0 SET1 1 0 1 INVALID0 0 0 1 NO CHANGE

Page 5: As Sing Ment

JK FLIP FLOP

INPUT OUTPUTOPERATIONS R Q Q’

1 0 0 1 RESET0 0 1 0 INVALID0 1 1 0 SET0 0 1 0 NO CHANGE1 0 0 1 RESET1 1 0 1 NO CHANGE

Page 6: As Sing Ment

0 0 1 0 INVALID

D FLIP FLOP

CLK INPUT OUTPUT OPERATION

J K Q Q’1 0 1 0 Set0 0 1 0 Hold0 1 0 1 Reset1 1 1 0 Toggle0 0 1 0 Hold0 1 0 1 Reset

Page 7: As Sing Ment

0 0 0 1 Hold

MASTER SLAVE

Page 8: As Sing Ment

CLKInput Output

OperationS R Q Q’ Y Y’

0 0 1 1 1 1

0 1 1 1 1 0

1 0 1 1 0 1

1 1 1 1 X X

0 0 X X 1 1

0 0 1 1 1 1

0 1 1 1 1 0

Page 9: As Sing Ment

QUESTION…..

1. Basic Flip-flopI. Draw the logic circuit for an unclocked NOR gate flip-flop.

II. Enter the expected timing diagram for signals Q and Q' in Figure 26.

III.

Figure 26: NOR gate flip-flop timing diagram

Page 10: As Sing Ment

IV. Draw the logic circuit for an unclocked NAND gate flip-flop.

V. Enter the expected timing diagram for signals Q and Q' in Figure 27.

Figure 27: NAND gate flip-flop timing diagram

Page 11: As Sing Ment

2. Master Slave Flip-flop

i. Draw the logic circuit implemented with gates for the SR master-slave flip-flop in Figure 24. Use NOR gate flip-flops.

ii. Enter the expected timing diagram for the signals Y, Y', Q, and Q' in Figure 28.

Figure 28: SR master-slave flip-flop timing diagram

Page 12: As Sing Ment

3. Edge triggered flip-flop

i. Draw the logic circuit for the D-type positive-edge triggered flip-flop in Figure 5.

ii. Enter the expected timing diagram for the signals S, R, Q, and Q' in Figure 29.

Figure 29: D-type edge triggered flip-flop timing diagram

Page 13: As Sing Ment

CONCLUSION

What we can conclude in this practical lab ,we be able to explain the schematic design using CPL. After that ,we be able to explain the function clocks(waveform) in digital computer. Then , we can use the schematic CPLD to stimulate digital output for SR flip-flop,D flip-flop ,Master Slave flip-flop and JK flip-flop . More than that ,we know how to design shift register using flip-flop JK . We learn that a digital system can be represented at different levels of abstraction . This keeps the description and design of complex system manageable.Lastly, we managed to understand that the highest level of abstraction is the behavional level that describes a system in terms of what it does(or how it behaves) rather than in terms of its components and interconnection between them.