Jump to content

sc_fifo representation in ipxact


rahulsetia

Recommended Posts

Hi,

You have to use transactional port because wire port can only be used to describe binary values or vectors of binary values. If you have some code like

sc_core::sc_fifo<int> fifo(10); 
writer w("writer");
reader r("reader");
w.out(fifo);
r.in(fifo);

Then typically output port "out" in component/module writer is:
sc_core::sc_fifo_out<int> out;
This output port is a transactional port.

Similarly for input port "in" in component/module reader:
sc_core::sc_fifo_in<int> in; 

The transTypeDef/typeName value should be sc_core::sc_fifo_out and sc_core::sc_fifo_in, respectively.
The serviceTypeDef/typeName value should be int in this example (in general the template type of the fifo).

Best regards,
Erwin

Link to comment
Share on other sites

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...