Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
0 of .
Results for:
P. 1
Extra

# Extra

Ratings: (0)|Views: 3|Likes:

### Availability:

See more
See less

08/11/2014

pdf

text

original

Controlled NOT Gate:Controlled V Gate:Controlled V+ Gate:

module wallace_tree( multiplicand, multiplier, product );output [15:0] product ;input [7:0] multiplicand ;input [7:0] multiplier ;wire [7:0] x ;wire [7:0] y ;wire p [7:0][7:0] ;wire [127:0] g ;wire [17:1] Cout;wire [31:1] S ;wire [31:1] C ;wire [13:1] Sr ;wire [13:1] Cr ;assign x = multiplicand ;assign y = multiplier ;assign product[0] = p[0][0] ;assign product[1] = S[1] ;assign product[2] = S[19] ;assign product[15:3] = Sr[13:1] ;//**********PARTIAL PRODUCT GENERATION **********peres gate0(x[0], y[0] , 0, g[0], g[1], p[0][0] );peres gate1(x[0], y[1] , 0, g[2], g[3], p[0][1] );peres gate2(x[0], y[2] , 0, g[4], g[5], p[0][2] );peres gate3(x[0], y[3] , 0, g[6], g[7], p[0][3] );peres gate4(x[0], y[4] , 0, g[8], g[9], p[0][4] );peres gate5(x[0], y[5] , 0, g[10], g[11], p[0][5] );peres gate6(x[0], y[6] , 0, g[12], g[13], p[0][6] );peres gate7(x[0], y[7] , 0, g[14], g[15], p[0][7] );