Chapter 1 <1>
Professor Brendan Morris, SEB 3216, brendan.morris@unlv.edu http://www.ee.unlv.edu/~b1morris/cpe100/
Chapter 1 Professor Brendan Morris, SEB 3216, - - PowerPoint PPT Presentation
Chapter 1 Professor Brendan Morris, SEB 3216, brendan.morris@unlv.edu http://www.ee.unlv.edu/~b1morris/cpe100/ CPE100: Digital Logic Design I Section 1004: Dr. Morris From Zero to One Chapter 1 <1> Background: Digital Logic Design
Chapter 1 <1>
Professor Brendan Morris, SEB 3216, brendan.morris@unlv.edu http://www.ee.unlv.edu/~b1morris/cpe100/
Chapter 1 <2>
Chapter 1 <3>
Chapter 1 <4>
Chapter 1 <5>
Chapter 1 <6>
Chapter 1 <7>
focus of this course programs device drivers instructions registers datapaths controllers adders memories AND gates NOT gates amplifiers filters transistors diodes electrons
Chapter 1 <8>
Chapter 1 <9>
Chapter 1 <10>
Chapter 1 <11>
Chapter 1 <12>
Chapter 1 <13>
Chapter 1 <14>
Chapter 1 <15>
Chapter 1 <16>
Chapter 1 <17>
Chapter 1 <18>
Chapter 1 <19>
1’s Column 10’s Column 100’s Column 1000’s Column
Five Thousand Three Hundred Seven Tens Four Ones Base 10
Chapter 1 <20>
1’s Column 2’s Column 4’s Column 8’s Column
One Eight One Four Zero Two One One Base 2
Chapter 1 <21>
Chapter 1 <22>
Chapter 1 <23>
least significant bit most significant bit
nibble byte
least significant byte most significant byte
Chapter 1 <24>
Chapter 1 <25>
Chapter 1 <26>
Chapter 1 <27>
Chapter 1 <28>
LSB MSB
Chapter 1 <29>
Chapter 1 <30>
Chapter 1 <31>
Chapter 1 <32>
Chapter 1 <33>
Chapter 1 <34>
Chapter 1 <35>
Chapter 1 <36>
Chapter 1 <37>
Chapter 1 <38>
Hex Digit Decimal Equivalent Binary Equivalent 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 A 10 B 11 C 12 D 13 E 14 F 15
Chapter 1 <39>
Hex Digit Decimal Equivalent Binary Equivalent 0000 1 1 0001 2 2 0010 3 3 0011 4 4 0100 5 5 0101 6 6 0110 7 7 0111 8 8 1000 9 9 1001 A 10 1010 B 11 1011 C 12 1100 D 13 1101 E 14 1110 F 15 1111
Chapter 1 <40>
Chapter 1 <41>
Chapter 1 <42>
Chapter 1 <43>
Octal Digit Decimal Equivalent Binary Equivalent 000 1 1 001 2 2 010 3 3 011 4 4 100 5 5 101 6 6 110 7 7 111
Chapter 1 <44>
Chapter 1 <45>
Chapter 1 <46>
Chapter 1 <47>
Chapter 1 <48>
Chapter 1 <49>
Chapter 1 <50>
Chapter 1 <51>
Chapter 1 <52>
Chapter 1 <53>
≈ 1000 (1024)
≈ 1 billion (1,073,741,824)
≈ 1 trillion (1,099,511,627,776)
Chapter 1 <54>
≈ 1000 (1024)
≈ 1 billion (1,073,741,824)
Chapter 1 <55>
Chapter 1 <56>
Chapter 1 <57>
Chapter 1 <58>
Decimal # 8-4-2-1 (BCD) 6-3-1-1 Excess-3 2-out-of-5 Gray 0000 0000 0011 00011 0000 1 0001 0001 0100 00101 0001 2 0010 0011 0101 00110 0011 3 0011 0100 0110 01001 0010 4 0100 0101 0111 01010 0110 5 0101 0111 1000 01100 1110 6 0110 1000 1001 10001 1010 7 0111 1001 1010 10010 1011 8 1000 1011 1011 10100 1001 9 1001 1100 1100 11000 1000
Each code combination represents a single decimal digit.
Chapter 1 <59>
Chapter 1 <60>
Decimal # 8-4-2-1 (BCD) 6-3-1-1 0000 0000 1 0001 0001 2 0010 0011 3 0011 0100 4 0100 0101 5 0101 0111 6 0110 1000 7 0111 1001 8 1000 1011 9 1001 1100
Chapter 1 <61>
10002
Decimal # Excess-3 0011 1 0100 2 0101 3 0110 4 0111 5 1000 6 1001 7 1010 8 1011 9 1100
Chapter 1 <62>
Decimal # 2-out-of-5 00011 1 00101 2 00110 3 01001 4 01010 5 01100 6 10001 7 10010 8 10100 9 11000
Chapter 1 <63>
Decimal # Gray 0000 1 0001 2 0011 3 0010 4 0110 5 1110 6 1010 7 1011 8 1001 9 1000
Chapter 1 <64>
Chapter 1 <65>
Chapter 1 <66>
Chapter 1 <67>
Chapter 1 <68>
Chapter 1 <69>
Chapter 1 <70>
Chapter 1 <71>
Chapter 1 <72>
– Positive number: sign bit = 0 – Negative number: sign bit = 1
1
1 2 2 1 2
n
N N n a i i i
Chapter 1 <73>
– Positive number: sign bit = 0 – Negative number: sign bit = 1
1
1 2 2 1 2
n
N N n a i i i
Chapter 1 <74>
Chapter 1 <75>
Chapter 1 <76>
Chapter 1 <77>
2 1 1
n n i n i i
Chapter 1 <78>
2 1 1
n n i n i i
Chapter 1 <79>
Chapter 1 <80>
Chapter 1 <81>
Chapter 1 <82>
Chapter 1 <83>
Chapter 1 <84>
Chapter 1 <85>
Chapter 1 <86>
Chapter 1 <87>
Chapter 1 <88>
Chapter 1 <89>
Chapter 1 <90>
Chapter 1 <91>
Chapter 1 <92>
1000 1001
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1010 1011 1100 1101 1110 1111 0000 0001 0010 0011 0100 0101 0110 0111
Two's Complement
1000 1001 1010 1011 1100 1101 1110 1111 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 0000 0001 0010 0011 0100 0101 0110 0111
Sign/Magnitude Unsigned
Unsigned [0, 2N-1] Sign/Magnitude [-(2N-1-1), 2N-1-1] Two’s Complement [-2N-1, 2N-1-1]