Complex to Magnitude-Angle HDL Optimized does not get converted to clock-rate

3 vues (au cours des 30 derniers jours)
The "Complex to Magnitude-Angle HDL Optimized"-Block I use in order to calculate the atan2 of my alpha and beta components that come from my clarke-transfrom stays at the data-rate. All the other blocks get converted to the clock-rate in the generated-model as intendet by using the option "clock-rate pipelining".
I tried the oversampling factor and defining the sample-rate and data-rate through rate-transitions, either way the result stays identical.
Is there something I'm missing or do I have to force the block to its final sample-time?
  1 commentaire
Kiran Kintali
Kiran Kintali le 24 Juil 2020
can you share a sample model with your clock rate pipelining requirements for additional guidance? Thanks

Connectez-vous pour commenter.

Réponse acceptée

Kiran Kintali
Kiran Kintali le 24 Juil 2020
Modifié(e) : Kiran Kintali le 24 Juil 2020
The "Complex to Magnitude-Angle HDL Optimized" simulates latency in the original model and does not participate in clock rate pipelining where the latency is modeled at the data rate in the original model and hence currently does not participate in clock rate pipelining.
Please consider using CORDIC atan2 block in the Math library in the interim. We will be expanding on the capabilities of CMA block in the near future to support additional features.
  10 commentaires
Manuel K
Manuel K le 28 Juil 2020
Thanks for the example, but I'm unable to open it since I have only R2020a installed.
Apart from this, my scenario has no oversampling factor defined (1) because it is a multi-rate system whith parts already assigned to the clock-rate.
Manuel K
Manuel K le 28 Juil 2020
I managed to get my system working now.
The problem was that on of my custom library blocks was set to "atomic subsystem" and gets used multiple times inside my model and even once inside a feedback-loop. When I use the "Trigonometric Function"-block for the atan2-calculation instead of the "Complex to Magnitude-Angle HDL Optimized"-block, I had to disable the "Treat as atomic unit"-option for this block inside the feedback-loop.
The validation model and generated model work as intended now.
Finally I will test the generated code on my hardware

Connectez-vous pour commenter.

Plus de réponses (0)

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by