-
Notifications
You must be signed in to change notification settings - Fork 17
/
mul7u_06J.v
204 lines (201 loc) · 7.62 KB
/
mul7u_06J.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
/***
* 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 wce parameters
***/
// MAE% = 0.27 %
// MAE = 45
// WCE% = 0.94 %
// WCE = 154
// WCRE% = 300.00 %
// EP% = 95.21 %
// MRE% = 5.62 %
// MSE = 3099
// PDK45_PWR = 0.173 mW
// PDK45_AREA = 375.0 um2
// PDK45_DELAY = 1.28 ns
module mul7u_06J(A, B, O);
input [6:0] A, B;
output [13:0] O;
wire [6:0] A, B;
wire [13:0] O;
wire sig_27, sig_51, sig_54, sig_55, sig_56, sig_60;
wire sig_62, sig_63, sig_76, sig_78, sig_80, sig_82;
wire sig_83, sig_84, sig_85, sig_86, sig_87, sig_88;
wire sig_89, sig_90, sig_91, sig_92, sig_93, sig_94;
wire sig_95, sig_99, sig_100, sig_101, sig_102, sig_114;
wire sig_115, sig_116, sig_117, sig_118, sig_119, sig_120;
wire sig_121, sig_122, sig_123, sig_124, sig_125, sig_126;
wire sig_128, sig_129, sig_130, sig_131, sig_132, sig_133;
wire sig_134, sig_137, sig_138, sig_139, sig_140, sig_141;
wire sig_148, sig_149, sig_150, sig_151, sig_152, sig_153;
wire sig_154, sig_156, sig_157, sig_158, sig_159, sig_160;
wire sig_161, sig_162, sig_163, sig_164, sig_165, sig_166;
wire sig_167, sig_168, sig_169, sig_170, sig_171, sig_172;
wire sig_173, sig_175, sig_176, sig_177, sig_178, sig_180;
wire sig_183, sig_184, sig_186, sig_187, sig_188, sig_189;
wire sig_191, sig_192, sig_193, sig_194, sig_195, sig_196;
wire sig_197, sig_198, sig_199, sig_201, sig_202, sig_203;
wire sig_204, sig_205, sig_206, sig_207, sig_208, sig_209;
wire sig_210, sig_211, sig_212, sig_213, sig_214, sig_215;
wire sig_216, sig_217, sig_218, sig_219, sig_221, sig_222;
wire sig_223, sig_224, sig_226, sig_227, sig_228, sig_229;
wire sig_231, sig_232, sig_233, sig_234, sig_236, sig_237;
wire sig_238, sig_239, sig_242, sig_243, sig_244, sig_246;
wire sig_247, sig_248, sig_249;
assign sig_27 = A[6] & B[1];
assign sig_51 = B[1] & A[5];
assign sig_54 = sig_51 & A[6];
assign sig_55 = sig_54 ^ sig_27;
assign sig_56 = sig_54;
assign sig_60 = A[3] & B[2];
assign sig_62 = A[5] & B[2];
assign sig_63 = A[6] & B[2];
assign sig_76 = A[5] ^ sig_60;
assign sig_78 = sig_76;
assign sig_80 = A[5] ^ sig_78;
assign sig_82 = B[2] & A[4];
assign sig_83 = B[0] & sig_80;
assign sig_84 = B[0] & A[4];
assign sig_85 = sig_82 | sig_83;
assign sig_86 = sig_55 | sig_62;
assign sig_87 = sig_55 & A[5];
assign sig_88 = sig_86 & sig_85;
assign sig_89 = sig_86 ^ sig_85;
assign sig_90 = sig_87 ^ sig_88;
assign sig_91 = sig_56 ^ sig_63;
assign sig_92 = sig_56 & B[2];
assign sig_93 = A[6] & sig_90;
assign sig_94 = sig_91 ^ sig_90;
assign sig_95 = sig_92 | sig_93;
assign sig_99 = A[2] & B[3];
assign sig_100 = A[4] & B[3];
assign sig_101 = A[5] & B[3];
assign sig_102 = A[6] & B[3];
assign sig_114 = A[3] & B[3];
assign sig_115 = sig_84 ^ sig_99;
assign sig_116 = sig_84 & sig_99;
assign sig_117 = sig_115 & sig_114;
assign sig_118 = sig_115 ^ sig_114;
assign sig_119 = sig_116 ^ sig_117;
assign sig_120 = sig_89 ^ sig_100;
assign sig_121 = sig_89 & sig_100;
assign sig_122 = sig_120 & sig_119;
assign sig_123 = sig_120 ^ sig_119;
assign sig_124 = sig_121 ^ sig_122;
assign sig_125 = sig_94 ^ sig_101;
assign sig_126 = sig_94 & sig_101;
assign O[2] = sig_125 & sig_124;
assign sig_128 = sig_125 ^ sig_124;
assign sig_129 = sig_126 | O[2];
assign sig_130 = sig_95 ^ sig_102;
assign sig_131 = sig_95 & B[3];
assign sig_132 = A[6] & sig_129;
assign sig_133 = sig_130 ^ sig_129;
assign sig_134 = sig_131 | sig_132;
assign sig_137 = A[2] & B[4];
assign sig_138 = A[3] & B[4];
assign sig_139 = A[4] & B[4];
assign sig_140 = A[5] & B[4];
assign sig_141 = A[6] & B[4];
assign sig_148 = B[4] & A[1];
assign sig_149 = sig_118 ^ sig_137;
assign sig_150 = sig_118 & sig_137;
assign sig_151 = sig_149 & sig_148;
assign sig_152 = sig_149 ^ sig_148;
assign sig_153 = sig_150 ^ sig_151;
assign sig_154 = sig_123 ^ sig_138;
assign O[4] = sig_123 & sig_138;
assign sig_156 = sig_154 & sig_153;
assign sig_157 = sig_154 ^ sig_153;
assign sig_158 = O[4] | sig_156;
assign sig_159 = sig_128 ^ sig_139;
assign sig_160 = sig_128 & sig_139;
assign sig_161 = sig_159 & sig_158;
assign sig_162 = sig_159 ^ sig_158;
assign sig_163 = sig_160 ^ sig_161;
assign sig_164 = sig_133 ^ sig_140;
assign sig_165 = sig_133 & sig_140;
assign sig_166 = sig_164 & sig_163;
assign sig_167 = sig_164 ^ sig_163;
assign sig_168 = sig_165 | sig_166;
assign sig_169 = sig_134 ^ sig_141;
assign sig_170 = sig_134 & B[4];
assign sig_171 = A[6] & sig_168;
assign sig_172 = sig_169 ^ sig_168;
assign sig_173 = sig_170 | sig_171;
assign sig_175 = A[1] & B[5];
assign sig_176 = A[2] & B[5];
assign sig_177 = A[3] & B[5];
assign sig_178 = A[4] & B[5];
assign O[5] = A[5] & B[5];
assign sig_180 = A[6] & B[5];
assign sig_183 = sig_152 ^ sig_175;
assign sig_184 = sig_152 & A[1];
assign sig_186 = sig_183;
assign sig_187 = sig_184 & B[5];
assign sig_188 = sig_157 ^ sig_176;
assign sig_189 = sig_157 & sig_176;
assign O[1] = sig_188 & sig_187;
assign sig_191 = sig_188 ^ sig_187;
assign sig_192 = sig_189 ^ O[1];
assign sig_193 = sig_162 ^ sig_177;
assign sig_194 = sig_162 & sig_177;
assign sig_195 = sig_193 & sig_192;
assign sig_196 = sig_193 ^ sig_192;
assign sig_197 = sig_194 | sig_195;
assign sig_198 = sig_167 ^ sig_178;
assign sig_199 = sig_167 & sig_178;
assign O[3] = sig_198 & sig_197;
assign sig_201 = sig_198 ^ sig_197;
assign sig_202 = sig_199 | O[3];
assign sig_203 = sig_172 ^ O[5];
assign sig_204 = sig_172 & O[5];
assign sig_205 = sig_203 & sig_202;
assign sig_206 = sig_203 ^ sig_202;
assign sig_207 = sig_204 ^ sig_205;
assign sig_208 = sig_173 ^ sig_180;
assign sig_209 = sig_173 & B[5];
assign sig_210 = A[6] & sig_207;
assign sig_211 = sig_208 ^ sig_207;
assign sig_212 = sig_209 | sig_210;
assign sig_213 = A[0] & B[6];
assign sig_214 = A[1] & B[6];
assign sig_215 = A[2] & B[6];
assign sig_216 = A[3] & B[6];
assign sig_217 = A[4] & B[6];
assign sig_218 = A[5] & B[6];
assign sig_219 = A[6] & B[6];
assign O[6] = sig_186 ^ sig_213;
assign sig_221 = sig_186 & sig_213;
assign sig_222 = sig_191 ^ sig_214;
assign sig_223 = sig_191 & sig_214;
assign sig_224 = sig_222 & sig_221;
assign O[7] = sig_222 ^ sig_221;
assign sig_226 = sig_223 ^ sig_224;
assign sig_227 = sig_196 ^ sig_215;
assign sig_228 = sig_196 & sig_215;
assign sig_229 = sig_227 & sig_226;
assign O[8] = sig_227 ^ sig_226;
assign sig_231 = sig_228 ^ sig_229;
assign sig_232 = sig_201 ^ sig_216;
assign sig_233 = sig_201 & sig_216;
assign sig_234 = sig_232 & sig_231;
assign O[9] = sig_232 ^ sig_231;
assign sig_236 = sig_233 | sig_234;
assign sig_237 = sig_206 ^ sig_217;
assign sig_238 = sig_206 & sig_217;
assign sig_239 = sig_237 & sig_236;
assign O[10] = sig_237 ^ sig_236;
assign O[0] = sig_238 ^ sig_239;
assign sig_242 = sig_211 ^ sig_218;
assign sig_243 = sig_211 & sig_218;
assign sig_244 = sig_242 & O[0];
assign O[11] = sig_242 ^ O[0];
assign sig_246 = sig_243 | sig_244;
assign sig_247 = sig_212 ^ sig_219;
assign sig_248 = sig_212 & B[6];
assign sig_249 = A[6] & sig_246;
assign O[12] = sig_247 ^ sig_246;
assign O[13] = sig_248 | sig_249;
endmodule