Generate a HDL IP Core using MATLAB command line

조회 수: 11 (최근 30일)
Lewis McLaughlin
Lewis McLaughlin 2019년 9월 18일
댓글: Charan Jadigam 2020년 3월 20일
Hello,
Is it possible to generate a HDL IP Core of a MATLAB function using only the MATLAB command line or script?
I do not want to have to open HDL Workflow advisor or generate from a Simulink model.
Generating HDL is not a problem, however generating an IP Core requires that the Target Platform Interfaces are set. In my case, I would like for them to be External Port. I cannot see how to achieve this using the coder.HdlConfig class.
There is a setTargetInterface property when I tab complete the object, but this appears to be hidden when I open it and I cannot find any relevant documentation for this property.
Any help would be appreciated.
Thanks,
Lewis.

답변 (1개)

stozaki
stozaki 2020년 1월 19일
Hello,
Please refer following documentation.
Regards,
stozaki
  댓글 수: 1
Charan Jadigam
Charan Jadigam 2020년 3월 20일
Hi,
The link to document mentioned by Mr.Stozaki contains the steps to be followed to generate matlab script from the configurations set by HDL workflow advisor.
The target Interface property can be set to external port by the following command,
hdlset_param(<model_name/<block_name>/<port_name>', 'IOInterface', 'External Port');

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

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by