Skip to content

Commit

Permalink
[RTL MVAU] Allow for 4bit compute with dsp48 for versal devices
Browse files Browse the repository at this point in the history
  • Loading branch information
auphelia committed Aug 22, 2024
1 parent 188bf17 commit 380d2ac
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,10 @@ def _resolve_impl_style(self, dsp_block):
weight_width = self.get_input_datatype(1).bitwidth()

if dsp_block == "DSP58":
return "mvu_vvu_8sx9_dsp58"
if act_width <= 4 and weight_width <= 4:
return "mvu_4sx4u_dsp48e2"
else:
return "mvu_vvu_8sx9_dsp58"
else:
if act_width <= 4 and weight_width <= 4:
if dsp_block == "DSP48E1":
Expand Down

0 comments on commit 380d2ac

Please sign in to comment.