Jump to content

How can I derive a SystemC class from another SystemC class?


ysap

Recommended Posts

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)

Link to post
Share on other sites

 

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.

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...