Error in converting function into fixed point using HDL Coder
1 次查看(过去 30 天)
显示 更早的评论
When converting my Simulink model to HDL code, I get the following error. Can you help me?
1 个评论
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
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
0 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!