Unit 2: Number System
Unit 2: Number System
Unit 2: Number System
NUMBER SYSTEM:
NON-POSITIONAL NUMBER SYSTEM:
A positional number system is one in which
a digit’s value depends on its where it occurs in the
representation. Our usual decimal system is
positional.
A non-positional number system is anything
else. Tally marks are a common example:
2's complement:
Binary arithmetic:
Binary arithmetic is essential part of all the digital
computers and many other digital system.
Binary Addition:
Ex:
Binary Subtraction:
Ex:
Binary Multiplication:
Binary multiplication is similar to decimal
multiplication.
Ex:
Binary Division:
Binary division is similar to decimal division. It is
called as the long division procedure.
ex:
Logic gates:
Logic gates are the basic building blocks of any
digital system.
It is an electronic circuit having one or more than
one input and only one output.
The relationship between the input and the
output is based on a certain logic.
AND Gate
A circuit which performs an AND operation is
shown in figure.
Logic diagram:
OR Gate:
A circuit which performs an OR operation .
Logic diagram:
NOT Gate:
NOT gate is also known as Inverter. It has one
input A and one output Y.
Logic diagram
NAND Gate:
A NOT-AND operation is known as NAND
operation. It has n input (n >= 2) and one output.
Logic diagram:
XOR Gate:
XOR or Ex-OR gate is a special type of gate.
It can be used in the half adder, full adder and
subtractor.
Logic diagram:
Half adder:
A half adder is a type of adder, an electronic
circuit that performs the addition of numbers.
The half adder is able to add two single binary
digits and provide the output plus a carry value.
It has two inputs, called A and B, and two outputs S
(sum) and C (carry).
Full Adder:
A full adder is a digital circuit that performs
addition.
Full adders are implemented with logic gates in
hardware.
The adder outputs two numbers, a sum and a
carry bit.
The term is contrasted with a half adder, which
adds two binary digits.
: