Error in converting function into fixed point using HDL Coder

조회 수: 1 (최근 30일)
serhat yusuf Oztaskin
serhat yusuf Oztaskin 2021년 3월 31일
답변: Kiran Kintali 2023년 4월 23일
When converting my Simulink model to HDL code, I get the following error. Can you help me?
  댓글 수: 1
Kiran Kintali
Kiran Kintali 2021년 3월 31일
Is the shipping example modified? Can you share your model? I do not see the error in the shipping example.
>> hdlcoder_led_blinking
>> hdlsaveparams(gcs)
%% Set Model 'hdlcoder_led_blinking' HDL parameters
hdlset_param('hdlcoder_led_blinking', 'HDLSubsystem', 'hdlcoder_led_blinking/led_counter');
hdlset_param('hdlcoder_led_blinking', 'OptimizationReport', 'on');
hdlset_param('hdlcoder_led_blinking', 'ResetType', 'Synchronous');
hdlset_param('hdlcoder_led_blinking', 'ResourceReport', 'on');
hdlset_param('hdlcoder_led_blinking', 'TargetDirectory', 'hdl_prj\hdlsrc');
hdlset_param('hdlcoder_led_blinking', 'Traceability', 'on');
>> makehdl(gcb)
### Generating HDL for 'hdlcoder_led_blinking/led_counter'.
### Using the config set for model hdlcoder_led_blinking for HDL code generation parameters.
### Running HDL checks on the model 'hdlcoder_led_blinking'.
### Begin compilation of the model 'hdlcoder_led_blinking'...
### Applying HDL optimizations on the model 'hdlcoder_led_blinking'...
### Begin model generation.
### Model generation complete.
### Begin VHDL Code Generation for 'hdlcoder_led_blinking'.
### Working on hdlcoder_led_blinking/led_counter as hdl_prj\hdlsrc\hdlcoder_led_blinking\led_counter.vhd.
### Generating package file hdl_prj\hdlsrc\hdlcoder_led_blinking\led_counter_pkg.vhd.
### Code Generation for 'hdlcoder_led_blinking' completed.
### Generating HTML files for code generation report at hdlcoder_led_blinking_codegen_rpt.html
### Creating HDL Code Generation Check Report led_counter_report.html
### HDL check for 'hdlcoder_led_blinking' complete with 0 errors, 0 warnings, and 0 messages.
### HDL code generation complete.
>>

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

답변 (1개)

Kiran Kintali
Kiran Kintali 2023년 4월 23일
Getting Started with Targeting Xilinx Zynq Platform
This example shows how to use the hardware-software co-design workflow to blink LEDs at various frequencies on the Xilinx® Zynq® ZC702 evaluation kit.
For further evaluation questions about HDL Coder you can check out

제품

Community Treasure Hunt

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

Start Hunting!

Translated by