data/full_repos/permissive/471089853/src/fifo.v
1: b"%Error: data/full_repos/permissive/471089853/src/fifo.v:176: Cannot find file containing module: 'scsdpram'\n    scsdpram\n    ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/471089853/src,data/full_repos/permissive/471089853/scsdpram\n             data/full_repos/permissive/471089853/src,data/full_repos/permissive/471089853/scsdpram.v\n             data/full_repos/permissive/471089853/src,data/full_repos/permissive/471089853/scsdpram.sv\n             scsdpram\n             scsdpram.v\n             scsdpram.sv\n             obj_dir/scsdpram\n             obj_dir/scsdpram.v\n             obj_dir/scsdpram.sv\n%Error: data/full_repos/permissive/471089853/src/fifo.v:194: Cannot find file containing module: 'shiftreg'\n    shiftreg\n    ^~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
function integer clog2s;
		input [31:0] v;
		reg [31:0] value;
		begin
			value = v;
			if (value == 1) begin
				clog2s = 1;
			end
			else begin
				value = value-1;
				for (clog2s=0; value>0; clog2s=clog2s+1)
					value = value>>1;
			end
		end
	endfunction
function integer clog2s;

		input [31:0] v;
		reg [31:0] value;
		begin
			value = v;
			if (value == 1) begin
				clog2s = 1;
			end
			else begin
				value = value-1;
				for (clog2s=0; value>0; clog2s=clog2s+1)
					value = value>>1;
			end
		end
	endfunction