inside_exhaust.sv 485 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
module Suite;
    parameter WIDTH = 1;
    `include "inside_exhaust.vh"

    function [0:0] test_weq;
        input [WIDTH-1:0] x, y;
        return x ==? y;
    endfunction

10 11 12 13 14
    function [0:0] test_wne;
        input [WIDTH-1:0] x, y;
        return x !=? y;
    endfunction

15 16 17 18 19 20 21 22 23 24 25
    function [0:0] test_inside;
        input [WIDTH-1:0] x, y, z;
        return x inside {y, z};
    endfunction
endmodule

module top;
    Suite #(1) a();
    Suite #(2) b();
    Suite #(3) c();
endmodule