Jump to content

uvm_reg over PCIe

Recommended Posts

I'm trying to figure out how to get uvm_reg to do register reads over a bus like PCIe, where the read command is decoupled from the read data.  In other words, one transaction on the bus is sending the read command to the DUT (a mem_read TLP, in the PCIe example), and then some indeterminate time later, the response to that read comes as another transaction from the DUT back to the testbench (a completion TLP in PCIe).  uvm_reg seems to assume the simple case where a sequence can call start_item, finish_item, and then the read data has been placed in the original transaction by the driver.  In our agent, the driver is not involved with completions from the DUT at all, the monitor is.

Link to comment
Share on other sites

  • 2 weeks later...

To krupan,


   The register layer is seperated by the uvm_reg_adapter. The transaction layer transmits the information of data, and the signal layer (adapter to the real bus) processes the bus operation.

      I guess the problem of you is sloving the out of order scenario, maybe the first read operation will get feedback after the third read operation feedback, and the register layer can't handle this out of order scenario. So, my suggestion is that don't let the register layer see the scenario, processing the out of order scenario in the signal layer.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...