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'
module NotSignExtension(I, sw, O);
   input [7:0]  I;
   input         sw;
   output [15:0] O;
	
	wire [15:0] out1; 
	
   function [15:0] notSignExt(
      input [7:0] data,
      input sw);

		reg [11:0] ext;
		
      begin
			ext = 12'b0;
			if (sw)
				notSignExt = {ext[7:0], data};
			else 
				notSignExt = {ext, data[3:0]};
      end
   endfunction

   assign O = notSignExt(I, sw);
endmodule
module NotSignExtension(I, sw, O);

   input [7:0]  I;
   input         sw;
   output [15:0] O;
	
	wire [15:0] out1; 
	
   function [15:0] notSignExt(
      input [7:0] data,
      input sw);

		reg [11:0] ext;
		
      begin
			ext = 12'b0;
			if (sw)
				notSignExt = {ext[7:0], data};
			else 
				notSignExt = {ext, data[3:0]};
      end
   endfunction

   assign O = notSignExt(I, sw);
endmodule