This is a pretty generic question.I am trying to create a reference memory model in my test environment. The model is expected to be updated as follows.Every time I see a “write” event to the memory, a monitor captures that as a packet and sends it to the scoreboard. The scoreboard then processes it and updates the appropriate memory location. The problem is, this model will be generic and is expected to be used by multiple checkers in the design. My current intended hierarchy is as follows,
top
|______ monitor
|______ memory model
|______ scoreboard
|______ checker
I want the scoreboard to be able to update the model and the checkers to be able to read from it.
The updates can be done using analysis port, export. Can some one tell me which SV construct can be used to “access” the memory model?
That is a very interesting approach.
Do you mean connect your environment to the memory model via an interface?
Could you elaborate a bit more on that?
That is a very interesting approach.
Do you mean connect your environment to the memory model via an interface?
Could you elaborate a bit more on that?
Notice the static variables in class C.
You can put the memory there, as an option. That memory can be accessed by any entity that declared it. That is one option.
In that paper, I used an interface where an assertion modified a variable within the static class.
Another option is to declare the variables (e.g., memory) in the interface and have it connected it to the various class instances.