• No results found

1.2.7 UnderstandingDigitalDesign_RNG (1).pptx

N/A
N/A
Protected

Academic year: 2020

Share "1.2.7 UnderstandingDigitalDesign_RNG (1).pptx"

Copied!
23
0
0

Loading.... (view fulltext now)

Full text

(1)

Understanding Digital Design

The Random Number Generator

© 2014 Project Lead The Way, Inc. Digital Electronics

(2)

Random Number Generator

Digital Design - Demo

2

This presentation will

• Review the Board Game Counter block diagram.

• Review the circuit design of the sequential logic

section of the Board Game Counter.

• Review the circuit design of the combinational logic

section of the Board Game Counter.

(3)

Random Number Generator

Block Diagram

3

0 0 0 1 1 1

0 1 1 0 0 1

1 0 1 0 1 0

1 2 3 4 5 6

Analog Section Sequential Logic Section Combinational Logic Section

The Analog Section produces a dampened square wave that “rolls” the count and slowly stops.

On every pulse of the clock, the Sequential Logic Section

increments a binary count from 1 to 6, then repeats.

The Combinational Logic Section

encodes the binary count into the die’s seven dots. CLOCK L1 L2 L3 L4 L5 L6 L7 A B C

(4)

Random Number Generator

Block Diagram

4 Analog Section Combinational Logic Section

The Analog Section produces a dampened square wave that “rolls” the count and slowly stops.

On every pulse of the clock, the Sequential Logic Section

increments a binary count from 1 to 6, then repeats.

The Combinational Logic Section

encodes the binary count into the die’s seven dots. L1 L2 L3 L4 L5 L6 L7 Sequential Logic Section CLOCK A B C

(5)

Sequential Logic Section

5

Schematic Diagram

CLOCK

A B C

3-Bit Counter

Default Count Range (010 = 0002 to 710 = 1112)

Set / Reset Logic

Changes Count Range (110 = 0012 to 610 = 1102)

(6)

6

CLOCK

Functional Test (1 of 6)

Count of “1” (A=0; B=0; C=1)

Logic ‘0’ Logic ‘1’

(7)

7

CLOCK

Logic ‘0’ Logic ‘1’

Sequential Logic Section

Functional Test (2 of 6)

(8)

8

CLOCK

Logic ‘0’ Logic ‘1’

Sequential Logic Section

Functional Test (3 of 6)

(9)

9

CLOCK

Logic ‘0’ Logic ‘1’

Sequential Logic Section

Functional Test (4 of 6)

(10)

10

CLOCK

Logic ‘0’ Logic ‘1’

Sequential Logic Section

Functional Test (5 of 6)

(11)

11

CLOCK

Logic ‘0’ Logic ‘1’

Sequential Logic Section

Functional Test (6 of 6)

(12)

Random Number Generator

Block Diagram

12 Sequential Logic Section CLOCK Analog Section

The Analog Section produces a dampened square wave that “rolls” the count and slowly stops.

On every pulse of the clock, the Sequential Logic Section

increments a binary count from 1 to 6, then repeats.

The Combinational Logic Section

encodes the binary count into the die’s seven dots. Combinational Logic Section L1 L2 L3 L4 L5 L6 L7 A B C

(13)

Combinational Logic Section

13

A B C

Schematic Diagram

Combinational Logic Section

Note: Because L1 / L5, L2 / L6, & L3 / L7 are always on together, only one combinational logic circuit was required for each pair.

(14)

Combinational Logic Section

14

Truth Table

A B C L1 L2 L3 L4 L5 L6 L7

0 0 0 - - -

-0 0 1 0 0 0 1 0 0 0

0 1 0 0 0 1 0 0 0 1

0 1 1 1 0 0 1 1 0 0

1 0 0 1 0 1 0 1 0 1

1 0 1 1 0 1 1 1 0 1

1 1 0 1 1 1 0 1 1 1

1 1 1 - - -

-“1”

“2” “3”

“4” “5”

(15)

Combinational Logic Section

15

Truth Table

A B C L1 L2 L3 L4 L5 L6 L7

0 0 0 - - -

-0 0 1 0 0 0 1 0 0 0

0 1 0 0 0 1 0 0 0 1

0 1 1 1 0 0 1 1 0 0

1 0 0 1 0 1 0 1 0 1

1 0 1 1 0 1 1 1 0 1

1 1 0 1 1 1 0 1 1 1

1 1 1 - - -

-Again, note that L1 /

L5, L2 / L6, & L3 / L7

have the same

entries in the truth

table; therefore, they

are equal functions.

(16)

Combinational Logic Section

16

A = 0 B = 0 C = 1

Logic ‘0’ Logic ‘1’

Functional Test (1 of 6)

(17)

17

A = 0 B = 1 C = 0

Logic ‘0’ Logic ‘1’

Functional Test (2 of 6)

Count of “2” (A=0; B=1; C=0)

(18)

Combinational Logic Section

18

A = 0 B = 1 C = 1

Logic ‘0’ Logic ‘1’

Functional Test (3 of 6)

(19)

Combinational Logic Section

19

A = 1 B = 0 C = 0

Logic ‘0’ Logic ‘1’

Functional Test (4 of 6)

(20)

Combinational Logic Section

20

A = 1 B = 0 C = 1

Logic ‘0’ Logic ‘1’

Functional Test (5 of 6)

(21)

Combinational Logic Section

21

A = 1 B = 1 C = 0

Logic ‘0’ Logic ‘1’

Functional Test (6 of 6)

(22)

Combinational Logic Section

Using LEDs

22

A = 1 B = 0 C = 0

Shown with a count of “4” (A=1; B=0; C=0)

LED – Light Emitting Diode

(23)

Random Number Generator

Digital Section

23

Sequential Logic Section

Combinational Logic Section

A

na

lo

g

S

ec

tio

n

References

Related documents

Other factors that favor good performance in adult cochlear implant candi- dates include lip-reading ability and residual hearing before implantation (patients with some hearing in

Speck (2002: 15) also suggests that instructors “design assignments that allow for interplay between process and product, between formative and summative

It is the (education that will empower biology graduates for the application of biology knowledge and skills acquired in solving the problem of unemployment for oneself and others

Negative association Table I: Student engagement questionnaire factor analysis: statements most closely associated with item on consumerism This suggests that students who

Writing Strength-based IEPs for Students with Disabilities in Writing Strength-based IEPs for Students with Disabilities in Inclusive Classrooms.. Inclusive Classrooms

Budman (Eds.), On the nature of prejudice: Fifty years after Allport (pp. Malden, MA: Blackwell Publishing. When groups meet: The dynamics of intergroup contact. Great

Data sources used in the model, including electronic retrieval locations; comparison of posterior and prior distributions for the washing model, rinsing model, and microbial

Finally, the Commission invited input from a panel of noted former public officials who were able to contribute practical insight into the intersection between ethics