buffer block inside enabled subsystem

2 次查看(过去 30 天)
I have created model for finding 512 point FFT in simulink,FFT is processing 16 samples at a time(16*1),within that model i have used enabled subsystem and within that enabled system buffer block is used to buffer 512 samples but while doing HDL code generation it is showing an error "Simulink Block Warnings/Errors fft512V16/mainsystem/Enabled Synchronous Subsystem/Deserializer1D Error: Illegal block in enabled subsystem. fft512V16/mainsystem/Enabled Synchronous Subsystem/Enable Error: All ports of an enabled/triggered subsystem must have the same sample rate for HDL code generation. " I have attached a snapshot of my model,plz try to fix asap.

回答(2 个)

Tim McBrayer
Tim McBrayer 2018-4-9
As the error message states, all ports of an enabled subsystem must be the same rate, for HDL code generation. From your image I can see that the inputs are at a rate displayed in red (the fast rate), while the outputs are displayed in green (a slower rate).
The message also states that you have a Deserializer in the enabled subsystem. Since the Deserializer is inherently multi-rate, this might be causing the issue.

Bharath Venkataraman
What is the purpose of using the buffer block in an enabled subsystem? You cannot really have 512 samples coming out of an FPGA (there aren't enough pins). What you likely want to do is to send out 16 samples at a time (if you can) and then collect them outside the FPGA.

标签

Community Treasure Hunt

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

Start Hunting!

Translated by