the following animation shows a 4-bit johnson ring …the following animation shows a 4-bit johnson...

43
Questions Question 1 Animation: Johnson ring counter This question consists of a series of images (one per page) that form an animation. Flip the pages with your fingers to view this animation (or click on the ”next” button on your viewer) frame-by-frame. The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are some things to look for: Note when the logic state at each flip-flop input gets sent to the Q output. Why do you think this is called a ”ring” counter circuit? 1

Upload: others

Post on 22-Jan-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

Questions

Question 1

Animation: Johnson ring counter

This question consists of a series of images (one per page) that form an animation. Flip the pages withyour fingers to view this animation (or click on the ”next” button on your viewer) frame-by-frame.

The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock

signal oscillates. Here are some things to look for:

• Note when the logic state at each flip-flop input gets sent to the Q output.

• Why do you think this is called a ”ring” counter circuit?

1

Page 2: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0 0 0 0

1

1 0 0 0

2

Page 3: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0 0 0 0

1

1 0 0 0

3

Page 4: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0 0 0 0

1

1 0 0 0

4

Page 5: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0 0 0 0

1

1 0 0 01 1

5

Page 6: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0 0 0

1

1 0 01 1

6

Page 7: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0 0 0

1

1 0 01 1

7

Page 8: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0 0 0

1

1 0 01 1

8

Page 9: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0 0 0

1

1 0 01 1

9

Page 10: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0 0 0

1

1 0 01 1 1 1

10

Page 11: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0 0

1

1 01 1 1 1

11

Page 12: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0 0

1

1 01 1 1 1

12

Page 13: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0 0

1

1 01 1 1 1

13

Page 14: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0 0

1

1 01 1 1 1

14

Page 15: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0 0

1

1 01 1 1 1 1 1

15

Page 16: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0

1

1 1 1 1 1 1 1

16

Page 17: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0

1

1 1 1 1 1 1 1

17

Page 18: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0

1

1 1 1 1 1 1 1

18

Page 19: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0

1

1 1 1 1 1 1 1

19

Page 20: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0

1

1 1 1 1 1 1 1 1

0

0

20

Page 21: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1 1 1 1 1 1 1

0

0

21

Page 22: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1 1 1 1 1 1 1

0

0

22

Page 23: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1 1 1 1 1 1 1

0

0

23

Page 24: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1 1 1 1 1 1 1

0

0

24

Page 25: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1 1 1 1 1 1 1

0

0 0 0

25

Page 26: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1 1 1 1 1

0

0 0 0

26

Page 27: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1 1 1 1 1

0

0 0 0

27

Page 28: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1 1 1 1 1

0

0 0 0

28

Page 29: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1 1 1 1 1

0

0 0 0

29

Page 30: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1 1 1 1 1

0

0 0 0 0 0

30

Page 31: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1 1 1

0

0 0 0 0 0

31

Page 32: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1 1 1

0

0 0 0 0 0

32

Page 33: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1 1 1

0

0 0 0 0 0

33

Page 34: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1 1 1

0

0 0 0 0 0

34

Page 35: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1 1 1

0

0 0 0 0 0 0 0

35

Page 36: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1

0

0 0 0 0 0 0 0

36

Page 37: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1

0

0 0 0 0 0 0 0

37

Page 38: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1

0

0 0 0 0 0 0 0

38

Page 39: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1

0

0 0 0 0 0 0 0

39

Page 40: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

1

0

0 0 0 0 0 0 0 0

1

1

40

Page 41: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

D

C

Q

Q D

C

Q

Q D

C

Q

Q D

C

Q

Q

Clk

2 310

ClockVDD

Gnd

Q0

Q1

VDD

Gnd

VDD

Gnd

VDD

Gnd

VDD

Gnd

Q2

Q3

0 0 0 0 0 0 0

1

1

file 03234

41

Page 42: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

Answers

Answer 1

Note that each rising edge of the clock pulse has its own frame in the animation sequence, to better

show you what happens at those crucial times.

42

Page 43: The following animation shows a 4-bit Johnson ring …The following animation shows a 4-bit Johnson ring counter circuit. Watch what happens as the clock signal oscillates. Here are

Notes

Notes 1

The purpose of this animation is to let students study the behavior of this counter circuit and reach

their own conclusions. Similar to experimentation in the lab, except that here all the data collection is done

visually rather than through the use of test equipment, and the students are able to ”see” things that are

invisible in real life.

In this animation, I show each rising edge of the clock signal in its own frame, whereas the falling edge

of the clock shares a frame with the first half of the ”low” state. I do this because these are positive edge-

triggered flip-flops, and so the rising edge of the clock pulse is most important. I could have slowed things

down on the falling edge of the clock as well, but since there is little ”action” happening then, I decided to

save a frame and make it a shorter animation.

43