Clear Filters
Clear Filters

Rate Transition with a RAM Block

10 views (last 30 days)
Florian Rössing
Florian Rössing on 2 Jul 2024 at 6:37
Answered: Kiran Kintali on 2 Jul 2024 at 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?

Answers (1)

Kiran Kintali
Kiran Kintali on 2 Jul 2024 at 17:27
Can you please share your model? Thanks.

Categories

Find more on Code Generation in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!