Lecture 1
Lecture 1
( [email protected], [email protected] )
https://www.youtube.com/playlist?list=PLIHFDsuMVV3R7r-1wOWNQenIjhM0Wj2o0
https://www.youtube.com/playlist?list=PLIHFDsuMVV3Q-tMIGve2-4fpnmWulGYRo
3. Hands on HDL Coder: FPGA Prototyping and Hardware in the Loop (HIL) Testing
https://www.youtube.com/playlist?list=PLIHFDsuMVV3TQiJlxupBeL6mL3EUm_cPY
https://www.youtube.com/playlist?list=PLIHFDsuMVV3REpdP3HnoAZEQ1K-
nHeu0P
1
Tentative Marks Distribution
Evaluation Weightage
Quizzes (4~5) 10%
Assignments (4~5) 10%
Mid-1 Exam 15%
Mid-2 Exam 15%
Final Exam 50%
Decimal: 0 to 9 Base = 10
Octal: 0 to 7 Base = 8
Hexadecimal: 0 to F (0 to 9, A to F) Base = 16
Examples:
(11010.11)2 = (26.75)10
2
(127.4)8 = 1 × 82 + 2 × 81 + 7 × 80 + 4 × 8−1 = (87.5)10
Ex 1: (𝟒𝟏)𝟏𝟎 = ( ? )𝟐
Quotient Remainder
41/2 20 1
20/2 10 0
10/2 5 0
5/2 2 1
2/2 1 0
3
Ex 2: (𝟏𝟓𝟑)𝟏𝟎 = ( ? )𝟖
Quotient Remainder
153/8 19 1
19/8 2 3
Ex 3: (𝟗𝟓𝟔)𝟏𝟎 = ( ? )𝟏𝟔
Quotient Remainder
956/16 59 12 = C
59/16 3 11 = B
Ex 4: (𝟎. 𝟔𝟖𝟕𝟓)𝟏𝟎 = ( ? )𝟐
Integer Fraction
0.6875 × 2 1 0.375
0.375 × 2 0 0.75
0.75 × 2 1 0.5
0.5 × 2 1 0
4
Ex 5: (𝟎. 𝟓𝟏𝟑)𝟏𝟎 = ( ? )𝟖
Integer Fraction
0.513 × 8 4 0.104
0.104 × 8 0 0.832
0.832 × 8 6 0.656
0.656 × 8 5 0.248
0.248 × 8 1 0.984
0.984 × 8 7 0.872
Integer Fraction
0.786 × 16 12 = C 0.576
0.576 × 16 9 0.216
0.216 × 16 3 0.456
0.456 × 16 7 0.296
0.296 × 16 4 0.736
5
Octal and Hexadecimal Numbers:
Ex 7: (𝟏𝟎𝟏𝟏𝟎𝟎𝟎𝟏𝟏𝟎𝟏𝟎𝟏𝟏. 𝟏𝟏𝟏𝟏𝟎𝟎𝟎𝟎𝟎𝟏𝟏𝟎)𝟐 = ( ? )𝟖
Partitioning the binary number into groups of three digits each, starting from the binary
point and proceeding to the left and to the right.
Conversion from binary to hexadecimal is similar, except that the binary number is
divided into groups of four digits;
6
Ex 9: (𝟔𝟕𝟑. 𝟏𝟐𝟒)𝟖 = ( ? )𝟏𝟔
= (5155.276)8
7
Summary:
Make group of 3 bits
2
Put value in 4 bits
2 8 8
16
16 10
16
Note: 1. Above diagram is not valid if decimal number has non-zero fractional part.
2. For conversion of non-zero fractional decimal number use the following diagram.
2 8
2 8
16 16 10