# $deposit in always block?

**URL:** <https://verificationacademy.com/forums/t/deposit-in-always-block/35333>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, deposit-value-at-non-resettable-flop\
**Created:** [November 16, 2018, 4:01am UTC](https://verificationacademy.com/forums/t/deposit-in-always-block/35333 "2018-11-16T04:01:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaganusc](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/g/c37758/32.png) [@gaganusc](https://verificationacademy.com/forums/u/gaganusc)\
**Post date:** [November 16, 2018, 4:01am UTC](https://verificationacademy.com/forums/t/deposit-in-always-block/35333/1 "2018-11-16T04:01:44Z")

</div>

In power aware simulation, I want to deposit some random value at the output of non-resetable flop whenever active high reset is asserted.Is it ok to put $deposit in always block or is there any other way to to achieve this.

always @(posedge reset)  
begin  
$deposit(pathToFlop.Q,$random);  
end

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [November 28, 2018, 7:21am UTC](https://verificationacademy.com/forums/t/deposit-in-always-block/35333/2 "2018-11-28T07:21:48Z")

</div>

_In reply to [gaganusc](https://verificationacademy.com/forums/t/deposit-in-always-block/35333):_

$deposit is not part of the SystemVerilog standard. This forum is not for discussing tool specific issues. Please read your tool manual or contact your tool vendor directly.
