Can't generate Simulink model from Simulink function block
Mostra commenti meno recenti
I was using HDL code generation , for making a generated model for my Simulink model containing a Matlab function block, but in the generated model , there is the same function block , is there a way it can be converted to a Simulink block version?.
Risposta accettata
Più risposte (1)
Kiran Kintali
il 29 Giu 2023
0 voti
You can convert a subset of MATLAB code into Simulink blocks in the generated model when in DataPath optimization mode.
Why Use MATLAB Datapath Architecture?
HDL code generation for a MATLAB Function block supports two HDL architectures: MATLAB Function and MATLAB Datapath. Specify the HDL Architecture in the HDL Block Properties dialog box of the MATLAB Function block.
Use the MATLAB Datapath architecture to:
- Model complex fixed-point and floating-point MATLAB algorithms inside MATLAB Function blocks and interface this algorithm with other Simulink blocks in your model.
- Improve area and timing of your design significantly by optimizing the algorithm inside the MATLAB Function block and across the MATLAB Function block boundary with other Simulink blocks in your model.
The MATLAB Datapath architecture is the default setting for MATLAB Function blocks with floating-point types. By enabling this architecture for fixed-point operations, you can use various optimizations that include:
- Hierarchy flattening
- Resource sharing and streaming
- Clock-rate pipelining
- Adaptive pipelining
- Distributed pipelining
- Critical path estimation
Categorie
Scopri di più su Speed Optimization in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
