SlideShare a Scribd company logo
Digital Logic Circuits, Digital
Component and Data
Representation
Course: B.Sc-CS-II
Subject: Computer Organization
And Architecture
Unit-1
1
Digital vs. Analog
• An analog system has continuous range of
values
 A mercury thermometer
 Vinyl records
 Human eye
• A digital system has a set of discrete values
Digital Thermometer
Compact Disc (CD)
Digital camera
Benefits of using digital
Binary System
• • Discrete elements of information are
represented with
• bits called binary codes.
Decimal Code
• Review the decimal number system.
• Base (Radix) is 10 - symbols (0,1, . . 9) Digits
• For Numbers > 9, add more significant digits in
position to the left, e.g. 19>9.
• Each position carries a weight.
• If we were to write 1936.25 using a power series
expansion and base 10 arithmetic:
Binary number system
The binary number system.
Base is 2 - symbols (0,1) - Binary Digits (Bits)
For Numbers > 1, add more significant digits in position to the
left, e.g. 10>1.
Each position carries a weight (using decimal).
If we write 10111.01 using a decimal power series we
convert from binary to decimal:
Octal/Hex number systems
• The octal number system
• Its base is 8 à eight digits 0, 1, 2, 3, 4, 5, 6, 7
The hexadecimal number system
– Its base is 16 à first 10 digits are borrowed from the
decimal system and the letters A, B, C, D, E, F are used
for the digits 10, 11, 12, 13, 14, 15
Conversion from Decimal to Binary
• Conversion from decimal to binary:
• Let each bit of a binary number be represented by a variable
whose subscript = bit positions, i.e.,
• Its decimal equivalent is:
• It is necessary to separate the number into an integer part
and a fraction: Repeatedly divide the decimal number by 2.
Conversion from Decimal to Binary
Conversion from Decimal to Binary
• Conversion from decimal fraction to binary:
• same method used for integers except
multiplication is used instead of division.
Conversion from Decimal to Octal[1]
• Conversion from decimal to octal:
• The decimal number is first divided by 8. The
remainder is the LSB. The quotient is then divide
by 8 and the remainder is the next significant bit
and so on.
• Convert 1122 to octal.
Conversion using Table
• Conversion from and to binary, octal, and
hexadecimal plays and important part in digital
computers.
• Since
• each octal digit corresponds to 3 binary digits
and each hexa digit corresponds to 4 binary
digits.
1’s and 2’s Complements
• 1’s complement of N = ( -1) – N (N is a binary
#)
• 1’s complement can be formed by changing 1’s to
0’s and 0’s to 1’s
• 2’s complement of a number is obtained by
leaving all least significant 0’s and the first 1
unchanged, and replacing 1’s with 0’s and 0’s
with 1 in all higher significant digits.
• The 1’s complement of 1101011 = 0010100
• The 2’s complement of 0110111 = 1001001
2n
Subtraction Using Complements
• Subtraction with digital hardware using
complements:
• Subtraction of two n-digit unsigned numbers M –
N
• base r:
• 1. Add M to the r’s complement of N: M + (r– N)
• 2. If M N, the sum will produce an end carry and
is £ equal to rn that can be discarded. The result is
then M – N.
• 3. If M N, the sum will not produce an end carry
• and is equal to rn – (N – M)
Binary Subtraction using complements
• Binary subtraction is done using the same
procedure.
• Subtract 1010100 – 1000011 using 2’s
complement:
Binary Subtraction using complements
• Subtract 1010100 – 1000011 using 1’s
complement:
A = 1010100
• 1’s complement of B =+0111100
Sum = 10010000
End-around carry = + 1
Answer = 0010001
Arithmetic addition
• Negative numbers must be initially in 2’s
complement form and if the obtained sum is
negative, it is in 2’s complement form.
References
1. Computer Organization and Architecture, Designing
for performance by William Stallings, Prentice Hall
of India.
2. Modern Computer Architecture, by Morris Mano,
Prentice Hall of India.
3. Computer Architecture and Organization by John P.
Hayes, McGraw Hill Publishing Company.
4. Computer Organization by V. Carl Hamacher,
Zvonko G. Vranesic, Safwat G. Zaky, McGraw Hill
Publishing Company.

More Related Content

What's hot

binary number system
 binary number system binary number system
binary number system
vishal gupta
 
09 Arithmetic
09  Arithmetic09  Arithmetic
09 Arithmetic
Jeanie Delos Arcos
 
Csc1401 lecture03 - computer arithmetic - arithmetic and logic unit (alu)
Csc1401   lecture03 - computer arithmetic - arithmetic and logic unit (alu)Csc1401   lecture03 - computer arithmetic - arithmetic and logic unit (alu)
Csc1401 lecture03 - computer arithmetic - arithmetic and logic unit (alu)
IIUM
 
Integer represention
Integer representionInteger represention
Integer represention
Saif Ullah
 
Conversion of Number Systems
Conversion of Number SystemsConversion of Number Systems
Conversion of Number Systems
Sanjeev Kumar Prajapati
 
Arithmetic Operations
Arithmetic OperationsArithmetic Operations
Arithmetic Operations
gueste99d9a
 
Number system
Number systemNumber system
Number system
rameshthombre1
 
Number systems - binary, BCD, 2s comp
Number systems - binary, BCD, 2s compNumber systems - binary, BCD, 2s comp
Number systems - binary, BCD, 2s comp
mrlee2014
 
number system
number systemnumber system
number system
Unsa Shakir
 
Number system
Number systemNumber system
Number system
Chauhan Dharmendra
 
Number system
Number systemNumber system
Number system
rameshthombre1
 
Addition and subtraction with signed magnitude data (mano
Addition and subtraction with signed magnitude data (manoAddition and subtraction with signed magnitude data (mano
Addition and subtraction with signed magnitude data (mano
cs19club
 
Digital basics
Digital basicsDigital basics
Digital basics
imran khan
 
Arithmetic circuits
Arithmetic circuitsArithmetic circuits
Arithmetic circuits
Sanjay Saluth
 
Floating point arithmetic operations (1)
Floating point arithmetic operations (1)Floating point arithmetic operations (1)
Floating point arithmetic operations (1)
cs19club
 
Number system utm notes
Number system utm notesNumber system utm notes
Number system utm notes
Kurenai Ryu
 
Computer arithmetic
Computer arithmeticComputer arithmetic
Computer arithmetic
Balakrishna Chowdary
 
Number Systems Basic Concepts
Number Systems Basic ConceptsNumber Systems Basic Concepts
Number Systems Basic Concepts
Laguna State Polytechnic University
 
Number Systems Basic Concepts
Number Systems Basic ConceptsNumber Systems Basic Concepts
Number Systems Basic Concepts
Laguna State Polytechnic University
 
Number Systems
Number SystemsNumber Systems
Number Systems
Reggie Niccolo Santos
 

What's hot (20)

binary number system
 binary number system binary number system
binary number system
 
09 Arithmetic
09  Arithmetic09  Arithmetic
09 Arithmetic
 
Csc1401 lecture03 - computer arithmetic - arithmetic and logic unit (alu)
Csc1401   lecture03 - computer arithmetic - arithmetic and logic unit (alu)Csc1401   lecture03 - computer arithmetic - arithmetic and logic unit (alu)
Csc1401 lecture03 - computer arithmetic - arithmetic and logic unit (alu)
 
Integer represention
Integer representionInteger represention
Integer represention
 
Conversion of Number Systems
Conversion of Number SystemsConversion of Number Systems
Conversion of Number Systems
 
Arithmetic Operations
Arithmetic OperationsArithmetic Operations
Arithmetic Operations
 
Number system
Number systemNumber system
Number system
 
Number systems - binary, BCD, 2s comp
Number systems - binary, BCD, 2s compNumber systems - binary, BCD, 2s comp
Number systems - binary, BCD, 2s comp
 
number system
number systemnumber system
number system
 
Number system
Number systemNumber system
Number system
 
Number system
Number systemNumber system
Number system
 
Addition and subtraction with signed magnitude data (mano
Addition and subtraction with signed magnitude data (manoAddition and subtraction with signed magnitude data (mano
Addition and subtraction with signed magnitude data (mano
 
Digital basics
Digital basicsDigital basics
Digital basics
 
Arithmetic circuits
Arithmetic circuitsArithmetic circuits
Arithmetic circuits
 
Floating point arithmetic operations (1)
Floating point arithmetic operations (1)Floating point arithmetic operations (1)
Floating point arithmetic operations (1)
 
Number system utm notes
Number system utm notesNumber system utm notes
Number system utm notes
 
Computer arithmetic
Computer arithmeticComputer arithmetic
Computer arithmetic
 
Number Systems Basic Concepts
Number Systems Basic ConceptsNumber Systems Basic Concepts
Number Systems Basic Concepts
 
Number Systems Basic Concepts
Number Systems Basic ConceptsNumber Systems Basic Concepts
Number Systems Basic Concepts
 
Number Systems
Number SystemsNumber Systems
Number Systems
 

Viewers also liked

Meet wonder of world
Meet wonder of worldMeet wonder of world
Meet wonder of world
Harshpatel0000
 
Webinar-Budgeting Part 1: Managing Internal Pay Inequities
Webinar-Budgeting Part 1: Managing Internal Pay InequitiesWebinar-Budgeting Part 1: Managing Internal Pay Inequities
Webinar-Budgeting Part 1: Managing Internal Pay Inequities
PayScale, Inc.
 
Curriculum Vitae new version
Curriculum Vitae new versionCurriculum Vitae new version
Curriculum Vitae new version
Eoin Kelly
 
Windows 8
Windows 8Windows 8
Windows 8aaj4
 
Que es el sida
Que es el sidaQue es el sida
13_06_14_Il-Mondo_14_06_13
13_06_14_Il-Mondo_14_06_1313_06_14_Il-Mondo_14_06_13
13_06_14_Il-Mondo_14_06_13Davide Paterlini
 
Facebook Ads
Facebook AdsFacebook Ads
Producto ingles
Producto inglesProducto ingles
Producto ingles
Vanessa Vargas
 
Assets for dummies
Assets for dummiesAssets for dummies
Assets for dummies
Gareth Taylor
 
Mba 1 me u 2.5 wage differiance
Mba 1 me u 2.5 wage differianceMba 1 me u 2.5 wage differiance
Mba 1 me u 2.5 wage differiance
Rai University
 
Reanimación hídrica NEJM 2013
Reanimación hídrica NEJM 2013Reanimación hídrica NEJM 2013
Reanimación hídrica NEJM 2013
Juan Camilo Castro Aldana
 
TC_FLS_SIHI_ISOchem_EN
TC_FLS_SIHI_ISOchem_ENTC_FLS_SIHI_ISOchem_EN
TC_FLS_SIHI_ISOchem_EN
EUR ING Gorka Akarregi
 
Heart coreクラウドday講演20110708 fin
Heart coreクラウドday講演20110708 finHeart coreクラウドday講演20110708 fin
Heart coreクラウドday講演20110708 finYukiyasu Hirose
 

Viewers also liked (13)

Meet wonder of world
Meet wonder of worldMeet wonder of world
Meet wonder of world
 
Webinar-Budgeting Part 1: Managing Internal Pay Inequities
Webinar-Budgeting Part 1: Managing Internal Pay InequitiesWebinar-Budgeting Part 1: Managing Internal Pay Inequities
Webinar-Budgeting Part 1: Managing Internal Pay Inequities
 
Curriculum Vitae new version
Curriculum Vitae new versionCurriculum Vitae new version
Curriculum Vitae new version
 
Windows 8
Windows 8Windows 8
Windows 8
 
Que es el sida
Que es el sidaQue es el sida
Que es el sida
 
13_06_14_Il-Mondo_14_06_13
13_06_14_Il-Mondo_14_06_1313_06_14_Il-Mondo_14_06_13
13_06_14_Il-Mondo_14_06_13
 
Facebook Ads
Facebook AdsFacebook Ads
Facebook Ads
 
Producto ingles
Producto inglesProducto ingles
Producto ingles
 
Assets for dummies
Assets for dummiesAssets for dummies
Assets for dummies
 
Mba 1 me u 2.5 wage differiance
Mba 1 me u 2.5 wage differianceMba 1 me u 2.5 wage differiance
Mba 1 me u 2.5 wage differiance
 
Reanimación hídrica NEJM 2013
Reanimación hídrica NEJM 2013Reanimación hídrica NEJM 2013
Reanimación hídrica NEJM 2013
 
TC_FLS_SIHI_ISOchem_EN
TC_FLS_SIHI_ISOchem_ENTC_FLS_SIHI_ISOchem_EN
TC_FLS_SIHI_ISOchem_EN
 
Heart coreクラウドday講演20110708 fin
Heart coreクラウドday講演20110708 finHeart coreクラウドday講演20110708 fin
Heart coreクラウドday講演20110708 fin
 

Similar to B.sc cs-ii-u-1.3 digital logic circuits, digital component

digital logic circuits, digital component
digital logic circuits, digital componentdigital logic circuits, digital component
digital logic circuits, digital component
Rai University
 
Digital fundamendals r001a
Digital fundamendals r001aDigital fundamendals r001a
Digital fundamendals r001a
arunachalamr16
 
Digital Logic
Digital LogicDigital Logic
Digital Logic
NabeelaNousheen
 
Chapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdfChapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdf
TamiratDejene1
 
Alu1
Alu1Alu1
DLD_Lecture_notes2.ppt
DLD_Lecture_notes2.pptDLD_Lecture_notes2.ppt
DLD_Lecture_notes2.ppt
NazmulHasan854383
 
Number Systems.ppt
Number Systems.pptNumber Systems.ppt
Number Systems.ppt
GnanaDeepikaMeduri
 
CS304PC:Computer Organization and Architecture Unit- III PDF notes .pdf
CS304PC:Computer Organization and Architecture Unit- III PDF notes .pdfCS304PC:Computer Organization and Architecture Unit- III PDF notes .pdf
CS304PC:Computer Organization and Architecture Unit- III PDF notes .pdf
Asst.prof M.Gokilavani
 
Module 2_Data representations.pdf
Module 2_Data representations.pdfModule 2_Data representations.pdf
Module 2_Data representations.pdf
Aditya kishore saxena
 
3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.ppt3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.ppt
RavikumarR77
 
Unit 1 data representation and computer arithmetic
Unit 1  data representation and computer arithmeticUnit 1  data representation and computer arithmetic
Unit 1 data representation and computer arithmetic
AmrutaMehata
 
Lecture 2 ns
Lecture 2 nsLecture 2 ns
Lecture 2 ns
Rabiul Sarker
 
digitalelectronics.ppt
digitalelectronics.pptdigitalelectronics.ppt
digitalelectronics.ppt
HarshalVaidya11
 
digital-electronics lecture Ch 1and 2 -1.pptx
digital-electronics lecture Ch 1and 2 -1.pptxdigital-electronics lecture Ch 1and 2 -1.pptx
digital-electronics lecture Ch 1and 2 -1.pptx
abelllll
 
Binary Codes and Number System
Binary Codes and Number SystemBinary Codes and Number System
Binary Codes and Number System
Debarati Das
 
1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx
LibanMohamed26
 
module 1_class_numbers.pptx
module 1_class_numbers.pptxmodule 1_class_numbers.pptx
module 1_class_numbers.pptx
ssuser2efca7
 
data representation
 data representation data representation
data representation
Haroon_007
 
Week 4-Number Systems.pptx
Week 4-Number Systems.pptxWeek 4-Number Systems.pptx
Week 4-Number Systems.pptx
HamnaKhalid25
 
Counit2
Counit2Counit2
Counit2
Himanshu Dua
 

Similar to B.sc cs-ii-u-1.3 digital logic circuits, digital component (20)

digital logic circuits, digital component
digital logic circuits, digital componentdigital logic circuits, digital component
digital logic circuits, digital component
 
Digital fundamendals r001a
Digital fundamendals r001aDigital fundamendals r001a
Digital fundamendals r001a
 
Digital Logic
Digital LogicDigital Logic
Digital Logic
 
Chapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdfChapter 2_Number system (EEEg4302).pdf
Chapter 2_Number system (EEEg4302).pdf
 
Alu1
Alu1Alu1
Alu1
 
DLD_Lecture_notes2.ppt
DLD_Lecture_notes2.pptDLD_Lecture_notes2.ppt
DLD_Lecture_notes2.ppt
 
Number Systems.ppt
Number Systems.pptNumber Systems.ppt
Number Systems.ppt
 
CS304PC:Computer Organization and Architecture Unit- III PDF notes .pdf
CS304PC:Computer Organization and Architecture Unit- III PDF notes .pdfCS304PC:Computer Organization and Architecture Unit- III PDF notes .pdf
CS304PC:Computer Organization and Architecture Unit- III PDF notes .pdf
 
Module 2_Data representations.pdf
Module 2_Data representations.pdfModule 2_Data representations.pdf
Module 2_Data representations.pdf
 
3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.ppt3.Fixed-Floating Point.ppt
3.Fixed-Floating Point.ppt
 
Unit 1 data representation and computer arithmetic
Unit 1  data representation and computer arithmeticUnit 1  data representation and computer arithmetic
Unit 1 data representation and computer arithmetic
 
Lecture 2 ns
Lecture 2 nsLecture 2 ns
Lecture 2 ns
 
digitalelectronics.ppt
digitalelectronics.pptdigitalelectronics.ppt
digitalelectronics.ppt
 
digital-electronics lecture Ch 1and 2 -1.pptx
digital-electronics lecture Ch 1and 2 -1.pptxdigital-electronics lecture Ch 1and 2 -1.pptx
digital-electronics lecture Ch 1and 2 -1.pptx
 
Binary Codes and Number System
Binary Codes and Number SystemBinary Codes and Number System
Binary Codes and Number System
 
1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx
 
module 1_class_numbers.pptx
module 1_class_numbers.pptxmodule 1_class_numbers.pptx
module 1_class_numbers.pptx
 
data representation
 data representation data representation
data representation
 
Week 4-Number Systems.pptx
Week 4-Number Systems.pptxWeek 4-Number Systems.pptx
Week 4-Number Systems.pptx
 
Counit2
Counit2Counit2
Counit2
 

More from Rai University

Brochure Rai University
Brochure Rai University Brochure Rai University
Brochure Rai University
Rai University
 
Mm unit 4point2
Mm unit 4point2Mm unit 4point2
Mm unit 4point2
Rai University
 
Mm unit 4point1
Mm unit 4point1Mm unit 4point1
Mm unit 4point1
Rai University
 
Mm unit 4point3
Mm unit 4point3Mm unit 4point3
Mm unit 4point3
Rai University
 
Mm unit 3point2
Mm unit 3point2Mm unit 3point2
Mm unit 3point2
Rai University
 
Mm unit 3point1
Mm unit 3point1Mm unit 3point1
Mm unit 3point1
Rai University
 
Mm unit 2point2
Mm unit 2point2Mm unit 2point2
Mm unit 2point2
Rai University
 
Mm unit 2 point 1
Mm unit 2 point 1Mm unit 2 point 1
Mm unit 2 point 1
Rai University
 
Mm unit 1point3
Mm unit 1point3Mm unit 1point3
Mm unit 1point3
Rai University
 
Mm unit 1point2
Mm unit 1point2Mm unit 1point2
Mm unit 1point2
Rai University
 
Mm unit 1point1
Mm unit 1point1Mm unit 1point1
Mm unit 1point1
Rai University
 
Bdft ii, tmt, unit-iii, dyeing & types of dyeing,
Bdft ii, tmt, unit-iii,  dyeing & types of dyeing,Bdft ii, tmt, unit-iii,  dyeing & types of dyeing,
Bdft ii, tmt, unit-iii, dyeing & types of dyeing,
Rai University
 
Bsc agri 2 pae u-4.4 publicrevenue-presentation-130208082149-phpapp02
Bsc agri  2 pae  u-4.4 publicrevenue-presentation-130208082149-phpapp02Bsc agri  2 pae  u-4.4 publicrevenue-presentation-130208082149-phpapp02
Bsc agri 2 pae u-4.4 publicrevenue-presentation-130208082149-phpapp02
Rai University
 
Bsc agri 2 pae u-4.3 public expenditure
Bsc agri  2 pae  u-4.3 public expenditureBsc agri  2 pae  u-4.3 public expenditure
Bsc agri 2 pae u-4.3 public expenditure
Rai University
 
Bsc agri 2 pae u-4.2 public finance
Bsc agri  2 pae  u-4.2 public financeBsc agri  2 pae  u-4.2 public finance
Bsc agri 2 pae u-4.2 public finance
Rai University
 
Bsc agri 2 pae u-4.1 introduction
Bsc agri  2 pae  u-4.1 introductionBsc agri  2 pae  u-4.1 introduction
Bsc agri 2 pae u-4.1 introduction
Rai University
 
Bsc agri 2 pae u-3.3 inflation
Bsc agri  2 pae  u-3.3  inflationBsc agri  2 pae  u-3.3  inflation
Bsc agri 2 pae u-3.3 inflation
Rai University
 
Bsc agri 2 pae u-3.2 introduction to macro economics
Bsc agri  2 pae  u-3.2 introduction to macro economicsBsc agri  2 pae  u-3.2 introduction to macro economics
Bsc agri 2 pae u-3.2 introduction to macro economics
Rai University
 
Bsc agri 2 pae u-3.1 marketstructure
Bsc agri  2 pae  u-3.1 marketstructureBsc agri  2 pae  u-3.1 marketstructure
Bsc agri 2 pae u-3.1 marketstructure
Rai University
 
Bsc agri 2 pae u-3 perfect-competition
Bsc agri  2 pae  u-3 perfect-competitionBsc agri  2 pae  u-3 perfect-competition
Bsc agri 2 pae u-3 perfect-competition
Rai University
 

More from Rai University (20)

Brochure Rai University
Brochure Rai University Brochure Rai University
Brochure Rai University
 
Mm unit 4point2
Mm unit 4point2Mm unit 4point2
Mm unit 4point2
 
Mm unit 4point1
Mm unit 4point1Mm unit 4point1
Mm unit 4point1
 
Mm unit 4point3
Mm unit 4point3Mm unit 4point3
Mm unit 4point3
 
Mm unit 3point2
Mm unit 3point2Mm unit 3point2
Mm unit 3point2
 
Mm unit 3point1
Mm unit 3point1Mm unit 3point1
Mm unit 3point1
 
Mm unit 2point2
Mm unit 2point2Mm unit 2point2
Mm unit 2point2
 
Mm unit 2 point 1
Mm unit 2 point 1Mm unit 2 point 1
Mm unit 2 point 1
 
Mm unit 1point3
Mm unit 1point3Mm unit 1point3
Mm unit 1point3
 
Mm unit 1point2
Mm unit 1point2Mm unit 1point2
Mm unit 1point2
 
Mm unit 1point1
Mm unit 1point1Mm unit 1point1
Mm unit 1point1
 
Bdft ii, tmt, unit-iii, dyeing & types of dyeing,
Bdft ii, tmt, unit-iii,  dyeing & types of dyeing,Bdft ii, tmt, unit-iii,  dyeing & types of dyeing,
Bdft ii, tmt, unit-iii, dyeing & types of dyeing,
 
Bsc agri 2 pae u-4.4 publicrevenue-presentation-130208082149-phpapp02
Bsc agri  2 pae  u-4.4 publicrevenue-presentation-130208082149-phpapp02Bsc agri  2 pae  u-4.4 publicrevenue-presentation-130208082149-phpapp02
Bsc agri 2 pae u-4.4 publicrevenue-presentation-130208082149-phpapp02
 
Bsc agri 2 pae u-4.3 public expenditure
Bsc agri  2 pae  u-4.3 public expenditureBsc agri  2 pae  u-4.3 public expenditure
Bsc agri 2 pae u-4.3 public expenditure
 
Bsc agri 2 pae u-4.2 public finance
Bsc agri  2 pae  u-4.2 public financeBsc agri  2 pae  u-4.2 public finance
Bsc agri 2 pae u-4.2 public finance
 
Bsc agri 2 pae u-4.1 introduction
Bsc agri  2 pae  u-4.1 introductionBsc agri  2 pae  u-4.1 introduction
Bsc agri 2 pae u-4.1 introduction
 
Bsc agri 2 pae u-3.3 inflation
Bsc agri  2 pae  u-3.3  inflationBsc agri  2 pae  u-3.3  inflation
Bsc agri 2 pae u-3.3 inflation
 
Bsc agri 2 pae u-3.2 introduction to macro economics
Bsc agri  2 pae  u-3.2 introduction to macro economicsBsc agri  2 pae  u-3.2 introduction to macro economics
Bsc agri 2 pae u-3.2 introduction to macro economics
 
Bsc agri 2 pae u-3.1 marketstructure
Bsc agri  2 pae  u-3.1 marketstructureBsc agri  2 pae  u-3.1 marketstructure
Bsc agri 2 pae u-3.1 marketstructure
 
Bsc agri 2 pae u-3 perfect-competition
Bsc agri  2 pae  u-3 perfect-competitionBsc agri  2 pae  u-3 perfect-competition
Bsc agri 2 pae u-3 perfect-competition
 

Recently uploaded

Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 

Recently uploaded (20)

Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 

B.sc cs-ii-u-1.3 digital logic circuits, digital component

  • 1. Digital Logic Circuits, Digital Component and Data Representation Course: B.Sc-CS-II Subject: Computer Organization And Architecture Unit-1 1
  • 2. Digital vs. Analog • An analog system has continuous range of values  A mercury thermometer  Vinyl records  Human eye • A digital system has a set of discrete values Digital Thermometer Compact Disc (CD) Digital camera
  • 4. Binary System • • Discrete elements of information are represented with • bits called binary codes.
  • 5. Decimal Code • Review the decimal number system. • Base (Radix) is 10 - symbols (0,1, . . 9) Digits • For Numbers > 9, add more significant digits in position to the left, e.g. 19>9. • Each position carries a weight. • If we were to write 1936.25 using a power series expansion and base 10 arithmetic:
  • 6. Binary number system The binary number system. Base is 2 - symbols (0,1) - Binary Digits (Bits) For Numbers > 1, add more significant digits in position to the left, e.g. 10>1. Each position carries a weight (using decimal). If we write 10111.01 using a decimal power series we convert from binary to decimal:
  • 7. Octal/Hex number systems • The octal number system • Its base is 8 à eight digits 0, 1, 2, 3, 4, 5, 6, 7 The hexadecimal number system – Its base is 16 à first 10 digits are borrowed from the decimal system and the letters A, B, C, D, E, F are used for the digits 10, 11, 12, 13, 14, 15
  • 8. Conversion from Decimal to Binary • Conversion from decimal to binary: • Let each bit of a binary number be represented by a variable whose subscript = bit positions, i.e., • Its decimal equivalent is: • It is necessary to separate the number into an integer part and a fraction: Repeatedly divide the decimal number by 2.
  • 10. Conversion from Decimal to Binary • Conversion from decimal fraction to binary: • same method used for integers except multiplication is used instead of division.
  • 11. Conversion from Decimal to Octal[1] • Conversion from decimal to octal: • The decimal number is first divided by 8. The remainder is the LSB. The quotient is then divide by 8 and the remainder is the next significant bit and so on. • Convert 1122 to octal.
  • 12.
  • 13. Conversion using Table • Conversion from and to binary, octal, and hexadecimal plays and important part in digital computers. • Since • each octal digit corresponds to 3 binary digits and each hexa digit corresponds to 4 binary digits.
  • 14. 1’s and 2’s Complements • 1’s complement of N = ( -1) – N (N is a binary #) • 1’s complement can be formed by changing 1’s to 0’s and 0’s to 1’s • 2’s complement of a number is obtained by leaving all least significant 0’s and the first 1 unchanged, and replacing 1’s with 0’s and 0’s with 1 in all higher significant digits. • The 1’s complement of 1101011 = 0010100 • The 2’s complement of 0110111 = 1001001 2n
  • 15. Subtraction Using Complements • Subtraction with digital hardware using complements: • Subtraction of two n-digit unsigned numbers M – N • base r: • 1. Add M to the r’s complement of N: M + (r– N) • 2. If M N, the sum will produce an end carry and is £ equal to rn that can be discarded. The result is then M – N. • 3. If M N, the sum will not produce an end carry • and is equal to rn – (N – M)
  • 16. Binary Subtraction using complements • Binary subtraction is done using the same procedure. • Subtract 1010100 – 1000011 using 2’s complement:
  • 17. Binary Subtraction using complements • Subtract 1010100 – 1000011 using 1’s complement: A = 1010100 • 1’s complement of B =+0111100 Sum = 10010000 End-around carry = + 1 Answer = 0010001
  • 18. Arithmetic addition • Negative numbers must be initially in 2’s complement form and if the obtained sum is negative, it is in 2’s complement form.
  • 19. References 1. Computer Organization and Architecture, Designing for performance by William Stallings, Prentice Hall of India. 2. Modern Computer Architecture, by Morris Mano, Prentice Hall of India. 3. Computer Architecture and Organization by John P. Hayes, McGraw Hill Publishing Company. 4. Computer Organization by V. Carl Hamacher, Zvonko G. Vranesic, Safwat G. Zaky, McGraw Hill Publishing Company.