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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×