Jump to content

Recommended Posts

Posted

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)

Posted

 

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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...