Azzera filtri
Azzera filtri

Rate Transition with a RAM Block

10 visualizzazioni (ultimi 30 giorni)
Florian Rössing
Florian Rössing il 2 Lug 2024 alle 6:37
Risposto: Kiran Kintali il 2 Lug 2024 alle 17:27
Dear Community,
I am currently struggling to build an HDL System, that uses a Dual Rate Dual Port RAM Block. I have an Input logic that derives its sample time from an ADC Model, that is connected to the input of my digital logic. Now I want my output logic to run at a quarter of that, to allow 1 to 4 rate reduction. I wanted to use a FIFO that specifies an input to output rate transition, to pass the data availability and force the rate transition through that.
I have attached a picture. The magenta highlighted input is the only one that comes with a sample rate, which is inherited from the outside. All other ports in purple are connected to inherited sample times. The red region should derive its sample tiem from the magenta input, which works just fine. The blue region should have four times the sample rate. The only explicit rate transition is in hte fifo in the bottom center.
For simulative purposes I need the sample time to be derived from the outside, so I can simulate the influence of different ADC sample rates. Explicitly setting the time anywhere is of the table. How can I enforce the desired behavior?

Risposte (1)

Kiran Kintali
Kiran Kintali il 2 Lug 2024 alle 17:27
Can you please share your model? Thanks.

Categorie

Scopri di più su Code Generation in Help Center e File Exchange

Prodotti


Release

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by