# Assigning weak1 and weak0 to an input pin to verify pulldown

**URL:** <https://verificationacademy.com/forums/t/assigning-weak1-and-weak0-to-an-input-pin-to-verify-pulldown/31654>\
**Category:** UVM\
**Tags:** System-Verilog, UVM, drive-strength, weak-values, pulldown\
**Created:** [March 30, 2016, 11:31pm UTC](https://verificationacademy.com/forums/t/assigning-weak1-and-weak0-to-an-input-pin-to-verify-pulldown/31654 "2016-03-30T23:31:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![szy0014](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@szy0014](https://verificationacademy.com/forums/u/szy0014)\
**Post date:** [March 31, 2016, 7:46am UTC](https://verificationacademy.com/forums/t/assigning-weak1-and-weak0-to-an-input-pin-to-verify-pulldown/31654/3 "2016-03-31T07:46:32Z")

</div>

_In reply to [chr\_sue](https://verificationacademy.com/forums/t/assigning-weak1-and-weak0-to-an-input-pin-to-verify-pulldown/31654/2):_

Yes. “dut\_if.test\_drive = weak1” is not a working statement. This just represents the kind of functionality I need.

I tried something like

assign (weak1, weak0) P = (pulldown\_verif) ? (test\_drive) : (vip.out);

and in my run phase I have :

if(r == 1) begin  
dut\_if.pulldown\_verif = 1;  
dut\_if.test\_drive = 1;  
end

But doing this, I need to add more logic in the dut\_if file (for all combinations of drive strengths) which I want to avoid. Is it okay if I do this task as shown above?

---

_[View the full topic](https://verificationacademy.com/forums/t/assigning-weak1-and-weak0-to-an-input-pin-to-verify-pulldown/31654)._
