• Complain

it-ebooks - GeeksForGeeks Digital Electronics and Logic Design Lecture Notes

Here you can read online it-ebooks - GeeksForGeeks Digital Electronics and Logic Design Lecture Notes full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2018, publisher: iBooker it-ebooks, genre: Children. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    GeeksForGeeks Digital Electronics and Logic Design Lecture Notes
  • Author:
  • Publisher:
    iBooker it-ebooks
  • Genre:
  • Year:
    2018
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

GeeksForGeeks Digital Electronics and Logic Design Lecture Notes: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "GeeksForGeeks Digital Electronics and Logic Design Lecture Notes" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

it-ebooks: author's other books


Who wrote GeeksForGeeks Digital Electronics and Logic Design Lecture Notes? Find out the surname, the name of the author of the book and a list of all author's works by series.

GeeksForGeeks Digital Electronics and Logic Design Lecture Notes — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "GeeksForGeeks Digital Electronics and Logic Design Lecture Notes" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
GeeksForGeeks Digital Electronics and Logic Design Lecture Notes

From: https://www.geeksforgeeks.org/digital-electronics-logic-design-tutorials/

Number System and base conversions | Digital Electronics

Electronic and Digital systems may use a variety of different number systems, (e.g. Decimal, Hexadecimal, Octal, Binary).

A number N in base or radix b can be written as:
(N)b = dn-1 dn-2 d1 d0 . d-1 d-2 d-m

In the above, dn-1 to d0 is integer part, then follows a radix point, and then d-1 to d-m is fractional part.

dn-1 = Most significant bit (MSB)

d-m = Least significant bit (LSB)


How to convert a number from one base to another Follow the example - photo 1

How to convert a number from one base to another?
Follow the example illustrations:

1. Decimal to Binary

(10.25)10

Note Keep multiplying the fractional part with 2 until decimal part 000 is - photo 2

Note: Keep multiplying the fractional part with 2 until decimal part 0.00 is obtained.
(0.25)10 = (0.01)2

Answer: (10.25)10 = (1010.01)2

2. Binary to Decimal

(1010.01)2

123 + 0x22 + 121+ 0x20 + 0x2 -1 + 12 -2 = 8+0+2+0+0+0.25 = 10.25

(1010.01)2 = (10.25)10

3. Decimal to Octal

(10.25)10

(10)10 = (12)8

Fractional part:

0.25 x 8 = 2.00
Note: Keep multiplying the fractional part with 8 until decimal part .00 is obtained.
(.25)10 = (.2)8

Answer: (10.25)10 = (12.2)8

4. Octal to Decimal

(12.2)8
1 x 81 + 2 x 80 +2 x 8-1 = 8+2+0.25 = 10.25

(12.2)8 = (10.25)10

5. Hexadecimal and Binary

To convert from Hexadecimal to Binary, write the 4-bit binary equivalent of hexadecimal.

3A16 001110102 To convert from Binary to Hexadecimal group the bits in - photo 3

(3A)16 = (00111010)2
To convert from Binary to Hexadecimal, group the bits in groups of 4 and write the hex for the 4-bit binary. Add 0's to adjust the groups.
1111011011
(001111011011 )2 = (3DB)16


This article is contributed by Kriti Kushwaha.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.


Digital Electronics & Logic Design
base-conversion
Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.
Floating Point Representation | Digital Logic

