data/full_repos/permissive/11584509/source/ltcminer.v
 line:101: before: "integer"
1: b'%Error: data/full_repos/permissive/11584509/source/ltcminer.v:49: Cannot find file containing module: \'main_pll\'\n  main_pll #(.SPEED_MHZ(SPEED_MHZ)) pll_blk (osc_clk, hash_clk);\n  ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/11584509/source,data/full_repos/permissive/11584509/main_pll\n             data/full_repos/permissive/11584509/source,data/full_repos/permissive/11584509/main_pll.v\n             data/full_repos/permissive/11584509/source,data/full_repos/permissive/11584509/main_pll.sv\n             main_pll\n             main_pll.v\n             main_pll.sv\n             obj_dir/main_pll\n             obj_dir/main_pll.v\n             obj_dir/main_pll.sv\n%Warning-WIDTH: data/full_repos/permissive/11584509/source/ltcminer.v:70: Operator ASSIGN expects 32 bits on the Assign RHS, but Assign RHS\'s CONST \'31\'h7ff\' generates 31 bits.\n                                                                        : ... In instance ltcminer\n reg [31:0] target = 31\'h000007ff;  \n                     ^~~~~~~~~~~~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: data/full_repos/permissive/11584509/source/ltcminer.v:85: Cannot find file containing module: \'hashcore\'\n   hashcore M (hash_clk, data1, data2, data3, target, nonce_core, nonce_out_i, golden_nonce_i[(i+1)*32-1:i*32], golden_nonce_match[i], loadnonce);\n   ^~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/11584509/source/ltcminer.v:131: Bit extraction of var[0:0] requires 1 bit index, not 2 bits.\n                                                                         : ... In instance ltcminer\n   clear_nonces[port_counter] <= 1;\n               ^\n%Warning-WIDTH: data/full_repos/permissive/11584509/source/ltcminer.v:128: Bit extraction of var[0:0] requires 1 bit index, not 2 bits.\n                                                                         : ... In instance ltcminer\n  if (new_nonces_flag[port_counter])\n                     ^\n%Error: data/full_repos/permissive/11584509/source/ltcminer.v:149: Cannot find file containing module: \'virtual_wire\'\n virtual_wire # (.PROBE_WIDTH(0), .WIDTH(256), .INSTANCE_ID("DAT1")) data1_vw_blk(.probe(), .source(data1_vw));\n ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/11584509/source/ltcminer.v:150: Cannot find file containing module: \'virtual_wire\'\n virtual_wire # (.PROBE_WIDTH(0), .WIDTH(256), .INSTANCE_ID("DAT2")) data2_vw_blk(.probe(), .source(data2_vw));\n ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/11584509/source/ltcminer.v:151: Cannot find file containing module: \'virtual_wire\'\n virtual_wire # (.PROBE_WIDTH(0), .WIDTH(128), .INSTANCE_ID("DAT3")) data3_vw_blk(.probe(), .source(data3_vw));\n ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/11584509/source/ltcminer.v:152: Cannot find file containing module: \'virtual_wire\'\n virtual_wire # (.PROBE_WIDTH(0), .WIDTH(32), .INSTANCE_ID("TARG")) target_vw_blk(.probe(), .source(target_vw));\n ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/11584509/source/ltcminer.v:164: Cannot find file containing module: \'virtual_wire\'\n virtual_wire # (.PROBE_WIDTH(32), .WIDTH(0), .INSTANCE_ID("GNON")) golden_nonce_vw_blk (.probe(golden_nonce_out), .source());\n ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/11584509/source/ltcminer.v:165: Cannot find file containing module: \'virtual_wire\'\n virtual_wire # (.PROBE_WIDTH(32), .WIDTH(0), .INSTANCE_ID("NONC")) nonce_vw_blk (.probe(nonce_out), .source());\n ^~~~~~~~~~~~\n%Error: Exiting due to 8 error(s), 3 warning(s)\n'
function integer clog2;
	input integer value;
	begin
		value = value-1;
		for (clog2=0; value>0; clog2=clog2+1)
		value = value>>1;
	end
	endfunction
function integer clog2;

	input integer value;
	begin
		value = value-1;
		for (clog2=0; value>0; clog2=clog2+1)
		value = value>>1;
	end
	endfunction