- If you are okay with this block’s functionality being absent for the purpose of generating HDL code, you can "comment out" this block. Locate the block inside the subsystem and comment it out by right clicking on the block and selecting ‘Comment Out’ from the menu.
- You can look for an alternative approach or block that is supported for HDL generation and replace this block with the new block(s).
facing a error while implementing the HDL?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
For the block 'untitled/controller/Discrete fractional Transfer Fcn4/Discrete Zero-Pole' Block 'untitled/controller/Discrete fractional Transfer Fcn4/Discrete Zero-Pole' is not supported for HDL code generation. To continue with code generation, comment out this block.
Error using slhdlcoder.HDLCoder/reporterrors
Block 'untitled/controller/Discrete fractional Transfer Fcn4/Discrete Zero-Pole' is not supported for HDL code generation.
To continue with code generation, comment out this block.
0 Commenti
Risposte (1)
T.Nikhil kumar
il 15 Apr 2024
Hello aijaz,
I get that you are trying to generate HDL code from your Simulink model and are facing an error with one of the blocks.
When you're working with Simulink models for HDL code generation, it's crucial to use blocks that are compatible with HDL code generation. Not all Simulink blocks are supported for this process, and the 'Discrete Zero-Pole' block is one of those that aren't supported. The error message clearly states that the 'Discrete Zero-Pole' block within the 'Discrete fractional Transfer Fcn4' subsystem is not supported for HDL code generation.
You can try to resolve this error with the following methods:
Make sure you validate the model to ensure it still behaves as expected after replacing or commenting out the ‘Discrete Zero-Pole’ block.
Refer to the below mentioned documentation to learn about the blocks supported for HDL code generation - https://www.mathworks.com/help/comm/ug/find-blocks-and-system-objects-supporting-hdl-code-generation.html
Hope this answers your query!
Vedere anche
Categorie
Scopri di più su Model Design and Compatibility Guidelines in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!