Error in converting function into fixed point using HDL Coder

1 view (last 30 days)
When converting my Simulink model to HDL code, I get the following error. Can you help me?
  1 Comment
Kiran Kintali
Kiran Kintali on 31 Mar 2021
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.
>>

Sign in to comment.

Answers (1)

Kiran Kintali
Kiran Kintali on 23 Apr 2023
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

Products

Community Treasure Hunt

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

Start Hunting!