data/full_repos/permissive/19340845/src/SignExtension.v
 line:6: before: "("
1: b'%Warning-MULTITOP: data/full_repos/permissive/19340845/src/SignExtension.v:26: Multiple top level modules\n                                                                             : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                             : ... Top module \'SignExtension\'\nmodule SignExtension(I, sw, O);\n       ^~~~~~~~~~~~~\n                                                                             : ... Top module \'NotSignExtension\'\nmodule NotSignExtension(I, sw, O);\n       ^~~~~~~~~~~~~~~~\n%Error: Exiting due to 1 warning(s)\n'
function [15:0] signExt(
      input [7:0] data,
      input sw);

		reg [11:0] ext;
		integer i;

      begin
			i = sw ? 8 : 4;
			ext = {12{data[i - 1]}};
			if (sw)
				signExt = {ext[7:0], data};
			else 
				signExt = {ext, data[3:0]};
      end
   endfunction
function [15:0] signExt(
      input [7:0] data,
      input sw);


		reg [11:0] ext;
		integer i;

      begin
			i = sw ? 8 : 4;
			ext = {12{data[i - 1]}};
			if (sw)
				signExt = {ext[7:0], data};
			else 
				signExt = {ext, data[3:0]};
      end
   endfunction