Jump to content
Sign in to follow this  
rahuljn

serial interface modelling in TLM2

Recommended Posts

Hi Guys

Is it possible to model serial interfaces in TLM2 (e.g. interfaces defined in MIPI standard)

If yes, I will appreciate if you can also give me some idea about how to start the modeling of such interfaces

 

Thanks

Share this post


Link to post
Share on other sites

Is it possible to model serial interfaces in TLM2? Yes, certainly - UART, SPI, I2C, etc. Specifically on MIPI - I have no idea, maybe someone else can comment.

 

On how to go about modeling such interfaces - why not use TLM initiator/target socket itself?

Share this post


Link to post
Share on other sites

Hi Guys,

 

To model the 32 bit TLM2 interface to serial interface, what I am doing is the following

- I have one 32 bit target socket

- one 1 bit initiator socket

Then in b_transport implementation, I am calling b_transport of next block 32 times with 1 bit data each time.

Is it ok ?

 

Thanks

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  

×