How to generate Generic VHDL from simulink for sysgen model?

조회 수: 2 (최근 30일)
Keththura
Keththura 2024년 8월 2일
댓글: Keththura 2024년 8월 2일
I have used xilinx basic blocks to design a model. I wanted to generate generic VHDL without xilinx specific references. Eventhough i have choosen Behavioural HDL for implementation generated vhdl consist of xilinx specific DFlip-Flop and SRLUTs. Kindly let me know if there is a way? if the option is not being applied then how can we write a matlab sript to set automatically without doing it manually?

답변 (3개)

Kiran Kintali
Kiran Kintali 2024년 8월 2일
편집: Kiran Kintali 2024년 8월 2일
HDL Coder by default generates generic RTL. The RTL is vendor independent but target optimized. The generated RTL can be taken to any FPGA/SoC or an ASIC.
Can you let us know what you mean by Xilinx specific RTL. There is only one instance when you request use of the Floating Point library for Xilinx you would see any Xilinx specific floating point library primitives.
Please share a sample model for reference.
  댓글 수: 2
Keththura
Keththura 2024년 8월 2일
Thanks for your promt response.
My model has xilinx adders and delay units. Its is designed to support with xilinx FPGA. As the second use case i wanted to generete VHDL and do the synthesis with ASIC tools. When i use Sysgen token to generate VHDL the generated VHDL has three references to Xilinx components mentioned multiple times throughout the VHDL they are “FDE”, “fdse” & “SRLC32”.
These are denoting D-flipflops and 32 clock cycle - variable length Shift register LUT with clock enabled. They are not supported in the Synthesis.
Is there a way to generate generic VHDL without these xilinx references
Kiran Kintali
Kiran Kintali 2024년 8월 2일
Can you confirm you use HDL Coder? https://www.mathworks.com/products/hdl-coder.html
Try these commands and check the synthesizable generated code
>> sfir_fixed
>> makehdl('sfir_fixed/symmetric_fir')

댓글을 달려면 로그인하십시오.


Keththura
Keththura 2024년 8월 2일

Keththura
Keththura 2024년 8월 2일
I had tried from sysgen token to generate then it is succesfully generated but had those xilinx references. when i use simulink HDL coder then getting these error messages.
  댓글 수: 2
Kiran Kintali
Kiran Kintali 2024년 8월 2일
HDL Coder supports blocks from the native Simulink library.
Keththura
Keththura 2024년 8월 2일
Normally i heard that if we select the behavioural HDL options in the xilinx blocks it will generate a generic VHDL that can be support for ASIC synthesis. But dont know the exact steps. Is there a way i could not able to design it using simulink blocks since i am using fixed point input formate.

댓글을 달려면 로그인하십시오.

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by