Jump to content

risc_cpu example in systemc package

Recommended Posts


I am looking into the risc_cpu example in systemc package and I am not able to understand the following(at line 321)

exec   IEU("EXEC_BLOCK");  
IEU << reset << decode_valid << alu_op << negate << add1 << shift_sel  << src_A << src_B << forward_A << forward_B << alu_src << c << v << z  << dout << out_valid << destout << clk;

It seems it is related to binding. If yes ,can you tell me where the << is overloaded to have the bindings.






Link to comment
Share on other sites

This example still uses the positional binding feature of SystemC, which is deprecated as per IEEE Std. 1666 (see Annex C (h), emphasis mine):


This annex contains a list of deprecated features. A deprecated feature is a feature that was present in version 2.0.1 of the OSCI open source proof-of-concept SystemC implementation but is not part of this standard. Deprecated features may or may not remain in the Accellera Systems Initiative implementation in
the future. The user is strongly discouraged from using deprecated features because an implementation is not obliged to support such features. An implementation may issue a warning on the first occurrence of each deprecated feature but is not obliged to do so.


h) operator, and operator<< of class sc_module for positional port binding (use operator() instead)


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...