Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital...
-
Upload
adelia-warner -
Category
Documents
-
view
230 -
download
0
Transcript of Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital...
![Page 1: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/1.jpg)
Understanding Digital DesignThe Random Number Generator
© 2014 Project Lead The Way, Inc.Digital Electronics
![Page 2: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/2.jpg)
Random Number GeneratorDigital 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.
2
![Page 3: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/3.jpg)
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
AnalogSection
SequentialLogic
Section
CombinationalLogic
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
L1L2L3L4L5L6L7
A
B
C
![Page 4: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/4.jpg)
Random Number Generator Block Diagram
4
AnalogSection
CombinationalLogic
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.
L1L2L3L4L5L6L7
SequentialLogic
Section
CLOCK
A
B
C
![Page 5: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/5.jpg)
Sequential Logic Section
5
Schematic Diagram
CLOCK
ABC
3-Bit Counter Default Count Range
(010 = 0002 to 710 = 1112)
Set / Reset LogicChanges Count Range(110 = 0012 to 610 = 1102)
Sequential Logic Section
![Page 6: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/6.jpg)
6
CLOCK
Functional Test (1 of 6)
Count of “1” (A=0; B=0; C=1)
Logic ‘0’Logic ‘1’
Sequential Logic Section
![Page 7: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/7.jpg)
7
CLOCK
Logic ‘0’Logic ‘1’
Sequential Logic SectionFunctional Test (2 of 6)
Count of “2” (A=0; B=1; C=0)
![Page 8: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/8.jpg)
8
CLOCK
Logic ‘0’Logic ‘1’
Sequential Logic SectionFunctional Test (3 of 6)
Count of “3” (A=0; B=1; C=1)
![Page 9: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/9.jpg)
9
CLOCK
Logic ‘0’Logic ‘1’
Sequential Logic SectionFunctional Test (4 of 6)
Count of “4” (A=1; B=0; C=0)
![Page 10: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/10.jpg)
10
CLOCK
Logic ‘0’Logic ‘1’
Sequential Logic SectionFunctional Test (5 of 6)
Count of “5” (A=1; B=0; C=1)
![Page 11: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/11.jpg)
11
CLOCK
Logic ‘0’Logic ‘1’
Sequential Logic SectionFunctional Test (6 of 6)
Count of “6” (A=1; B=1; C=0)
![Page 12: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/12.jpg)
Random Number Generator Block Diagram
12
SequentialLogic
Section
CLOCKAnalogSection
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.
CombinationalLogic
Section
L1L2L3L4L5L6L7
A
B
C
![Page 13: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/13.jpg)
Combinational Logic Section
13
ABC
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.
![Page 14: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/14.jpg)
Combinational Logic Section
14
Truth TableA 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”
“6”
![Page 15: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/15.jpg)
Combinational Logic Section
15
Truth TableA 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.
![Page 16: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/16.jpg)
Combinational Logic Section
16
A = 0B = 0C = 1
Logic ‘0’Logic ‘1’
Functional Test (1 of 6)
Count of “1” (A=0; B=0; C=1)
![Page 17: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/17.jpg)
17
A = 0B = 1C = 0
Logic ‘0’Logic ‘1’
Functional Test (2 of 6)
Count of “2” (A=0; B=1; C=0)
Combinational Logic Section
![Page 18: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/18.jpg)
Combinational Logic Section
18
A = 0B = 1C = 1
Logic ‘0’Logic ‘1’
Functional Test (3 of 6)
Count of “3” (A=0; B=1; C=1)
![Page 19: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/19.jpg)
Combinational Logic Section
19
A = 1B = 0C = 0
Logic ‘0’Logic ‘1’
Functional Test (4 of 6)
Count of “4” (A=1; B=0; C=0)
![Page 20: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/20.jpg)
Combinational Logic Section
20
A = 1B = 0C = 1
Logic ‘0’Logic ‘1’
Functional Test (5 of 6)
Count of “5” (A=1; B=0; C=1)
![Page 21: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/21.jpg)
Combinational Logic Section
21
A = 1B = 1C = 0
Logic ‘0’Logic ‘1’
Functional Test (6 of 6)
Count of “6” (A=1; B=1; C=0)
![Page 22: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/22.jpg)
Combinational Logic SectionUsing LEDs
22
A = 1B = 0C = 0
Shown with a count of “4” (A=1; B=0; C=0)
LED – Light Emitting Diode
![Page 23: Understanding Digital Design The Random Number Generator © 2014 Project Lead The Way, Inc.Digital Electronics.](https://reader035.fdocuments.us/reader035/viewer/2022081501/56649dbd5503460f94aaf239/html5/thumbnails/23.jpg)
Random Number Generator Digital Section
23
SequentialLogic
Section
CombinationalLogic
Section
Ana
log
Sec
tion
Discussed in the previous lesson