outline
play

Outline Digital CMOS design Arithmetic operators Adders Adders - PowerPoint PPT Presentation

Outline Digital CMOS design Arithmetic operators Adders Adders Comparators Shifters Multipliers Pirouz Bazargan Sabet Digital Design February 2010 Adders Adding two natural numbers Let consider two natural numbers and


  1. Outline Digital CMOS design Arithmetic operators Adders Adders Comparators Shifters Multipliers Pirouz Bazargan Sabet Digital Design February 2010

  2. Adders Adding two natural numbers Let consider two natural numbers � � � � and � � � � coded on 8 bits using Natural Binary Code � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � Pirouz Bazargan Sabet Digital Design February 2010

  3. Adders Adding two natural numbers At each stage, I need to sum 3 single bit numbers � � � � � � � � � � � � � � � � � � � � � � � � The carry out of the stage i is the input carry of the next stage � � ��� � � � � � � � ��� � ��� ��� � � � � � � � � �� � �� and � � ���� � � � � ���� are Boolean � � � �� �� ���� ���� functions of � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � Pirouz Bazargan Sabet Digital Design February 2010

  4. Adders Adding two natural numbers � � � � � � � � � � � � � � � � � � � � � � 00 01 11 10 00 01 11 10 � � � � � � � � � � � � � � � � � � � � � � � � � � 0 0 � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 1 1 � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��� � � � ��� � � ��� ��� � �� � �� �� ��� � � ⊕ � � �� ⊕ � � � � � �� �� � � � � � � � ���� � � � ���� �� �� ��� �� � � � � � �� �� �� �� �� + � � � � � � �� �� �� �� �� + � � � � � � �� �� �� � �� � ⊕ ⊕ ⊕ �� ⊕ ⊕ ⊕ �� + + + �� + + + �� �� � � �� �� � � � ���� ���� � � �� �� � � �� �� � � � � � Pirouz Bazargan Sabet Digital Design February 2010

  5. Adders Adding two natural numbers � � �� � � �� �� �� �� ��� � � � � ⊕ � � � �� � ⊕ � � � � � � ���� � ���� �� ��� � � � �� �� �� + � � � � �� �� �� + � � � � �� �� � � � �� �� � � �� �� � � �� �� � � �� �� � ⊕ ⊕ ⊕ �� ⊕ ⊕ ⊕ �� + + + �� + + + � �� �� � � �� �� � � ���� ���� � � �� �� � � �� �� � � � � � � � ���� � � ���� �� �� �� ��� � � �� � �� �� �� ( � �� �� � � � � + � � � � � � ) ��� ��� ��� � ��� � �� �� � �� �� � + + + ���� ���� �� �� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��� � � � ��� ��� ��� � � � � � � � � � � � � � � � � Addition delay depends on the delay of � � � � �� �� to � � ��� � � �� �� ��� ��� ��� Pirouz Bazargan Sabet Digital Design February 2010

  6. Adders Adding two natural numbers � � � �� � �� �� �� �� ��� � � � � ⊕ � � � � �� ⊕ � � � � � � ���� � ���� �� ��� � � � �� �� �� + � � � � �� �� �� + � � � � �� �� � � � �� �� � � �� �� � � �� �� � � �� �� � ⊕ ⊕ ⊕ �� ⊕ ⊕ ⊕ �� + + + �� + + + � �� �� � � �� �� � � ���� ���� � � �� �� � � �� �� � � � � � � � ���� � � � � � � ���� ���� �� ���� �� ��� ��� �� �� �� �� � � � �� � � � � � �� �� �� �� �� �� �� �� �� �� ( � � � � � + ( � + � � � � � � � � � � ) ��� � �� �� �� �� � ��� ��� � ��� � ) ��� ��� ��� ��� � � �� �� �� � �� �� + + + � + + + ���� ���� ���� ���� � � �� �� �� �� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��� � � � ��� ��� ��� � � � � � � � � � � � � � � � � � � � � � � � � Pirouz Bazargan Sabet Digital Design February 2010

  7. Adders Adding two natural numbers � � �� � � �� �� �� �� ��� � � � � ⊕ � � � � �� ⊕ � � � � � � � ���� ���� �� ��� � � � �� �� �� + � � � � �� �� �� + � � � � �� �� � � � �� �� � � �� �� � � �� �� � � �� �� � ⊕ ⊕ ⊕ �� ⊕ ⊕ ⊕ �� + + + �� + + + � �� �� � � �� �� � � ���� ���� � � �� �� � � �� �� � � � � � � � � � ���� ���� �� �� ��� �� � � � � � �� �� �� �� �� + ( � � � � � � �� �� �� � �� � ) ��� ��� � ��� ��� �� + + + ���� ���� � � �� �� � � � � � � � � � � � ���� ���� �� �� �� ��� � � � � � �� �� �� �� �� + ( � � � � � ⊕ � � � � � � ) ��� ��� � ��� ��� �� + + + � ⊕ ⊕ ⊕ � ���� ���� � � �� �� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��� � � � ��� ��� ��� � � � � � � � � � � � � � � � � Pirouz Bazargan Sabet Digital Design February 2010

Recommend


More recommend