Jump to content

How to list all sockets, ports in a SystemC platform


Recommended Posts

Hello All

I am trying to list out all the ports, sockets in a given SystemC platform. For that I am traversing the hierarchy using sc_get_top_level_object/get_child_object and able to list out all the ports and sockets.

But for TLM 2 sockets I get two entries there for example

        -  top_inst.init_inst.initiator_socket
         - top_inst.init_inst.initiator_socket_export_0

and
         - top_inst.memory_inst.target_socket
         - top_inst.memory_inst.target_socket_port_0

It is obvious because each TLM2 socket internally have one port and one sc_export.

Is there a way that I get only those sockets which are visible in SystemC model header file for example I want to have only the following

        -  top_inst.init_inst.initiator_socket
         - top_inst.memory_inst.target_socket

 Thanks

Khushi

 

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