Quantcast
Channel: Altera Forums
Viewing all articles
Browse latest Browse all 19390

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

$
0
0
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!

Viewing all articles
Browse latest Browse all 19390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>