Modify Pop Word to handle more than a Byte

Why OSVVM™? Forums OSVVM Modify Pop Word to handle more than a Byte

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2556
    Jeremy
    Member

    Hi Jim. Pop word has been a great asset for me while creating test cases. I recently ran into an issue while using it when my data width size was not a byte. I made local updates to fix this and was hoping you could incorporate this in one of the next updates.

    In my update I replaced 8 with Data’length and replaced 7 with the constant DataLeft.

    Procedure PopWord can be found in the file FifoFillPkg_slv.vhd.

    #2557
    Jim Lewis
    Member

    Hi Jeremy
    What are you trying to do? I think I am miss understanding something.

    The intent of PopWord is to pop a data’length sized word from a byte oriented FIFO and for the first word, adjust the number of bytes assembled in a coordinated fashion with the ByteAddress.

    The pop (procedure and function) that is part of the Scoreboard/FIFO API will pop an item from the FIFO that matches the size of the item when it was pushed.

    Best Regards,
    Jim

    #2558
    Jeremy
    Member

    Aah I see. Yes what I was doing was overkill. Thank you. The pop procedure is sufficient for what I need to do.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.