• No results found

Number System. Binary Number System (Base 2) octal numeral system(base-8 )

N/A
N/A
Protected

Academic year: 2021

Share "Number System. Binary Number System (Base 2) octal numeral system(base-8 )"

Copied!
24
0
0

Loading.... (view fulltext now)

Full text

(1)

• A computer can understand only the “on” and “off” state of a switch. • These two states are represented by 1 and 0.

Binary Number System (Base 2)

Decimal Number System (Base 10)

• In this number system, the digits 0 to 9 represents numbers.

octal numeral system(base-8 )

• The octal numeral system, uses the digits 0 to 7.

Number System

The number system is a way to represent or express numbers. in the context of computers, we define other types of number systems. They are:

•The decimal number system •The binary number system •The octal number system and •The hexadecimal number system

(2)
(3)

DECIMAL to BINARY conversion

1. 15

(4)

• The following steps are needed to convert from Octal to Binary:

• Convert each octal digit to its 3-digit binary representation. Each of the digits must be

treated as a decimal value.

• Combine these binary representations to form a single binary number.

(5)

• If we have an Octal value of 3053058, its binary representation would be:

• = 3058

• = (011 000 101)2 • = (011000101)2

• Hence, we can form the following table for octal to binary conversion, where each digit is

represented with its corresponding binary representation.

(6)

• What is Binary Addition

• The binary addition operation works similarly to the base 10 decimal system, except that it is a base 2 system.

• The binary system consists of only two digits, 1 and 0. Most of the functionalities of the computer system use the binary number system.

• The binary code uses the digits 1’s and 0’s to make certain processes turn off or on.

• Rules for Binary addition

• Binary addition is much easier than the decimal addition when you remember the following tricks or rules. The four rules of binary addition are:

• 0 + 0 = 0 • 0 + 1 = 1 • 1 + 0 = 1 • 1 + 1 =10

(7)

• Example: 101 + 101

How To Do Binary Addition?

Tips:

When you cross-check the binary value with the decimal value, the resultant value should be the same.

The binary value 101 is equal to the decimal value 5

So, 5 + 5 = 10

The decimal number 10 is equal to the binary number 1010.

(8)
(9)

BOOLEAN ALGEBRA

Objective: To represent logical operation in Boolean algebra using truth values. BINARY DECISION:

The decision which results into either YES (TRUE) or NO(FALSE) is called a binary decision. TRUTH VALUES:

Values true and false are called Truth values. LOGICAL STATEMENTS:

The sentences which can be determined to be true or false are called logical statements or truth functions.

LOGICAL VARIABLES:

(10)

LOGICAL FUNCTIONS

• Logical Functions:

Algebraic variables like a, b,c or x, y, z ..,are combined with the help of mathematical operations like +, -, x, / to form algebraic expressions.

Ex:

• Similarly logic statements or truth functions are combined with the help of Logical Operators like, AND, OR, NOT to form

compound statements or logical functions.

3 x A + 4 x B – 7 x D =( 11 x Z) / 2 x Y

X NOT Y OR Z Y NOT X OR Z

Digital systems are said to be constructed by using logic gates. These gates are the AND, OR, NOT. LOGICAL OPERATORS

(11)

OR OPERATOR

• It denotes logical addition.

• The symbol is +.

(12)

AND OPERATOR

• It denotes logical Multiplication.

• The symbol is (

.)

(13)

NOT operator

The Logic NOT Function output is true when

its single input is false, and false when its

single input is true

(14)

Objective: To evaluate Boolean Expressions using Truth Table

Give truth table for the Boolean expressions 1. (X + Y )+ (Y+Z)

A truth table of n input variables will have 2n

input combinations, 2n

rows.

Eg: if 3 variables, then

how many rows?

X Y Z X+Y Y+Z (X + Y )+ (Y+Z)

0 0 0 0 0 0 0 0 1 0 1 1 0 1 0 1 1 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1

(15)

Give truth table for the Boolean expressions

1. X + YZ

X Y Z 0 0 0 0 1 1 1 1

(16)

LOGIC GATES

Objective: To analyze the application of Boolean

algebra to computer electronics.

(17)

17

De Morgan’s Theorem

De Morgan’s theorems allow the input variables to be negated and converted from one form of a Boolean function into an opposite form

(18)

Logic circuits

1. Write the Boolean expression for the given circuit:

A(B+C)

((U+V’)(U+W)).(V+W’)

(19)

Logic circuits

2. Draw a circuit for the given Boolean expression:

(20)

NOT + AND= NAND gate

• The NAND gate operates as an AND gate followed by a NOT gate.

• It acts in the manner of the logical operation "and" followed by negation. • The output is "false" if both inputs are "true." Otherwise, the output is "true."

(21)

NOT + OR=NOR gate

• The NOR gate is a combination OR gate followed by an inverter.

(22)
(23)

Memory Unit

Memory unit is the amount of data that can be stored in the storage unit. This storage capacity is expressed in terms of Bytes.

(24)

S.No. Unit & Description 1 Kilobyte (KB)1 KB = 1024 Bytes 2 Megabyte (MB)1 MB = 1024 KB 3 GigaByte (GB)1 GB = 1024 MB 4 TeraByte (TB)1 TB = 1024 GB 5 PetaByte (PB)1 PB = 1024 TB

References

Related documents

Simple questions and replication worksheet will require students will review of the dna transcription, including transcription translation work answers, dna is a complex tasks!.

Majority of participants reported to be aware that, regular dental visits are important for prevention of dental diseases and a moderate proportion believed that dental diseases are

To convert a decimal number into its octal equivalent, the same procedure is adopted as in decimal to binary conversion but the decimal number is divided by 8 (the base of the

 こうした“Shelley’s defects”は Leigh Hunt の認めるところでもあった。 しかしその一方で彼は、この詩の批評において、政治詩人としての Shelley に 対

Implementation of device therapy (cardiac resynchronization therapy and implantable cardioverter defibrillator) for patients with heart failure in Europe: changes from 2004 to

First, it investigates the crucial role played by migrant women of the first and second generation to create a safety net for the members of their transnational households, in terms

Solve problems using base system worksheets too short time they simply giving students using words ideas, based upon understanding place value worksheet.. Base ten before diving

Recently, sparse representation has been successfully introduced to object tracking [1,3,5,15,16] based on the particle filter framework. In [1], a tracking candidate is represented as