# Difference between put\_port and get\_port?

**URL:** <https://verificationacademy.com/forums/t/difference-between-put-port-and-get-port/31321>\
**Category:** UVM\
**Tags:** UVM, put\_port\
**Created:** [December 16, 2015, 9:48am UTC](https://verificationacademy.com/forums/t/difference-between-put-port-and-get-port/31321 "2015-12-16T09:48:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashutosh1122](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/bb73d2/32.png) [@ashutosh1122](https://verificationacademy.com/forums/u/ashutosh1122)\
**Post date:** [December 16, 2015, 9:48am UTC](https://verificationacademy.com/forums/t/difference-between-put-port-and-get-port/31321/1 "2015-12-16T09:48:10Z")

</div>

Can anyone please help me in understanding exact difference between put\_port and get\_port from usage and definition point of view.  
Thanks

---

<div class="post-metadata">

**Author:** ![kapil\_24](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/k/aeb1de/32.png) [@kapil\_24](https://verificationacademy.com/forums/u/kapil_24)\
**Post date:** [December 16, 2015, 10:18am UTC](https://verificationacademy.com/forums/t/difference-between-put-port-and-get-port/31321/2 "2015-12-16T10:18:50Z")

</div>

_In reply to [ashutosh1122](https://verificationacademy.com/forums/t/difference-between-put-port-and-get-port/31321):_

In UVM, PORT is always an initiator of a request. It has a symbol of Square.  
Export is always a provider of that request.  
So put\_port() method is used to send data/transaction to a consumer which has corresponding export.  
Similarly, get\_port() method is used to fetch some data/transaction from the consumer which has the corresponding Export (symbolizes with circle).  
For more details and expample you can refer section 2.3.1.3 of UVM Verification Methodology 1.2 User’s Guide’2015.  
Hope it will help you.

---

<div class="post-metadata">

**Author:** ![sa5691](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/7feea3/32.png) [@sa5691](https://verificationacademy.com/forums/u/sa5691)\
**Post date:** [December 16, 2015, 10:35am UTC](https://verificationacademy.com/forums/t/difference-between-put-port-and-get-port/31321/3 "2015-12-16T10:35:10Z")

</div>

_In reply to [kapil\_kumar@mentor.com](https://verificationacademy.com/forums/t/difference-between-put-port-and-get-port/31321/2):_

“Absolutely helpful”!!

---

<div class="post-metadata">

**Author:** ![ashutosh1122](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/bb73d2/32.png) [@ashutosh1122](https://verificationacademy.com/forums/u/ashutosh1122)\
**Post date:** [December 16, 2015, 12:15pm UTC](https://verificationacademy.com/forums/t/difference-between-put-port-and-get-port/31321/4 "2015-12-16T12:15:02Z")

</div>

okies…so is it like we will be having separate physical connections for put\_port and get\_port?  
producer | consumer  
uvm\_put\_port #(t) put\_port; | uvm\_put\_export #(t,consumer) put\_export;  
uvm\_get\_export #(t) get\_export uvm\_get\_port #(t) get\_port;  
|  
|  
|

---

<div class="post-metadata">

**Author:** ![kapil\_24](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/k/aeb1de/32.png) [@kapil\_24](https://verificationacademy.com/forums/u/kapil_24)\
**Post date:** [December 16, 2015, 1:22pm UTC](https://verificationacademy.com/forums/t/difference-between-put-port-and-get-port/31321/5 "2015-12-16T13:22:26Z")

</div>

_In reply to [ashutosh1122](https://verificationacademy.com/forums/t/difference-between-put-port-and-get-port/31321/4):_

Yes We need separate connections for Port to Export.

---

<div class="post-metadata">

**Author:** ![ashutosh1122](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/bb73d2/32.png) [@ashutosh1122](https://verificationacademy.com/forums/u/ashutosh1122)\
**Post date:** [December 17, 2015, 5:15am UTC](https://verificationacademy.com/forums/t/difference-between-put-port-and-get-port/31321/6 "2015-12-17T05:15:00Z")

</div>

Thanks a lot :)

---

<div class="post-metadata">

**Author:** ![trushali](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/t/b782af/32.png) [@trushali](https://verificationacademy.com/forums/u/trushali)\
**Post date:** [June 24, 2026, 10:10am UTC](https://verificationacademy.com/forums/t/difference-between-put-port-and-get-port/31321/7 "2026-06-24T10:10:02Z")

</div>

I understand that `put_port()` is used to send a transaction to a provider and `get_port()` is used to retrieve a transaction from a provider. However, I’m still trying to understand the practical usage of each.

Could you please explain:

- In what situations would we choose a **put\_port** over a **get\_port**?

- Can you provide some real-world UVM/testbench examples where a component sends data using `put()` versus fetches data using `get()`?

- From a design perspective, how do we decide whether the producer should push the data (`put`) or the consumer should pull the data (`get`)?

- Also, someone can explain for peek.

I’m looking for the intuition behind when each mechanism is preferred.

---

<div class="post-metadata">

**Author:** ![chr\_sue](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/chr_sue/32/1199_2.png) [@chr\_sue](https://verificationacademy.com/forums/u/chr_sue)\
**Post date:** [June 25, 2026, 3:57pm UTC](https://verificationacademy.com/forums/t/difference-between-put-port-and-get-port/31321/8 "2026-06-25T15:57:54Z")

</div>

I’d recommend to read the UVM Cookbook or attend a UVM training course.

---

<div class="post-metadata">

**Author:** ![trushali](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/t/b782af/32.png) [@trushali](https://verificationacademy.com/forums/u/trushali)\
**Post date:** [June 30, 2026, 5:05am UTC](https://verificationacademy.com/forums/t/difference-between-put-port-and-get-port/31321/9 "2026-06-30T05:05:23Z")

</div>

Thank you for the suggestion. I looked through the UVM Cookbook, but I couldn’t find much theoretical explanation about when to use put(), get(), and peek() from a design or practical perspective.

I’m specifically trying to understand the intuition behind choosing one mechanism over another, along with some real-world UVM/testbench use cases.

If anyone has insights or examples, I’d really appreciate the explanation.
