PipelineC icon indicating copy to clipboard operation
PipelineC copied to clipboard

Build in compiled C based simulation

Open JulianKemmerer opened this issue 1 year ago • 1 comments

Currently each user/architecture is pretty easily able to put together a custom C "simulation" based on how their design works/is structured. They compile select parts of PipelineC designs typically with some C++ to help structure/drive the main parts of the code. Makes for verifying high level functionality of components very easy - its just simple C functions.

The dream is if instead somehow the entire PipelineC code could be compiled - multiple main functions, multiple clock domains - the whole design without any changes... probably needs good deal of glue/helper C++ idk...

:rainbow:

JulianKemmerer avatar Aug 24 '22 18:08 JulianKemmerer

Another solution for fast simulation, if the behavior differs a bit from C, is to genrrate C after parsing C. So, in the case of unrolled loops, you can generate the unrolled code

suarezvictor avatar Aug 25 '22 23:08 suarezvictor