Skip to content

Commit b84de7b

Browse files
committed
[rtl vvau]: minor fix to dsp estimation
1 parent dfd501e commit b84de7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/finn/custom_op/fpgadataflow/rtl/vectorvectoractivation_rtl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ def lut_estimation(self):
144144
return 0
145145

146146
def dsp_estimation(self):
147+
P = self.get_nodeattr("PE")
147148
Q = self.get_nodeattr("SIMD")
148-
return int(np.ceil(Q / 3))
149+
return int(P * np.ceil(Q / 3))
149150

150151
def instantiate_ip(self, cmd):
151152
# instantiate the RTL IP

0 commit comments

Comments
 (0)