asicguy / gplgpu

GPL v3 2D/3D graphics engine in verilog
GNU General Public License v3.0
659 stars 145 forks source link

Unsupported PLI call: $log #6

Open kallisti5 opened 10 years ago

kallisti5 commented 10 years ago

I've seen quite a few complaints about the math $log call in the open source tools:

verilator -Mdir obj_release/math --cc -sv -Wno-fatal -I./include obj_release/math/flt2int.v obj_release/math/flt_add_sub.v obj_release/math/flt_det.v obj_release/math/flt_frac_test.v obj_release/math/flt_fx_23p9.v obj_release/math/flt_fx_mult.v obj_release/math/flt_fx_uv.v obj_release/math/flt_int.v obj_release/math/flt_mult.v obj_release/math/log2_table.v obj_release/math/sv_log2.v obj_release/math/flt_add_sub_comb.v obj_release/math/flt_alu.v obj_release/math/flt_div.v obj_release/math/flt_fx1616_mult.v obj_release/math/flt_fx_24p8.v obj_release/math/flt_fx_rnd.v obj_release/math/flt_fx.v obj_release/math/flt_mult_comb.v obj_release/math/flt_recip_fast.v generic/gen_pipe.v
%Error: obj_release/math/sv_log2.v:62: Unsupported or unknown PLI call: $log
%Warning-STMTDLY: obj_release/math/sv_log2.v:63: Unsupported: Ignoring delay on this delayed statement.
%Warning-STMTDLY: Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.

Not sure if this is something that could be made more generic?

asicguy commented 10 years ago

I think $log was some code to generate the log table. It’s not required to build. -Frank

From: Alexander von Gluck IV notifications@github.com<mailto:notifications@github.com> Reply-To: asicguy/gplgpu reply@reply.github.com<mailto:reply@reply.github.com> Date: Wednesday, October 22, 2014 at 10:26 AM To: asicguy/gplgpu gplgpu@noreply.github.com<mailto:gplgpu@noreply.github.com> Subject: [gplgpu] Unsupported PLI call: $log (#6)

I've seen quite a few complaints about the math $log call in the open source tools:

verilator -Mdir obj_release/math --cc -sv -Wno-fatal -I./include obj_release/math/flt2int.v obj_release/math/flt_add_sub.v obj_release/math/flt_det.v obj_release/math/flt_frac_test.v obj_release/math/flt_fx_23p9.v obj_release/math/flt_fx_mult.v obj_release/math/flt_fx_uv.v obj_release/math/flt_int.v obj_release/math/flt_mult.v obj_release/math/log2_table.v obj_release/math/sv_log2.v obj_release/math/flt_add_sub_comb.v obj_release/math/flt_alu.v obj_release/math/flt_div.v obj_release/math/flt_fx1616_mult.v obj_release/math/flt_fx_24p8.v obj_release/math/flt_fx_rnd.v obj_release/math/flt_fx.v obj_release/math/flt_mult_comb.v obj_release/math/flt_recip_fast.v generic/gen_pipe.v %Error: obj_release/math/sv_log2.v:62: Unsupported or unknown PLI call: $log %Warning-STMTDLY: obj_release/math/sv_log2.v:63: Unsupported: Ignoring delay on this delayed statement. %Warning-STMTDLY: Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.

Not sure if this is something that could be made more generic?

— Reply to this email directly or view it on GitHubhttps://github.com/asicguy/gplgpu/issues/6.