data/full_repos/permissive/48007633/llLib.v
data/verilator_xmls/adfc138d-593d-48a1-819d-2bb2753f6b3c.xml
module llLib();
	

	function real SIN;
		input real 		f;
		input integer 	nBits;

		integer	A;
		real 	t;
		begin
			A = 2 ** nBits;
			t = $realtime / 1000000000.0;

			SIN = A * $sin(t * 2 * `PI * f * 1000000.0);;
		end
	endfunction


	function integer RANDRANGE;
        input integer max;
        input integer min;

        begin
            RANDRANGE = ($unsigned($random) % (max - min)) + min;
        end
    endfunction

endmodule
module llLib();

	

	function real SIN;
		input real 		f;
		input integer 	nBits;

		integer	A;
		real 	t;
		begin
			A = 2 ** nBits;
			t = $realtime / 1000000000.0;

			SIN = A * $sin(t * 2 * `PI * f * 1000000.0);;
		end
	endfunction


	function integer RANDRANGE;
        input integer max;
        input integer min;

        begin
            RANDRANGE = ($unsigned($random) % (max - min)) + min;
        end
    endfunction

endmodule