Jump to content
SteveF

Interfacing a C program to a cycle accurate bam

Recommended Posts

I am looking at building a Bus Functional model for the purpose of verifying hardware targets.

If I want to simply run a C program to drive the simulation what is the best method to interface between the program and the BFM?

I was thing that this is a TLM application, however most of the info I have found about that seems to point at high level syste modelling.

Thanks for any insight.

 

Share this post


Link to post
Share on other sites

Question is too generic. If you have cycle-accurate pin-level model you need to interface with, you will have to write a transactor class that converts functional TLM interface to pin-level protocol. Usually it is implemented as SC_THREAD process sensitive to clock edge.

Share this post


Link to post
Share on other sites

OK Thanks,

I have been looking at some examples and trying to figure out how to code it. I guess the advantage of using the TLM Socket interface between to the C program and the Cycle accurate BFM is that it makes the BFM more generic then? 

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.


×
×
  • Create New...