question1 animation: johnson ring counter ...questions question1 animation: johnson ring counter...

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

11 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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: Question1 Animation: Johnson ring counter ...Questions Question1 Animation: Johnson ring counter Thisquestionconsistsofaseriesofimages(oneperpage)thatformananimation. Flipthepageswith

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