sc_new_del Posted August 12, 2020 Report Posted August 12, 2020 May I ask for a reference on how to convert tlm interface to pin interface? For example, sc_fifo_in_if<T> convert sc_out<T> #include <systemc.h> class fifo_in_tlm2pin : public sc_module { public : sc_port< sc_fifo_in_if<T> > fifo_in; sc_out<T> fifo_out; SC_HAS_PROCESS(fifo_in_tlm2pin); fifo_in_tlm2pin( sc_module_name _name ) : sc_module (_name) { } }; Quote
Eyck Posted August 12, 2020 Report Posted August 12, 2020 Well, sc_fifo is not TLM. For your example the basic question is: what is the protocol on fifo_out? Should it be clock-based? Valid-Ready signaling? So your queastion and example is too generic and broad. If you are looking for an example to translate from TLM2.0 to pin level of an Amba AHB protocol you may have a look here: https://git.minres.com/SystemC/SystemC-Components/src/branch/master/incl/tlm/ahb/bfm and https://git.minres.com/SystemC/SystemC-Components/src/branch/master/src/tlm_ahb_bfm_initiator.cpp as well as https://git.minres.com/SystemC/SystemC-Components/src/branch/master/src/tlm_ahb_bfm_target.cpp. They implement TLM2.0 to pin and pin to TLM2.0 winniezhou 1 Quote
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.