필터 지우기
필터 지우기

Getting error in HDL Optimized RS Encoder for ufix4 data type

조회 수: 34 (최근 30일)
Hassaan Saeed
Hassaan Saeed 2021년 10월 15일
댓글: Hassaan Saeed 2021년 10월 22일
I am working with an example program using HDL optimized RS encoder/decoder. You can find the example here
It is working fine for N = 255, K = 239 and HDL files are being generated perfectly.
Then I tried N = 15, K = 9 by adjusting the paramters and encoder/decoder polynomial [1 0 0 1 1] according to that, I get correct simulations result and HDL file is also generated.
But when i put N=11, K=9 for the same polynomial, the simulation works fine and it gives thecorrect result but while generating the HDL file, I get this error
In case you need to adjust the model according to my paramters, I am attaching screenshots by which you make the alterations.
  댓글 수: 3
Hassaan Saeed
Hassaan Saeed 2021년 10월 15일
Yeah I also tried fixdt (0,4,0), the results are same. I also checked the model for N = 13, K = 9, it is working with this configuration but not with N = 11. I'll attach the snapshot of input and output in a while
Hassaan Saeed
Hassaan Saeed 2021년 10월 15일
Please take a look into these snapshots. Thank you.

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

채택된 답변

Mounika Sheela
Mounika Sheela 2021년 10월 18일
Hi Hassaan,
This is a known issue for the Integer-Input RS Encoder HDL Optimized block from Comms Toolbox. The block doesn't support HDL code generation for RS Codes with parity length 2 (N=11 and K=9). This issue is fixed in RS Encoder block from WHDL Toolbox, you can use this one for your work.
  댓글 수: 1
Hassaan Saeed
Hassaan Saeed 2021년 10월 22일
Thanks for the reply. I tried RS Encoder block from WHDL Toolbox, generated the HDL code and then integrated with an IP node. It is working perfectly.
Then I tried the same for RD Decoder from WHDL Toolbox for N = 11 and K = 9. For No. of messages > 1, it is not returning any valid data at all. It works fine for No. of messages == 1.
You can find the example that I am using from here.
P.S.
Working for (N = 255 and K = 239), (N = 31 and K = 27)
Not working for (N = 11 and K = 9), (N = 31 and K = 25) and for all combination of u4 data type as far as i checked.

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

추가 답변 (0개)

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by