data/full_repos/permissive/2084115/testbench/sim/math/tb_float_to_fixed/tb_float_to_fixed.v
None: at end of input
1: b'%Error: data/full_repos/permissive/2084115/testbench/sim/math/tb_float_to_fixed/tb_float_to_fixed.v:10: Unsupported or unknown PLI call: $dumpfile\n        $dumpfile("tb_float_to_fixed.vcd");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/2084115/testbench/sim/math/tb_float_to_fixed/tb_float_to_fixed.v:11: Unsupported or unknown PLI call: $dumpvars\n        $dumpvars(0, tb_float_to_fixed);\n        ^~~~~~~~~\n%Warning-STMTDLY: data/full_repos/permissive/2084115/testbench/sim/math/tb_float_to_fixed/tb_float_to_fixed.v:15: Unsupported: Ignoring delay on this delayed statement.\n    always #(RATE/2.0)  clk = ~clk;\n           ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/2084115/testbench/sim/math/tb_float_to_fixed/tb_float_to_fixed.v:18: Unsupported: Ignoring delay on this delayed statement.\n    always #(RATE*100)  reset = 1\'b0;\n           ^\n%Error: data/full_repos/permissive/2084115/testbench/sim/math/tb_float_to_fixed/tb_float_to_fixed.v:96: Unsupported: Seeding $random doesn\'t map to C++, use $c("srand")\n                    in_float <= {$random(reg_random)};\n                                 ^~~~~~~\n%Error: Internal Error: data/full_repos/permissive/2084115/testbench/sim/math/tb_float_to_fixed/tb_float_to_fixed.v:96: ../V3Ast.cpp:358: Null item passed to setOp1p\n                    in_float <= {$random(reg_random)};\n                                ^\n                        ... See the manual and https://verilator.org for more assistance.\n'
function [FLOAT_WIDTH-1:0] real2float(input real r);
    reg     [63:0]  b;
    begin
        b                                    = $realtobits(r);
        real2float[FLOAT_WIDTH-1]            = b[63];
        real2float[FLOAT_FRAC_WIDTH +: FLOAT_EXP_WIDTH]  = (b[62:52] - 1023) + FLOAT_EXP_OFFSET;
        real2float[0                +: FLOAT_FRAC_WIDTH] = b[51 -: FLOAT_FRAC_WIDTH];
    end
    endfunction
function [FLOAT_WIDTH-1:0] real2float(input real r);

    reg     [63:0]  b;
    begin
        b                                    = $realtobits(r);
        real2float[FLOAT_WIDTH-1]            = b[63];
        real2float[FLOAT_FRAC_WIDTH +: FLOAT_EXP_WIDTH]  = (b[62:52] - 1023) + FLOAT_EXP_OFFSET;
        real2float[0                +: FLOAT_FRAC_WIDTH] = b[51 -: FLOAT_FRAC_WIDTH];
    end
    endfunction