can we generate HDL code for matrix multiplication ?

6 ビュー (過去 30 日間)
satish kumar
satish kumar 2020 年 12 月 15 日
回答済み: Kiran Kintali 2021 年 1 月 11 日
Hi , I tried to generate hdl code for 20*20 matrix A multiplied with 20 *1 matrix B. But HDL code generation failed saying matrix inputs not acceptable. Please help how to proceed. Thank you!

回答 (3 件)

Kiran Kintali
Kiran Kintali 2020 年 12 月 15 日
hi satish, can you share more details?are both A and B inputs to the DUT or only one of them, what are the types, are you looking for fully parallel implementation or are you looking for any serialization or area reduction options in terms of DSP reduction for the partial products? please share a sample model with your usecase for additional guidance.
  2 件のコメント
satish kumar
satish kumar 2020 年 12 月 30 日
Yes kiran, both A and B are inputs. I need a multipler design.
satish kumar
satish kumar 2020 年 12 月 30 日
Yes parallel implementation would be better. I need to generate VHDL code for the multiplier. I want to implement the design in FPGA.

サインインしてコメントする。


Kiran Kintali
Kiran Kintali 2020 年 12 月 30 日
Attaching few flavors of matrix multiplication compatible with HDL Coder.
  1. matmul_external_memory_20b.slx
  2. matmul_mlfb_fixpt_20b.slx
  3. matmul_with_const_20b.slx
  4. matmul_single_streaming_20b.slx
  5. matmul_single_20b.slx
  1 件のコメント
satish kumar
satish kumar 2021 年 1 月 11 日
Thanks! But i have matlab 2020a. The .slx couldnt be opened.

サインインしてコメントする。


Kiran Kintali
Kiran Kintali 2021 年 1 月 11 日
You can do this to open the models. The models do not use any new 20b features.
>> set_param(0, 'ErrorIfLoadNewModel', 'off')

カテゴリ

Help Center および File ExchangeCode Generation についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by