rahulsetia Posted September 19, 2022 Report Share Posted September 19, 2022 How do we represent sc_fifo using ipxact ? It can be both a wire port or a transactional port but it seems impossible to conclude if it belongs to either of these. Quote Link to comment Share on other sites More sharing options...
kock Posted September 19, 2022 Report Share Posted September 19, 2022 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 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.