# Using @\* with forever block in testbench code

**URL:** <https://verificationacademy.com/forums/t/using-with-forever-block-in-testbench-code/51584>\
**Category:** SystemVerilog\
**Created:** [March 18, 2026, 6:42am UTC](https://verificationacademy.com/forums/t/using-with-forever-block-in-testbench-code/51584 "2026-03-18T06:42:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hdinc](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/h/3ec8ea/32.png) [@hdinc](https://verificationacademy.com/forums/u/hdinc)\
**Post date:** [March 18, 2026, 6:42am UTC](https://verificationacademy.com/forums/t/using-with-forever-block-in-testbench-code/51584/1 "2026-03-18T06:42:06Z")

</div>

```auto
`timescale 1ns/1ps

class c;

    bit b1;
    bit b2;

    task run();
        fork
            begin
                #1 b1 = 0;
                #1 b1 = 1;
                #1 b1 = 0;
                #1;
            end
            forever @* begin
                b2 = b1;
                $display("b1 changed");
            end
            forever begin
                @b2;
                $display("b2 changed");
            end
        join_any
        disable fork;
    endtask

endclass

module tb;

    c c1;

    initial begin

        c1 = new();
        c1.run();

        $finish;
    end

endmodule

```

Hi!

The code above does not compile in questasim. The error string is “\*\* Fatal: Unexpected signal: 11.” which is not helpful. If i comment out the $display after ‘b2 = b1’, it does but the process never triggers so b2 never changes. It works as expected with aldec riviera. My question is, is this a tool issue or LRM restriction. Implicit sensitivity lists with class properties are not supported yet maybe in questa?

You can try it on edaplayground [EDA Playground](https://www.edaplayground.com/x/EDde)

---

<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:** [March 19, 2026, 1:26am UTC](https://verificationacademy.com/forums/t/using-with-forever-block-in-testbench-code/51584/2 "2026-03-19T01:26:17Z")

</div>

Another tool on EDAPlayground says “_Not Yet Implemented_”, while another claims it ignores class properties as part of the @\*, preventing the block from triggering. Only one tools seems to support it. So I would says this is a rarely requested or useful feature.

---

<div class="post-metadata">

**Author:** ![hdinc](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/h/3ec8ea/32.png) [@hdinc](https://verificationacademy.com/forums/u/hdinc)\
**Post date:** [March 23, 2026, 6:10am UTC](https://verificationacademy.com/forums/t/using-with-forever-block-in-testbench-code/51584/4 "2026-03-23T06:10:19Z")

</div>

Thanks. @dave_59

I use it in my scoreboard class to calculate the expected output of the design. The design’s clock created internally so there is no clock that i can use.
