assert.sv 288 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
module Module(input clock, input clear, input data);
    logic x, y;
    assign y = data;
    assign x = y;
    assert property (
        @(posedge clock) disable iff(clear) x == y
    );
    task hello;
        $display("Hello!");
        assert property (x == y);
    endtask
endmodule