1. To convert the floating point into decimal, we have 3 elements in a 32-bit floating point representation:
i) Sign
ii) Exponent
iii) Mantissa

  • Sign bit is the first bit of the binary representation. '1' implies negative number and '0' implies positive number.
    Example: 11000001110100000000000000000000 This is negative number.
  • Exponent is decided by the next 8 bits of binary representation. 127 is the unique number for 32 bit floating point representation. It is known as bias. It is determined by 2k-1 -1 where 'k' is the number of bits in exponent field.

    There are 2 exponent bits in 8-bit representation and 8 exponent bits in 32-bit representation.
    Thus
    bias = 3 for 8 bit conversion (22-1 -1 = 4-1 = 3)
    bias = 127 for 32 bit conversion. (28-1 -1 = 128-1 = 127)

    Example: 01000001110100000000000000000000
    10000011 = (131)2
    131-127 = 4

    Hence the exponent of 2 will be 4 i.e. 24 = 16.

  • Mantissa is calculated from the remaining 24 bits of the binary representation. It consists of '1' and a fractional part which is determined by:

    Example:


    01000001110100000000000000000000

    The fractional part of mantissa is given by:

    1*(1/2) + 0*(1/4) + 1*(1/8) + 0*(1/16) + = 0.625

    Thus the mantissa will be 1 + 0.625 = 1.625

    The decimal number hence given as: Sign*Exponent*Mantissa = (-1)*(16)*(1.625) = -26

2. To convert the decimal into floating point, we have 3 elements in a 32-bit floating point representation:
i) Sign (MSB)
ii) Exponent (8 bits after MSB)
iii) Mantissa (Remaining 23 bits)

  • Sign bit is the first bit of the binary representation. '1' implies negative number and '0' implies positive number.
    Example: To convert -17 into 32-bit floating point representation Sign bit = 1
  • Exponent is decided by the nearest smaller or equal to 2n number. For 17, 16 is the nearest 2n. Hence the exponent of 2 will be 4 since 24 = 16. 127 is the unique number for 32 bit floating point representation. It is known as bias. It is determined by 2k-1 -1 where 'k' is the number of bits in exponent field.

    Thus bias = 127 for 32 bit. (28-1 -1 = 128-1 = 127)

    Now, 127 + 4 = 131 i.e. 10000011 in binary representation.

  • Mantissa: 17 in binary = 10001.

    Move the binary point so that there is only one bit from the left. Adjust the exponent of 2 so that the value does not change. This is normalizing the number. 1.0001 x 24. Now, consider the fractional part and represented as 23 bits by adding zeros.

    00010000000000000000000

  • Thus the floating point representation of -17 is 1 10000011 00010000000000000000000

Related Link:
https://www.youtube.com/watch?v=03fhijH6e2w
More questions on number representation:
http://quiz.geeksforgeeks.org/number-representation/

This article is contributed by Kriti Kushwaha
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.


Digital Electronics & Logic Design
Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.
Program for Binary To Decimal Conversion

Given a binary number as input, we need to write a program to convert the given binary number into equivalent decimal number.

Examples:

Input : 111Output : 7Input : 1010Output : 10Input: 100001Output: 33
Recommended: Please solve it on PRACTICE first, before moving on to the solution.

The idea is to extract the digits of given binary number starting from right most digit and keep a variable dec_value. At the time of extracting digits from the binary number, multiply the digit with the proper base (Power of 2) and add it to the variable dec_value. At the end, the variable dec_value will store the required decimal number.

For Example:
If the binary number is 111.
dec_value = 1*(2^2) + 1*(2^1) + 1*(2^0) = 7

Below diagram explains how to convert ( 1010 ) to equivalent decimal value:
Below is the implementation of above idea C C program to convert - photo 4

Below is the implementation of above idea :

C++
// C++ program to convert binary to decimal#includeusing namespace std;// Function to convert binary to decimalint binaryToDecimal(int n){ int num = n; int dec_value = 0; // Initializing base value to 1, i.e 2^0 int base = 1; int temp = num; while (temp) { int last_digit = temp % 10; temp = temp/10; dec_value += last_digit*base; base = base*2; } return dec_value;}// Driver program to test above functionint main(){ int num = 10101001; cout < <
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «GeeksForGeeks Digital Electronics and Logic Design Lecture Notes»

Look at similar books to GeeksForGeeks Digital Electronics and Logic Design Lecture Notes. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «GeeksForGeeks Digital Electronics and Logic Design Lecture Notes»

Discussion, reviews of the book GeeksForGeeks Digital Electronics and Logic Design Lecture Notes and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.