Hello everyone,
I am trying to update this subsystem (below) for HDL generation but I don't know how to replace the buffer. Someone can help me please ?
Thank you a lot

Antworten (1)

Kiran Kintali
Kiran Kintali am 23 Mär. 2021

0 Stimmen

Can you attach the model? Thanks

6 Kommentare

Catteau Ophélie
Catteau Ophélie am 23 Mär. 2021
of course
Kiran Kintali
Kiran Kintali am 23 Mär. 2021
what is FFTLength and other variables needed to compile the model?
Do you need Spectrum Viewer (the enabled subsystem) as a part of DUT generating VHDL/Verilog through HDL Coder? If not, you should put it outside the DUT before generating HDL from the subsystem.
Catteau Ophélie
Catteau Ophélie am 23 Mär. 2021
It is some variable introduce in my file to modulate.Yes, I need it as part of DUT
Kiran Kintali
Kiran Kintali am 23 Mär. 2021
I would like to know more about the requirements. HDL FFT block has bitreverse order support options. Have you considered using them?
Catteau Ophélie
Catteau Ophélie am 24 Mär. 2021
Bearbeitet: Catteau Ophélie am 24 Mär. 2021
yes, I have considered that but I didn't give me the right output if I use bitreverse option and I already use it
Bharath Venkataraman
Bharath Venkataraman am 26 Mär. 2021
You can use a bank of 8 RAM blocks and use an HDL counter block to create write addresses and another to create read addresses. You can write in serial order 0, 1, ..7, 8, ... and read in bit reversed order, or the other way around. Since you are processing 8 samples of data per cycle, you will need to write the 8 samples of data in a way that you are able to read the right 8 samples at a time on the read side. Rather than using the valid for an enabled subsystem, I suggest using it as a write enable input to the RAM blocks.
I am curious to know why you think the natural order output (uncheck the option Output in bit-reversed order) is not working correctly. There is logic in that block that implements the bit-reversal I mention above.
One other thing I want to mention is that it is not clear that your input is being generated and passed in correctly. You may want to generate all your input in MATLAB (as many samples as you want), then using the Signal From Workspace block to send it 8 samples at a time to the FFT HDL Optimized block.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Code Generation finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2019a

Gefragt:

am 23 Mär. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by