Quantcast
Channel: SystemC Language Forum RSS Feed
Viewing all articles
Browse latest Browse all 595

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

$
0
0

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)


Viewing all articles
Browse latest Browse all 595

Trending Articles