How to solve Algebric loop error without adding delay.

조회 수: 2(최근 30일)
ALi Falahati
ALi Falahati 2022년 8월 6일
댓글: ALi Falahati 2022년 8월 15일
Hi,
I'm designing a DSP system in simulink with the purpose of using fixed-point and HDL coder tool-boxes to convert it into FPGA synthesizable HDL afterwards. But one of the biggest issues I keep encountering is the Algebric loop error and I know the proposed solution is to break the loop with delays but that can break the implemenented algorithm in many cases.
For example if I want to use AXI4 protocol to communicate with a DDR memory using a state machine in a matlab function, Both sides of the transfer need to check both valid and ready (rd_dvalid, rd_dready) signals in the same cycle in order to know wheter they can do a valid transfer in that cycle or not. But this seems impossible because of the Algebric loop they create and hence, you need to add a delay in either valid or ready signal's path, meaning one is always one cycle behind the other.
If there is any way to workaround this issue feel free to mention it.
Thanks,
Ali

답변(1개)

Kiran Kintali
Kiran Kintali 2022년 8월 15일
HDL Coder supports various memory interfaces including AXI4 and DDR memory access.
It looks like you are using MATLAB Function Block to model some of these access patterns.
I wonder if this option (Use Nondirect Feedthrough in a MATLAB Function Block) in MALTAB Function would help your usecase
Can you reach out to support team on this issue?
  댓글 수: 1
ALi Falahati
ALi Falahati 2022년 8월 15일
Thanks, I will try this option out and see if it helps

댓글을 달려면 로그인하십시오.

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by