"Detect Increase" causes multiple identical HDL files to be generated with HDL coder
조회 수: 4(최근 30일)
표시 이전 댓글
Hello,
I am encountering an issue with HDL code generation, simulink blocks from the HDL coder library are generating files for every instance in my model, this results in a lot of unnecessary clutter. I'm not able to make these blocks atomic because they are default library blocks.
Thanks!
댓글 수: 0
답변(1개)
Kiran Kintali
2022년 11월 2일
Please consider this option to increase reuse of shared modules.
https://www.mathworks.com/help/hdlcoder/ug/generating-reusable-code-for-atomic-subsystems.html
makehdl(dut, 'SubsystemReuse', 'Atomic and Virtual')
The attached module has multiple Detect blocks. They all generate single shared module/entity.
### Working on test_detect_inc/Subsystem1/Subsystem/Detect Increase as hdlsrc\test_detect_inc\Detect_Increase.vhd.
### Working on test_detect_inc/Subsystem1/Subsystem as hdlsrc\test_detect_inc\Subsystem.vhd.
### Working on test_detect_inc/Subsystem1 as hdlsrc\test_detect_inc\Subsystem1.vhd.
### Code Generation for 'test_detect_inc' completed.
댓글 수: 0
참고 항목
범주
Find more on Sources in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!