Jump to content
Sign in to follow this  
amitk3553

b_transport method call

Recommended Posts

What is the purpose of passing time in b_transport method call in below code?

 

trans.set_data_ptr(data_ptr_host_hci_drive);

sc_time to(SC_ZERO_TIME);

init_socket->b_transport(trans, to);

 

And what is the meaning of underlined portion in constructor line?

 

hci_ll_monitor(sc_module_name nm): sc_module(nm),

Share this post


Link to post
Share on other sites

1. The time delay in b_transport is used to allow temporal decoupling in the models, which speeds up simulation immensely. It is part of the loosely-timed modeling style concept described in IEEE-1666-2011.

2. The instance name parameter of a SystemC module constructor is identical in concept to the UVM factory create string argument. Both are used to maintain an object hierarchy name for use during debug.

 

For more information, I suggest you either take a class in SystemC or read a good book on the topic.

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...