ysap Posted May 10, 2016 Report Share Posted May 10, 2016 Is it possible to define a SC class as a derivative of another SC class? For example, a simple D-Flipflop (latch) implementation will have d and clk inputs and a q output. I want to define an Enabled-Latch on top of that class adding the en input and changing the sampling method accordingly. Is this possible? (For reference, question also posted in http://stackoverflow.com/q/37127066/274579but no replies yet) Quote Link to comment Share on other sites More sharing options...
deeku Posted May 12, 2016 Report Share Posted May 12, 2016 Yes, it is possible Quote Link to comment Share on other sites More sharing options...
dakupoto Posted May 14, 2016 Report Share Posted May 14, 2016 Is it possible to define a SC class as a derivative of another SC class? For example, a simple D-Flipflop (latch) implementation will have d and clk inputs and a q output. I want to define an Enabled-Latch on top of that class adding the en input and changing the sampling method accordingly. Is this possible? (For reference, question also posted in http://stackoverflow.com/q/37127066/274579but no replies yet) Absolutely. Please note that SystemC is just a C++ library, so that whatever you can do with the parent language, will also work here. 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.