Khushi Posted September 6, 2018 Report Share Posted September 6, 2018 Hi 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. Thanks Khushi Quote Link to comment Share on other sites More sharing options...
Khushi Posted September 6, 2018 Author Report Share Posted September 6, 2018 Hi I found it is overloaded in sc_module class. Sorry for the inconvenience Thanks Quote Link to comment Share on other sites More sharing options...
Philipp A Hartmann Posted September 7, 2018 Report Share Posted September 7, 2018 This example still uses the positional binding feature of SystemC, which is deprecated as per IEEE Std. 1666 (see Annex C (h), emphasis mine): Quote 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) hth, Philipp Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.