Jump to content
Sign in to follow this  
mohitnegi

modeling with register

Recommended Posts

What kind of model?

I'd probably just download a VHDL or Verilog model from Opencores...

 

Alan

Hi Alan,

 

i wish to do modellng of an IP in systemC and TLM but i am not sure whether  should model

the register map(a dedicated code for all the register used in IP) also ....

IF yes then how would the register map be modelled in systemC and TLM keeping in mind

some of them are read only/ write only , R/w or one shot ....

 

Thanks

Mohit Negi

Share this post


Link to post
Share on other sites

Hi Mohit,

  there's no standardisation of that (unlike UVM where there's the Register Layer).

 

For your first question, it depends what the model is for. If you need to share it with software developers, it would make sense to include a memory map and registers, as that is what the software developer expects to see. If the model is completely functional / algorithmic, then you don't need a memory map.

 

Regarding modeling registers, it's the kind of thing that's available in proprietary tools, but I can't think of a non-proprietary modelling solution - perhaps someone else can propose something?

 

In TLM2, all data is transferred as an array of char, so if you want to treat it as accessing particular registers or fields, you'd have to model that yourself. I'll have a quick search on the internet, I'm sure other people must have done things like that,

 

regards

Alan

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  

×