Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

SV fork/join and "run()" type functions, and SystemC

This question is just as much about SystemC as SystemVerilog, and is not very code-specific, I apologize if it does not exactly fit here.

I am trying to port a SystemVerilog model of a memory controller to SystemC and am wondering what is the best way to translate "run()"-type functions (i.e. with forever loops that do continuous processing) spawned with fork and join to SystemC. These run() functions are typically called at the beginning of the simulation. My confusion is that SystemC does support spawning threads, fork and join, but I believe the language's intent is for SC_THREAD to provide this kind of functionality. Does anyone have enough experience with both languages to comment?

Thanks!
No RepliesBe the first to reply