ip core generation stuck at hdl code generation step
Ältere Kommentare anzeigen
i have to convert function to ip using hdl coder but while converting it stuck at HDL code generation
1.the ouput Q port has 12*12 matrix, so in HDL code genetaion i have enabled frame to sample conversion
still am facing issues but i opted Generic ASIC/FPGA it generated a .v (verilog) file
could please help me out where am going wrong or do i have enable any other things

Antworten (1)
Kiran Kintali
am 15 Mai 2023
0 Stimmen
Would you be able to share the MATLAB Code and the Project file?
Please reach out to tech support for help.
11 Kommentare
Prashanthi Pathipati
am 16 Mai 2023
Kiran Kintali
am 16 Mai 2023
Thanks. Please attach the testbench calling get6.m and a HDL Coder project file with code generaiton settings used in the screenshot.
Prashanthi Pathipati
am 22 Mai 2023
Kiran Kintali
am 22 Mai 2023
For additional guidance, please reach out to tech support with design.m, testbench.m and .prj file used that reproduces the issue.
Prashanthi Pathipati
am 25 Mai 2023
Kiran Kintali
am 25 Mai 2023
Bearbeitet: Kiran Kintali
am 25 Mai 2023
thank you for the submission.
can you remove these issues with get6.m?
The design (DUT/Chip) has inputs but they are unused. There are several other issues in the code that need to be resolved prior to HDL Code generation.
>> mlint get6
L 1 (C 49-57): Input argument might be unused. Consider replacing the argument with ~ instead.
L 1 (C 59-66): Input argument might be unused. Consider replacing the argument with ~ instead.
L 3 (C 1-7): The preallocated value assigned to variable might be unused.
L 4 (C 1-5): The preallocated value assigned to variable might be unused.
L 30 (C 1-6): The preallocated value assigned to variable might be unused.
L 31 (C 1-8): The preallocated value assigned to variable might be unused.
L 32 (C 1-4): The preallocated value assigned to variable might be unused.
L 35 (C 1): The preallocated value assigned to variable might be unused.
L 36 (C 1): The preallocated value assigned to variable might be unused.
L 37 (C 1-12): The preallocated value assigned to variable might be unused.
L 40 (C 1-14): The preallocated value assigned to variable might be unused.
L 41 (C 1-15): The preallocated value assigned to variable might be unused.
L 44 (C 1-11): The preallocated value assigned to variable might be unused.
L 47 (C 1-2): The preallocated value assigned to variable might be unused.
L 49 (C 1-5): The preallocated value assigned to variable might be unused.
L 50 (C 1): Value assigned to variable might be unused.
L 57 (C 1-9): The preallocated value assigned to variable might be unused.
L 58 (C 1-11): The preallocated value assigned to variable might be unused.
L 59 (C 1-3): The preallocated value assigned to variable might be unused.
L 60 (C 1-3): The preallocated value assigned to variable might be unused.
L 61 (C 1-3): The preallocated value assigned to variable might be unused.
L 64 (C 10): Add a semicolon after the statement to hide the output (in a function).
L 68 (C 1): The preallocated value assigned to variable might be unused.
L 70 (C 5-6): Value assigned to variable might be unused.
L 73 (C 5-10): The preallocated value assigned to variable might be unused.
L 74 (C 5-10): The preallocated value assigned to variable might be unused.
L 75 (C 5-11): The preallocated value assigned to variable might be unused.
L 77 (C 5-14): The preallocated value assigned to variable might be unused.
L 78 (C 5-15): Value assigned to variable might be unused.
L 89 (C 5-8): Value assigned to variable might be unused.
L 90 (C 5-19): The preallocated value assigned to variable might be unused.
L 91 (C 5-18): The preallocated value assigned to variable might be unused.
L 92 (C 5-18): The preallocated value assigned to variable might be unused.
L 94 (C 5-12): The preallocated value assigned to variable might be unused.
L 95 (C 5-10): The preallocated value assigned to variable might be unused.
L 96 (C 5-11): The preallocated value assigned to variable might be unused.
L 113 (C 11-12): Value assigned to variable might be unused.
L 117 (C 11-12): This keyword might not be aligned with its matching END on line 329.
L 118 (C 13-14): This keyword might not be aligned with its matching END on line 228.
L 123 (C 15-16): Value assigned to variable might be unused.
L 128 (C 15-16): This keyword might not be aligned with its matching END on line 227.
L 131 (C 17-24): The preallocated value assigned to variable might be unused.
L 178 (C 19-25): The preallocated value assigned to variable might be unused.
L 195 (C 18-19): This keyword might not be aligned with its matching END on line 222.
L 207 (C 19-25): The preallocated value assigned to variable might be unused.
L 208 (C 22): Loop index 'j' is changed inside of a FOR loop.
L 237 (C 28-35): The preallocated value assigned to variable might be unused.
L 280 (C 18-24): The preallocated value assigned to variable might be unused.
L 307 (C 21-27): The preallocated value assigned to variable might be unused.
L 308 (C 25): Loop index 'j' is changed inside of a FOR loop.
L 309 (C 23-24): This keyword might not be aligned with its matching END on line 320.
L 416 (C 9-10): Value assigned to variable might be unused.
L 418 (C 11-12): This keyword might not be aligned with its matching END on line 420.
L 419 (C 17-21): Value assigned to variable might be unused.
>>
Prashanthi Pathipati
am 30 Mai 2023
Kiran Kintali
am 30 Mai 2023
What version of MATLAB are you currently using? Can you provide the updated design file get6.m?
Prashanthi Pathipati
am 31 Mai 2023
Angela Cuadros Castiblanco
am 31 Mai 2023
Hello Prashanthi,
In general, matrix ports at the DUT interface are not supported in the IP core generation workflow unless Frame to Sample conversion is enabled. However, generating an IP core using frame to sample conversion is not supported for the MATLAB to HDL workflow as specified in the limitations listed in:
If you have access to Simulink, you can try generating an IP core from a Simulink model with a MATLAB function block, for an example see:
Alternatively, you can manually serialize the output of your design and map the scalar ports of the streaming output to AXI4-Stream interfaces and generate an IP core. For an example see:
mlhdlc_demo_setup('heq')
Hope that helps!
Prashanthi Pathipati
am 31 Jul. 2023
Bearbeitet: Prashanthi Pathipati
am 31 Jul. 2023
Kategorien
Mehr zu Speed and Area Optimization finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!