필터 지우기
필터 지우기

Is there any way to tell HDL Coder to produce less files?

조회 수: 1 (최근 30일)
Ali
Ali 2012년 7월 12일
Hello, I have many subsystems in my Simulink model which are exactly the same, just different names. However, HDL Coder produces a VHDL file for each and every one. Is there any way to tell Simulink/HDL coder to produce only one file and then use multiple instances? Thanks

채택된 답변

Tim McBrayer
Tim McBrayer 2012년 7월 12일
Yes, there is. Identical atomic subsystems will only generate one module/entity that will be multiply instantiated. The subsystems need to be structurally identical, have the same data types, signal rates, etc.
So, all you need to do is convert each instance of your shared subsystem to be atomic. An easy way to guarantee this is to place your atomic subsystem in a library, and instantiate the library block wherever necessary. This will also make your Simulink model more compact, removing the subsystem duplication.
  댓글 수: 2
Philippe
Philippe 2013년 4월 16일
If we put the atomic blocks into a library as suggested, how do we then modify the HDL parameters for the library block? The HDL Code right click menu is not visible in the library.
Tim McBrayer
Tim McBrayer 2013년 4월 16일
You should be able to set the HDL parameters of the library block when it's in your model.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 HDL Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by