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