SlideShare une entreprise Scribd logo
1  sur  18
NUMBER SYSTEM
• CONVENTIONAL NUMBER SYSTEM
• REDUNDANT NUMBER SYSTEM
• RESIDUE NUMBER SYSTEM
CONVENTIONAL NUMBER SYSTEM
• It is non-redundant,weighted,positonal number
system
• Every number x represented as
wd-word length
wi-weight associated with each digit
Positional number system wi depends on the position of
the digit xi.
Conventional number system wi = xi ,such systems are
called fixed-radix systems.
Number
Integer Fractional part.
• A fixed –point number is written from L to R with
MSB at L and LSB at R.
• 2 distinct forms of
fixed-point arithmetic
Integer arithmetic
( RH imprtant) (RH kept RH
arithmetic dropped)

Fractional fixed point
(LH imprtnt)
(LH kept RH dropped)
• Fractional fixed point arithmetic- signed mantissa and
exponent.
• Advantage-suppress parasitic oscillation , less chip
area & faster.
Fixed point represented by:
•
•
•
•
•

SIGNED –MAGNITUDE REPRESENTATION
COMPLENENT REPRESENTATION
ONE’S COMPLENENT REPRESENTATION
TWO’S COMPLENENT REPRESENTATION
BINARY OFFSET REPRENSATION
SIGNED-MAGNITUDE REPRESENTATION
• Magnitude & sign represented separately
• 1st digit-sign,remaining digit-Magnitude
• Representation:

• Zero +0 or -0 , not in the case of 1.
• Adv : Mul , div easy
• Disadv : add,sub – sign-operands
COMPLENENT REPRESENTATION
• Pos no. – 1’s ,2’s,binary offset = signed mag rep
• Neg no. -x=R-x
• For y>x
x+(R-y)=R-(y-x)
• For x>y
R-(y-x)=R-(x-y)
Radix complement representation

Diminished-radix complement:
complement
Adv: Computation is simpler
ONE’S COMPLENENTREPRESENTATION
• Dimnished rep: R=

; r=2 & k=0

• ReP:

• X>0 1’s complement=binary word
• X<0 bit values complement of positive value.
• Arithmetic operations -complicated
TWO’S COMPLENENT REPRESENTATION
•
•
•
•
•

Radix complement representation
R= =1 ; r=2 & k=0
Rep:
X>0 complement=binary word
X<0 bit complement +Q
BINARY OFFSET REPRENSATION
• Non-redundant representation
• Seq digit = 2’s comp except for the sign bit i.e.
complemented
• Rep:

• Range: -1<=x<=1-Q
REDUNDANT NUMBER SYSTEM
• Time consuming , add , sub-without long carry paths.
• Simplify-speed-suitable application-specific
arithmetic units
• 3 such representation are:
• SIGNED-DIGIT CODE
• CANONIC SIGNED DIGIT CODE
• ON-LINE ARITMETIC
SIGNED-DIGIT CODE
• SDC –each digit is allowed to have sign.
• Values of (+1,0,-1)
• Rep:

• X range -2+Q<=x<=2-Q
• Quantizing – creates problem-bcoz - sdc not unique.
•
SDC
Conventional representation
CANONIC SIGNED DIGIT CODE
• CSDC –Unique representation
• Rep:

• X range (-4/3)+Q<=x<=(4/3)-Q
• Average no. of non-zero digit
Wd/3 + (1+2-wd)/9
ON-LINE ARITMETIC
•
•
•
•
•

Compute ith digit.
Uses only ( i + small positive constant)
Favorable - Recursive algorithm
Mul , div -SDC
SDC
2’s complement allows online operation.
RESIDUE NUMBER SYSTEM
• RNS-avoids carry propagation
• Rep by a set of residues after an integer division by
mutal prime factor(moduli)
• Relation (m1, m2…mp (moduli) and x ): x=qi mi+ri
• qi, mi,ri are integers x=(r1,r2…rn)
• The Chinese remainder theorem:
A=(a1,a2....ap) & B=(b1,b2…bp)
then,
A B=[(a1 b1)m1,(a2 b2)m2….(ap
bp)mp]
• ARITHMETIC OPERATIONS USING RNS:
• Addition and subtraction

• Multiplication

• Division
• Adv:
• RNS –Digital computer arithmetic.
Large integer
set of smaller integers
large calculation
series of smaller calculations
hardware implementations
• Diadv:
• Restricted to fixed pioint arithmetic
• Comparision of overflow,quantization operation is
difficult in order to round off
RNS
normal no. Rep.
• Not suitable – Recursieve loops.

Contenu connexe

Similaire à Number Systems Comparison: Conventional, Redundant and Residue

Quasi Cyclic LDPC codes - Algebraic Construction
Quasi Cyclic LDPC codes - Algebraic Construction Quasi Cyclic LDPC codes - Algebraic Construction
Quasi Cyclic LDPC codes - Algebraic Construction Eapen Vpp
 
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.pptxabelllll
 
