I would like to generate HDL code for a model, which operates on sample times that are not integer multiples of each other. A rate transition block is inserted between two blocks that are operating at different sample times. For HDL code generation, it is stated on the documentation that the option 'Ensure deterministic data transfer' has to be checked when using rate transition blocks. When I generate HDL code for my model, I receive the following error:
Illegal rate transition found between 'MyModel/block1' and 'MyModel/block2'. Sample time 4.768717215069147e-07 of 'MyModel/block1' and sample time 6.253908692933084e-08 of 'MyModel/block2' must be integer multiples, but are currently not. You can resolve this by using a rate transition block whose parameter 'Ensure deterministic data transfer' is unchecked.
Best Answer