Showing posts with label Datapath Logic Cells. Show all posts
Showing posts with label Datapath Logic Cells. Show all posts

Datapath Logic Cells and I/O Cells | Cell Compilers

1 comments

Datapath Logic Cells
Suppose we wish to build an n -bit adder (that adds two n -bit numbers) and to exploit the regularity of this function in the layout. We can do so using a datapath structure.
The following two functions, SUM and COUT, implement the sum and carry out for a full adder ( FA ) with two data inputs (A, B) and a carry in, CIN:  
SUM = A ⊕ B ⊕ CIN = SUM(A, B, CIN) = PARITY(A, B, CIN) ,
(2.38)
 
 
COUT = A · B + A · CIN + B · CIN = MAJ(A, B, CIN).
(2.39)
The sum uses the parity function ('1' if there are an odd numbers of '1's in the inputs). The carry out, COUT, uses the 2-of-3 majority function ('1' if the majority of the inputs are '1'). We can combine these two functions in a single FA logic cell, ADD(A[ i ], B[ i ], CIN, S[ i ], COUT), shown in Figure 2.20(a), where  
S[ i ] = SUM (A[ i ], B[ i ], CIN) ,
(2.40)
 

 

Free Download Engineering Books - IEEE Books | Copyright 2009-2013 All right reserved | Design by BMW Automobiles | Created by Umair Sheikh