# Continuous assignment not updating value when it is changed from 0 to 1

**URL:** <https://verificationacademy.com/forums/t/continuous-assignment-not-updating-value-when-it-is-changed-from-0-to-1/36432>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, continuous-assignment\
**Created:** [August 20, 2019, 11:12am UTC](https://verificationacademy.com/forums/t/continuous-assignment-not-updating-value-when-it-is-changed-from-0-to-1/36432 "2019-08-20T11:12:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KumarSaurabh](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/k/8e7dd6/32.png) [@KumarSaurabh](https://verificationacademy.com/forums/u/KumarSaurabh)\
**Post date:** [August 20, 2019, 11:12am UTC](https://verificationacademy.com/forums/t/continuous-assignment-not-updating-value-when-it-is-changed-from-0-to-1/36432/1 "2019-08-20T11:12:07Z")

</div>

**Here’s the code:**

```verilog
module top;
  wire [2:0] win;
  
  assign win = 2'b100;
  assign #5 win = 2'b011;
  
  initial
    $monitor("%2t, win = %b ", $time, win);
  
  initial
    #10 $display("win = %b ", win);
    
 endmodule

```

**Output:**  
0, win = xxx  
5, win = 0xx  
win = 0xx

As expected the value of win should be 011 or 000 and it must be 011 at time = 10. But at t= 10, it’s value is stuck to 0xx.  
Can anyone explain the reason behind it ?

---

<div class="post-metadata">

**Author:** ![sbellock](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/f4b2a3/32.png) [@sbellock](https://verificationacademy.com/forums/u/sbellock)\
**Post date:** [August 20, 2019, 3:53pm UTC](https://verificationacademy.com/forums/t/continuous-assignment-not-updating-value-when-it-is-changed-from-0-to-1/36432/2 "2019-08-20T15:53:50Z")

</div>

_In reply to [Kumar Saurabh](https://verificationacademy.com/forums/t/continuous-assignment-not-updating-value-when-it-is-changed-from-0-to-1/36432):_

Both "assign win"s are active after 5 time units. You’re driving both a 0 and a 1 to the same wire, which will of course result in a x value.
