Jump to content
Sign in to follow this  
mohitnegi

Looking for solution

Recommended Posts

Hello ,

 

well i am working on a systemC model of an serial protocol IP ...

My problem is : in this model i have to wait for some particular reg to be set ...then

start the control logic ...then update a few status reg ....

My problem is how to handle this registers in the above scenerio....

 

Could any one suggest me a sol for the above ....i have also heard about GREENSoC

which has GREENREG which could solve this  ???

Anyone tried GREENReG before or could help me used it ???

 

Share this post


Link to post
Share on other sites

Hello ,

 

well i am working on a systemC model of an serial protocol IP ...

My problem is : in this model i have to wait for some particular reg to be set ...then

start the control logic ...then update a few status reg ....

My problem is how to handle this registers in the above scenerio....

 

Could any one suggest me a sol for the above ....i have also heard about GREENSoC

which has GREENREG which could solve this  ???

Anyone tried GREENReG before or could help me used it ???

Hello Sir,

Request that some details be provided. As it is IP, maybe

details cannot be disclosed, but then it is impossible to

provide any appropriate solution. Also, when the current

system is proving so difficult to tackle, why complicate

things even more by introducing something that one has

no good working knowledge of ?

working knowledge of ?

Share this post


Link to post
Share on other sites

Well Mohit,

 

I don't think its been so difficult to handle,

 

I have used events for the similar case and it does well.

 

What's the problem in using events?

 

Lets have a scenario:

 

1. any write on config reg (lets say) will enable the control for statemachine:

 

     Now create an event sensitive control fsm , the event which is fired from config reg API.

 

2. When the protocol does some work , lets say FIFO's full - empty in between the communication, so generate an event to which the so called interrupt API is sensitive to.

 

I think, events could solve your problem well, just create various API's (processes or functions) and play with them on events.

 

Think of real world scenarios, hardware parallelism is done by SYSTEMC CO-OPERATIVE MULTITASKING scheme for you , its the compilers task to arrange parallelism for various events.

 

Good Luck !!! 

 

Rgs,

KS ;)

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  

×