blob: 23e5dbca521c68be9d3bc03b3b7ba13ae6ba362b [file] [log] [blame]
// A non-synthesizable Verilog-2005 sqrt function for tutorials.
`ifndef RW_NON_SYNTH_SQRT
`define RW_NON_SYNTH_SQRT
function [31:0] sqrt;
input [31:0] a;
/* verilator lint_off REALCVT */
sqrt = $sqrt(a);
/* verilator lint_on REALCVT */
endfunction
`endif