A
a2zasics
Guest
Hi all,
I have been working on object oriented verification using
vera/systemc. One of my main problems is that there is no elegant way
to share expected behaviour of the device across objects. I have used
the following model - I build a shared class called the courier class,
and pass a reference of this to all classes that need it. The
generators post their generated data on the courier class. The
monitors check the expected behaviour from courier. Likewise if two
unrelated classes need to share information with each other, they use
this courier class to pass the information. My only limitation is that
no two objects must call each other(causing interlocking) except
through courier.
Has anyone implemented this model in the testbenches. If yes or no,
can you give me any references to a better approach in object
information sharing.
Thanks:
Shardendu
I have been working on object oriented verification using
vera/systemc. One of my main problems is that there is no elegant way
to share expected behaviour of the device across objects. I have used
the following model - I build a shared class called the courier class,
and pass a reference of this to all classes that need it. The
generators post their generated data on the courier class. The
monitors check the expected behaviour from courier. Likewise if two
unrelated classes need to share information with each other, they use
this courier class to pass the information. My only limitation is that
no two objects must call each other(causing interlocking) except
through courier.
Has anyone implemented this model in the testbenches. If yes or no,
can you give me any references to a better approach in object
information sharing.
Thanks:
Shardendu