data/full_repos/permissive/143278/ivltests/localparam_query.v
'utf-8' codec can't decode byte 0xf0 in position 3584: invalid continuation byte
data/verilator_xmls/516082b4-dc4d-4995-8158-bfa53f0b8c9e.xml
module lparam_query;
localparam const_param = 16'b0001110111001111;

initial begin
    if($left(const_param) !== 15) begin
        $display("FAILED 1");
        $finish();
    end

    if($right(const_param) !== 0) begin
        $display("FAILED 2");
        $finish();
    end

    if($high(const_param) !== 15) begin
        $display("FAILED 3");
        $finish();
    end

    if($low(const_param) !== 0) begin
        $display("FAILED 4");
        $finish();
    end

    if($increment(const_param) !== 1) begin
        $display("FAILED 5");
        $finish();
    end

    if($size(const_param) !== 16) begin
        $display("FAILED 6");
        $finish();
    end

    $display("PASSED");
end
endmodule
module lparam_query;

localparam const_param = 16'b0001110111001111;

initial begin
    if($left(const_param) !== 15) begin
        $display("FAILED 1");
        $finish();
    end

    if($right(const_param) !== 0) begin
        $display("FAILED 2");
        $finish();
    end

    if($high(const_param) !== 15) begin
        $display("FAILED 3");
        $finish();
    end

    if($low(const_param) !== 0) begin
        $display("FAILED 4");
        $finish();
    end

    if($increment(const_param) !== 1) begin
        $display("FAILED 5");
        $finish();
    end

    if($size(const_param) !== 16) begin
        $display("FAILED 6");
        $finish();
    end

    $display("PASSED");
end
endmodule