Docsity

Introduction to Digital Logic Design, Cheat Sheet of Computer science

Partial preview of the text

Download Introduction to Digital Logic Design and more Cheat Sheet Computer science in PDF only on Docsity!

1

JKU

Course Title:- Digital Logic and Design

Course code: EENG

To: Weekend CS students computer Science(Laska Term 5)

04/22/

Chapter 1

1. Introduction to Digital Systems

Outline :

 Digital and analogue quantities

 Binary digit logic level and digital waveform

Introduction to Digital Systems

Digital systems are designed to store, process, and communicate information in digital form.

 They are found in a wide range of applications, including process control, communication

systems, digital instruments, and consumer products.

 The digital computer, more commonly called the computer , is an example of a typical digital

system.

A computer manipulates information in digital , or more precisely, binary form.

 A binary number has only two discrete values (zero or one).

 Each of these discrete values is represented by the OFF and ON status of an electronic switch

called a transistor.

 All computers, therefore, only understand binary numbers.

 Any decimal number (base 10 with ten digits from 0 to 9) can be represented by a binary

number (base 2, with digits 0 and 1)

Digital and analogue quantities

Signals are used to transmit information , usually through electric signals.

There are two types of signal ( Analog & digital ). In both these technologies, the

information, such as any audio or video, is transformed into electric signals.

Analog signal is continuous for which time varying feature of signal is a representation of

some other time varying quantity.

 Microphones and speaker are perfect examples of analog devices.

  • (^) Analog technology is cheaper but there is a limitation of size of data that can be transmitted

at a given time.

Digital signal: digital signal uses discrete (discontinuous) values.

In Digital technology data is converted into binary code and then reassembled

back into original form at reception point.

Examples : Computers, CDs, DVDs.

Digital systems use digital circuits that process digital signals which can take on

one of two values, we call: 0 & 1 (digits of binary number system) or Low and

High or False and True.

Digital logic level

 In Digits logic, each of the two digits in the binary system is called a bit.

 The word bit is a contraction of the words bi nary digi t

 In a digital circuits, two different voltage levels are used to represent the two bits.

 Generally, digit 1 is represented by the higher voltage level which is called logic High or

logic 1.

 Usually, digit 0 is represented by the lower voltage level which is called logic Low or

logic 0.

Chapter 2

2. Data Representation

Outline :

Data Representation

Number Systems (Conversion of number)

Signed number

Complement

Computer coding System

04/22/2023 8

Course Title:

Digital Logic & Design

Important terms:

  • (^) A bit is the most basic unit of information in a computer.
    • It is a state of “on” or “off” in a digital circuit.
    • (^) Sometimes these states are “ high ” or “ low ” voltage instead of “on” or “off”
  • (^) A byte is a group of eight bits.
    • (^) A byte is the smallest possible addressable (can be found via its location) unit of

computer storage.

  • (^) A word is a contiguous group of bytes.
    • (^) Words can be any number of bits (16, 32, 64 bits are common).

10

2 .2. Number Systems

Every computer stores numbers, letters and other special characters in a coded

form.

Before going into the details of these codes, it is essential to have a basic

understanding of the number system.

Number systems are basically classified in two types:

Those are non-positional and positional

11

The value of each digit in such a number is determined by three

considerations:

Digit itself.

Position of the digit in the number, and

Base of the number system (where base is determined as the total number of digits

available in the number system)

13

Positional number Systems

Basically, There are four Positional number systems used to represent data.

1. Binary Number System:- representing data either by "0" or "1".

The base or radix of the binary number system is 2.

2. Octal Number System:- there is 8 possibilities: 0, 1, 2, 3, 4, 5, 6 & 7.

The base or radix of the octal number system is 8.

3. Decimal Number System:- includes whole numbers. (0-9) 4. Hexadecimal Number System:- have 16 symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,

A, B, C, D, E & F. The base or radix of the hexadecimal number system is 16.

04/22/2023 14

Decimal number system

The number system that we use in our day-to-day life is called the Decimal

number system.

Decimal number system is a base 10 system, which means there are 10 digits

starting from 0 to 9 to represent any quantity.

  • (^) Value of the digits depends on the position they hold.
  • (^) For eg: the number 1024

Total Value: 4*

0

1

2

3

  • (^) Thus any number can be represented by using the available digits and

arranging them in various positions.

16

Binary Number System

The Binary Number system is a base 2 system with only two digits 0 and 1.

Each position in a binary number represents a power of the base (2).

Bit value : 1 1 1 1 1 1 1 1

Position value : 128 64 32 16 8 4 2 1

Bit number : 7 6 5 4 3 2 1 0

17

Hexadecimal Number System

Hexadecimal number system is a base 16 system with 16 digits namely

0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F ;

Where:

 A represents 10 in decimal,

 B represents 11 in decimal ,

 C represents 12 in decimal ,

 D represents 13 in decimal,

 E represents 14 in decimal and

 F represents 15 in decimal.

19

Converting From One Number System to Another

Converting To Decimal from another Base

Step 1: determine the positional value of each digit.

Step 2: Multiply positional value by digits in corresponding columns.

Step 3: Sum the products obtained in step 2.

The total is the equivalent value in decimal.

20