data/full_repos/permissive/19340845/src/BusExtractor.v
 line:9: before: "("
data/verilator_xmls/7f5724d0-daec-4f8e-b79c-ef9f849ef159.xml
module BusExtractor(IN, OUT);
   parameter inWidth = 16;
   parameter outStart = 0;
   parameter outWidth = 12;

   input [inWidth-1:0]      IN;
   output [outWidth-1:0] OUT;
   
   function [outWidth-1:0] fout(
      input [inWidth-1:0] fin);

      fout = fin[outStart+outWidth-1:outStart];
   endfunction

   assign OUT = fout(IN);
   
endmodule
module BusExtractor(IN, OUT);

   parameter inWidth = 16;
   parameter outStart = 0;
   parameter outWidth = 12;

   input [inWidth-1:0]      IN;
   output [outWidth-1:0] OUT;
   
   function [outWidth-1:0] fout(
      input [inWidth-1:0] fin);

      fout = fin[outStart+outWidth-1:outStart];
   endfunction

   assign OUT = fout(IN);
   
endmodule