Is HDL Coder capable of generating configurable code?
조회 수: 1 (최근 30일)
이전 댓글 표시
For example mapping, system variable into GENERIC in VHDL, and PARAM in Verilog?
댓글 수: 0
채택된 답변
Wang Chen
2014년 8월 25일
Hi Ethan,
GENERIC/PARAM is supported by HDL Coder when you use "Generate parameterized HDL code from masked subsystem" feature.
HDL Coder can generate one HDL file for multiple masked subsystems with different values for tunable mask parameters. The coder automatically detects atomic subsystems with tunable mask parameters that are shareable, and then generate GENERIC/PARAM for the parameters. Inside the subsystem, you can use the mask parameter only in the Constant and Gain block, and the data type of the multiple instances of the parameter must be the same.
Please see following documentations for details: http://www.mathworks.com/help/hdlcoder/ug/hdl-code-generation-pane-global-settings.html#bs2y2zq http://www.mathworks.com/help/hdlcoder/ug/generating-reusable-code-for-atomic-subsystems.html#bs6km_v-1
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 HDL Coder에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!