How to generate HDL code for subsystem containing rate transition block?

1 visualización (últimos 30 días)
Hi, I have two subsystems which are running at two different sample time. I have one parent subsystem which contains these tow sunsystem. One subsystem is running at 1e-5 and other at 1e-7. Output from 1e-5 is the input of 1e-7 block. I have inserted rate transition block between two subsystems.. The simulation is working fine. but when I try to generate HDL code for main subsystem, I get the following error
'Illegal block for single rate resource sharing and/or streaming. Consider setting 'Maxoversampling' to a non unity factor'..
I have already set the oversampling factor and max oversampling to 6..but the problem is still there...
I have tried to use 'Automatic handle rate transition option'...With this option enabled, HDL code is generated but the result of cosimulation block and DUT; they don't match at all....
It is mentioned in Matlab help that it is quite possible that if 'automatic handle rate transition option ' is enabled, data integrity may be lost...I think this is the reason that why am i not getting totally different output from cosimualtion block..
Can anyone help me how to overcome this problem (How to generate HDL code with the rate transition block inside the main subsystem)??

Respuestas (0)

Categorías

Más información sobre Code Generation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by