How do I generate HDL Code for my model that has frame based communication in Simulink HDL Coder 2.1 (R2011a)?

조회 수: 3 (최근 30일)
I have a model that simulates a communication system. This model has some frame based communication. How can I generate HDL code for this model?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2022년 4월 6일
편집: MathWorks Support Team 2022년 5월 24일
There is a subset of blocks that support HDL code generation in frame mode. This is equivalent to processing multiple samples per clock in the FPGA. You can see the subset of blocks included at the following link:
Other than these blocks, there is no direct HDL code generation support for frame-based models since they execute multiple FPGA time steps in one Simulink time step. However, HDL code generation support is provided for the same blocks if the inputs are samples. You can thus convert the frame based communication to sample based communication in one of two ways:
a) At the border of your FPGA design, use the Frame Conversion block and convert the frames to samples.
b) Set your source to emit samples with frame size set to 1.
FPGA-in-the-loop does support frame inputs, so step (b) may work better. For HDL code generation, you can set frame size to 1, and when you move to FIL, you can set it to an appropriate frame size value.
  댓글 수: 1
Bharath Venkataraman
Bharath Venkataraman 2018년 1월 22일
편집: MathWorks Support Team 2022년 6월 8일
There is a subset of blocks that support HDL code generation in frame mode. This is equivalent to processing multiple samples per clock in the FPGA.

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

추가 답변 (1개)

Bharath Venkataraman
Bharath Venkataraman 2022년 6월 9일
I have one clarification on your question. When you say "frame based communication" - are you referring to processing multiple samples per clock processing, or are you referring to a frame structure.
The earlier answer talks about processing multiple samples per clock.
If you are talking about frames of data (ina communications sense). there ae several examples that show how to model this kind of processing using scalar data and control signals. Here are some links to those examples:

카테고리

Help CenterFile Exchange에서 Code Generation에 대해 자세히 알아보기

제품


릴리스

R2011a

Community Treasure Hunt

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

Start Hunting!

Translated by