PDA

View Full Version : Problem with reset operation



devangamoneesh
03-26-2009, 06:52 AM
Hi,

Mine is a basic interface protocol in SV with separate environments for the master and slave(both are single).

I've got problem with reset operation. For my protocol system reset, master reset and slave resets are there. System reset was working fine but,
1.The master was not capturing the slave reset when the slave asserts it.

2.After completion of reset operation master and slave has to start the new transfer but its not happening.

Ofcourse its a basic thing but am unable to debug it ... Can any one show the way to do it?

Thanks in advance...
Regards,
devangamoneesh.

akki
03-29-2009, 09:18 PM
Hi,

A piece of code the way you have written can help us in understanding your code better way. so do that if you can.

devangamoneesh
03-31-2009, 07:05 AM
Hi Akshay,

I have used separate reset parameters for master and slave. If the respective reset parameter was enabled then that agent should wait for few clocks and the other agent has to reset all fields.

But its not happening for all the times.

The master was unable to get the reset parameter of slave when it gets an acknowledgment.

Can u suggest a better way to do it.

Thanks in advance,
devangamoneesh.

akki
03-31-2009, 09:49 PM
Hi,
I still didn't get you but i think your main purpose is to reset master/slave when other slave/master parameter is enable.
have you written this code inside any phase of OVM?

You have written it is not working all the time. it means in some cases it is working. if it is so than there may be other issue than with code.

Better practice to reset both master and slave fields initially using start of simulation(may other phase if you want) phase.

If you have other dependency than i have to check the code.
Hope this may help you to some extent

devangamoneesh
04-03-2009, 06:25 AM
Hi Akshay,

Thanks a lot for your valuable suggestions.
Yes the error is for reset operation only.

I have debugged the error by using both parameters(master reset and slave reset) as active at the same time.

Now I am working on individual side ie, reset for one agent is active and for other agent is passive and vise versa.

Hope u can help if i got errors.

Thanks in advance,
devangamoneesh.