isael.diaz Posted January 17, 2020 Report Posted January 17, 2020 I am trying to understand what is the intention behind using sc_attribute, what advantage does it give. From what I can read from the LRM it is just a container that binds classes to sc_objects, but for what purpose? When should I use them and when should I avoid them, any good advise out there? Quote
David Black Posted January 17, 2020 Report Posted January 17, 2020 I believe the original intent was to be able attach "attributes" in the general sense to modules, channels, ports, processes and other "objects", which could be used for unforeseen or unaddressed needs in the future. For instance, if you wanted to add power information to certain modules (e.g. static leakage), and then add some type of processing to analyze power consumption either dynamically or later. This has been used internally at a few companies and I hope the feature will stick around. Although, the CCI (Control, Configuration & Inspection) WG (Working Group) of Accellera may argue their "configuration" solution may better address these ideas. [Personally, I have not seen the current CCI solution to work on all platforms yet (implementation needs more work) and the documentation needs more work. I think there are some issues with the version of SystemC and C++ compiler features.] You download/install/test CCI from https://accellera.org/downloads/standards/systemc . isael.diaz 1 Quote
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.