-
Notifications
You must be signed in to change notification settings - Fork 17
/
mul7u_0CA.v
46 lines (43 loc) · 1.53 KB
/
mul7u_0CA.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/***
* This code is a part of EvoApproxLib library (ehw.fit.vutbr.cz/approxlib) distributed under The MIT License.
* When used, please cite the following article(s): V. Mrazek, S. S. Sarwar, L. Sekanina, Z. Vasicek and K. Roy, "Design of power-efficient approximate multipliers for approximate artificial neural networks," 2016 IEEE/ACM International Conference on Computer-Aided Design (ICCAD), Austin, TX, 2016, pp. 1-7. doi: 10.1145/2966986.2967021
* This file contains a circuit from a sub-set of pareto optimal circuits with respect to the pwr and ep parameters
***/
// MAE% = 5.09 %
// MAE = 835
// WCE% = 19.05 %
// WCE = 3121
// WCRE% = 114.31 %
// EP% = 98.41 %
// MRE% = 46.83 %
// MSE = 11107.118e2
// PDK45_PWR = 0.0068 mW
// PDK45_AREA = 35.2 um2
// PDK45_DELAY = 0.21 ns
module mul7u_0CA(A, B, O);
input [6:0] A, B;
output [13:0] O;
wire [6:0] A, B;
wire [13:0] O;
wire sig_194, sig_219, sig_220, sig_223, sig_224, sig_243;
assign O[3] = A[5] & B[4];
assign O[0] = A[6] & B[5];
assign O[2] = B[5] & A[6];
assign O[9] = A[5] & B[6];
assign sig_194 = A[6] & B[6];
assign sig_219 = B[6] & A[4];
assign sig_220 = O[0] ^ O[9];
assign sig_223 = sig_220 ^ O[2];
assign sig_224 = B[5] & A[6];
assign sig_243 = sig_223 & A[4];
assign O[8] = sig_194 ^ sig_224;
assign O[1] = B[6] & sig_224;
assign O[7] = A[6] & sig_243;
assign O[5] = O[8] ^ sig_243;
assign O[6] = O[1] | O[7];
assign O[4] = sig_223 ^ sig_219;
assign O[10] = O[3];
assign O[11] = O[4];
assign O[12] = O[5];
assign O[13] = O[6];
endmodule