Forum Discussion

Mads_From_Denmark's avatar
Mads_From_Denmark
Icon for New Contributor rankNew Contributor
4 days ago

AI Suite - Is it possible to simulate the AI IP?

Hello Altera Community

I have a spatial IP setup, where the dla compile gave me a single test and the corresponding output. I want to try and simulate this test in modelsim/questa, however some of the files are protected. ChatGPT have made me believe that it is possible to simulate it, as long as you do it through Quartus.

I made a quartus project to test this, enabling the settings that generate simulation files. Now then I do tool -> run RTL simulation it succesfully starts questa, however questa gives the errors listed below.

Before I spend anymore time on this, I want to ask if it is actually possible to simulate an AI IP? This is my first time working with other peoples IP, so I don't have the ability to tell when ChatGPT is telling me something wrong.

C:/Users/mads/Desktop/test/quartus/ip/spatial/spatial_spatial_ai_ip_1/altera_spatial_ai_ip_10/sim/top_level.sv(232): Module 'dot_bf16' is not defined.

# For instance 'inst_2' at path 'spatial_tb.u_spatial_first.u0.spatial_ai_ip_1.spatial_ai_ip_1.top_inst.spatial_ip'

# ** Error: C:/Users/mads/Desktop/test/quartus/ip/spatial/spatial_spatial_ai_ip_1/altera_spatial_ai_ip_10/sim/top_level.sv(200): Module 'relu' is not defined.

# For instance 'inst_4' at path 'spatial_tb.u_spatial_first.u0.spatial_ai_ip_1.spatial_ai_ip_1.top_inst.spatial_ip'

# ** Error: C:/Users/mads/Desktop/test/quartus/ip/spatial/spatial_spatial_ai_ip_1/altera_spatial_ai_ip_10/sim/top_level.sv(181): Module 'dot_bf16' is not defined.

# For instance 'inst_1' at path 'spatial_tb.u_spatial_first.u0.spatial_ai_ip_1.spatial_ai_ip_1.top_inst.spatial_ip'

1 Reply

  • JohnT_Altera's avatar
    JohnT_Altera
    Icon for Regular Contributor rankRegular Contributor

    It might be possible if you are able to create the simulation model. 

    Any IP can be simulated as long you know how it is function and the result you are looking for.