Monitor to sample response in master agent

, ,

Hi,
I am developing OCP verification environment. I have a master agent contains sequencer,driver and monitor.
As of now master driver does both driving and sampling response from slave RTL. Can anyone please tell me if this the correct implementation or driver have to drive only request and response to be sampled by monitor.

Hi,

The response shall be sampled by the driver as well. Only the driver shall have the communication with the sequencer (and sequence), where the request comes and the response are returned, through
Non-pipelined protocols → seq_item_port.item_done(rsp)
Pipelined-protocol → seq_item_port.put(rsp).
Driver/Sequence API | Verification Academy has the detail description about this.

Monitor is just to monitor the transactions on the interface, assembles the sequence_item and writes them to the analysis port. Sequence should not get the information from the monitor.

-Baser

Sorry. Yes, your approach is correct! Where the sending request and sampling response are implemented under the driver.

-Baser

Okay…thanks Basheer55.