# Will always\_comb block trigger if the signal value changes from 0/1 to X

**URL:** <https://verificationacademy.com/forums/t/will-always-comb-block-trigger-if-the-signal-value-changes-from-0-1-to-x/41741>\
**Category:** SystemVerilog\
**Tags:** always\_comb, force-release, System-Verilog, SystemVerilog\
**Created:** [June 1, 2023, 4:20pm UTC](https://verificationacademy.com/forums/t/will-always-comb-block-trigger-if-the-signal-value-changes-from-0-1-to-x/41741 "2023-06-01T16:20:46Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![sj1992](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/ecae2f/32.png) [@sj1992](https://verificationacademy.com/forums/u/sj1992)\
**Post date:** [June 1, 2023, 6:48pm UTC](https://verificationacademy.com/forums/t/will-always-comb-block-trigger-if-the-signal-value-changes-from-0-1-to-x/41741/6 "2023-06-01T18:48:04Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/will-always-comb-block-trigger-if-the-signal-value-changes-from-0-1-to-x/41741/5):_

> _In reply to [sj1992](https://verificationacademy.com/forums/t/will-always-comb-block-trigger-if-the-signal-value-changes-from-0-1-to-x/41741/5):_  
> That is a completely different question. The code you show works. You don’t even need a force/release statement. A simple procedural assignment to 0 would work. There must be something different in your environment than what you have shown.

I tried the below code but the signal remains X after the force and release statements

```verilog

module top;
  logic [2:0] signal = 1;
  logic clk = 0;
  always_comb begin
     if (signal === 3'bxxx) begin
        $display("signal is x at %0d", $realtime);
        force signal = 0;
        release signal;
        $display("after release signal is: %0b at %0d", signal,$realtime);
      end
  end
  initial begin
     #2 signal = 'x;
     #10 $display("calling finish");
     $stop();
     
   end
   initial begin
     clk = 0;
     forever begin
        #1 clk = ~clk;
      end
     end 
endmodule

```

---

_[View the full topic](https://verificationacademy.com/forums/t/will-always-comb-block-trigger-if-the-signal-value-changes-from-0-1-to-x/41741)._