Number system and codes
Number system and codesNumber system and codes
Number system and codesAbhiraj Bohra
 
Digital communications 1
Digital communications 1Digital communications 1
Digital communications 1Jojie Cepeda
 
PRESENTATION ON DATA STRUCTURE AND THEIR TYPE
PRESENTATION ON DATA STRUCTURE AND THEIR TYPEPRESENTATION ON DATA STRUCTURE AND THEIR TYPE
PRESENTATION ON DATA STRUCTURE AND THEIR TYPEnikhilcse1
 
456589.-Compiler-Design-Code-Generation (1).ppt
456589.-Compiler-Design-Code-Generation (1).ppt456589.-Compiler-Design-Code-Generation (1).ppt
456589.-Compiler-Design-Code-Generation (1).pptMohibKhan79
 
Switching theory Unit 1
Switching theory Unit 1Switching theory Unit 1
Switching theory Unit 1SURBHI SAROHA
 
Digital Electronics – Unit I.pdf
Digital Electronics – Unit I.pdfDigital Electronics – Unit I.pdf
Digital Electronics – Unit I.pdfKannan Kanagaraj
 
Fixed Point Conversion
Fixed Point ConversionFixed Point Conversion
Fixed Point ConversionRajesh Sharma
 
My review on low density parity check codes
My review on low density parity check codesMy review on low density parity check codes
My review on low density parity check codespulugurtha venkatesh
 
Digital logic-formula-notes-final-1
Digital logic-formula-notes-final-1Digital logic-formula-notes-final-1
Digital logic-formula-notes-final-1Kshitij Singh
 
Digital Communication: Channel Coding
Digital Communication: Channel CodingDigital Communication: Channel Coding
Digital Communication: Channel CodingDr. Sanjay M. Gulhane
 
Boolean Algebra Arithmetic SIG UNSIGN.ppt
Boolean Algebra  Arithmetic SIG UNSIGN.pptBoolean Algebra  Arithmetic SIG UNSIGN.ppt
Boolean Algebra Arithmetic SIG UNSIGN.pptAshishChandrakar12
 
Chap 3. signal processing elemnt part three
Chap 3. signal processing elemnt part threeChap 3. signal processing elemnt part three
Chap 3. signal processing elemnt part threeYemaneBayray
 

Similaire à Number Systems Comparison: Conventional, Redundant and Residue (20)

DLD_Lecture_notes2.ppt
DLD_Lecture_notes2.pptDLD_Lecture_notes2.ppt
DLD_Lecture_notes2.ppt
 
Quasi Cyclic LDPC codes - Algebraic Construction
Quasi Cyclic LDPC codes - Algebraic Construction Quasi Cyclic LDPC codes - Algebraic Construction
Quasi Cyclic LDPC codes - Algebraic Construction
 
Number Systems.ppt
Number Systems.pptNumber Systems.ppt
Number Systems.ppt
 
DC_PPT.pptx
DC_PPT.pptxDC_PPT.pptx
DC_PPT.pptx
 
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
 
Number system and codes
Number system and codesNumber system and codes
Number system and codes
 
Digital Logic
Digital LogicDigital Logic
Digital Logic
 
Unit 2 CNS -- RC% algorithm
Unit 2 CNS -- RC% algorithmUnit 2 CNS -- RC% algorithm
Unit 2 CNS -- RC% algorithm
 
Digital communications 1
Digital communications 1Digital communications 1
Digital communications 1
 
PRESENTATION ON DATA STRUCTURE AND THEIR TYPE
PRESENTATION ON DATA STRUCTURE AND THEIR TYPEPRESENTATION ON DATA STRUCTURE AND THEIR TYPE
PRESENTATION ON DATA STRUCTURE AND THEIR TYPE
 
456589.-Compiler-Design-Code-Generation (1).ppt
456589.-Compiler-Design-Code-Generation (1).ppt456589.-Compiler-Design-Code-Generation (1).ppt
456589.-Compiler-Design-Code-Generation (1).ppt
 
Switching theory Unit 1
Switching theory Unit 1Switching theory Unit 1
Switching theory Unit 1
 
Digital Electronics – Unit I.pdf
Digital Electronics – Unit I.pdfDigital Electronics – Unit I.pdf
Digital Electronics – Unit I.pdf
 
Combinational Circuits PPT.pdf
Combinational Circuits PPT.pdfCombinational Circuits PPT.pdf
Combinational Circuits PPT.pdf
 
Fixed Point Conversion
Fixed Point ConversionFixed Point Conversion
Fixed Point Conversion
 
My review on low density parity check codes
My review on low density parity check codesMy review on low density parity check codes
My review on low density parity check codes
 
Digital logic-formula-notes-final-1
Digital logic-formula-notes-final-1Digital logic-formula-notes-final-1
Digital logic-formula-notes-final-1
 
Digital Communication: Channel Coding
Digital Communication: Channel CodingDigital Communication: Channel Coding
Digital Communication: Channel Coding
 
Boolean Algebra Arithmetic SIG UNSIGN.ppt
Boolean Algebra  Arithmetic SIG UNSIGN.pptBoolean Algebra  Arithmetic SIG UNSIGN.ppt
Boolean Algebra Arithmetic SIG UNSIGN.ppt
 
Chap 3. signal processing elemnt part three
Chap 3. signal processing elemnt part threeChap 3. signal processing elemnt part three
Chap 3. signal processing elemnt part three
 

Dernier

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 

Dernier (20)

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 

Number Systems Comparison: Conventional, Redundant and Residue

  • 1. NUMBER SYSTEM • CONVENTIONAL NUMBER SYSTEM • REDUNDANT NUMBER SYSTEM • RESIDUE NUMBER SYSTEM
  • 2. CONVENTIONAL NUMBER SYSTEM • It is non-redundant,weighted,positonal number system • Every number x represented as wd-word length wi-weight associated with each digit Positional number system wi depends on the position of the digit xi. Conventional number system wi = xi ,such systems are called fixed-radix systems.
  • 3. Number Integer Fractional part. • A fixed –point number is written from L to R with MSB at L and LSB at R. • 2 distinct forms of fixed-point arithmetic Integer arithmetic ( RH imprtant) (RH kept RH arithmetic dropped) Fractional fixed point (LH imprtnt) (LH kept RH dropped)
  • 4. • Fractional fixed point arithmetic- signed mantissa and exponent. • Advantage-suppress parasitic oscillation , less chip area & faster. Fixed point represented by: • • • • • SIGNED –MAGNITUDE REPRESENTATION COMPLENENT REPRESENTATION ONE’S COMPLENENT REPRESENTATION TWO’S COMPLENENT REPRESENTATION BINARY OFFSET REPRENSATION
  • 5. SIGNED-MAGNITUDE REPRESENTATION • Magnitude & sign represented separately • 1st digit-sign,remaining digit-Magnitude • Representation: • Zero +0 or -0 , not in the case of 1. • Adv : Mul , div easy • Disadv : add,sub – sign-operands
  • 6. COMPLENENT REPRESENTATION • Pos no. – 1’s ,2’s,binary offset = signed mag rep • Neg no. -x=R-x • For y>x x+(R-y)=R-(y-x) • For x>y R-(y-x)=R-(x-y)
  • 7. Radix complement representation Diminished-radix complement: complement Adv: Computation is simpler
  • 8. ONE’S COMPLENENTREPRESENTATION • Dimnished rep: R= ; r=2 & k=0 • ReP: • X>0 1’s complement=binary word • X<0 bit values complement of positive value. • Arithmetic operations -complicated
  • 9. TWO’S COMPLENENT REPRESENTATION • • • • • Radix complement representation R= =1 ; r=2 & k=0 Rep: X>0 complement=binary word X<0 bit complement +Q
  • 10. BINARY OFFSET REPRENSATION • Non-redundant representation • Seq digit = 2’s comp except for the sign bit i.e. complemented • Rep: • Range: -1<=x<=1-Q
  • 11. REDUNDANT NUMBER SYSTEM • Time consuming , add , sub-without long carry paths. • Simplify-speed-suitable application-specific arithmetic units • 3 such representation are: • SIGNED-DIGIT CODE • CANONIC SIGNED DIGIT CODE • ON-LINE ARITMETIC
  • 12. SIGNED-DIGIT CODE • SDC –each digit is allowed to have sign. • Values of (+1,0,-1) • Rep: • X range -2+Q<=x<=2-Q • Quantizing – creates problem-bcoz - sdc not unique. • SDC Conventional representation
  • 13. CANONIC SIGNED DIGIT CODE • CSDC –Unique representation • Rep: • X range (-4/3)+Q<=x<=(4/3)-Q • Average no. of non-zero digit Wd/3 + (1+2-wd)/9
  • 14. ON-LINE ARITMETIC • • • • • Compute ith digit. Uses only ( i + small positive constant) Favorable - Recursive algorithm Mul , div -SDC SDC 2’s complement allows online operation.
  • 15. RESIDUE NUMBER SYSTEM • RNS-avoids carry propagation • Rep by a set of residues after an integer division by mutal prime factor(moduli) • Relation (m1, m2…mp (moduli) and x ): x=qi mi+ri • qi, mi,ri are integers x=(r1,r2…rn) • The Chinese remainder theorem: A=(a1,a2....ap) & B=(b1,b2…bp) then, A B=[(a1 b1)m1,(a2 b2)m2….(ap bp)mp]
  • 16. • ARITHMETIC OPERATIONS USING RNS: • Addition and subtraction • Multiplication • Division
  • 17. • Adv: • RNS –Digital computer arithmetic. Large integer set of smaller integers large calculation series of smaller calculations hardware implementations
  • 18. • Diadv: • Restricted to fixed pioint arithmetic • Comparision of overflow,quantization operation is difficult in order to round off RNS normal no. Rep. • Not suitable – Recursieve loops.