data/full_repos/permissive/160794640/example/genvarexample.v
 line:1: before: "NUM_SOURCES"
data/verilator_xmls/ab9d56d2-1683-49df-8fb1-d21debdaaeb6.xml
module genvarexample #(NUM_SOURCES=3) (input clk, input rst, output [NUM_SOURCES-1:0] [31:0] counter, output [NUM_SOURCES-1:0] tst);

      for (genvar idx= 0; idx< NUM_SOURCES; idx++)
         myinstance inst (.clk, .rst, .counter(counter[idx]));

      for (genvar idx= 0; idx< NUM_SOURCES; idx++)
         test inst (.clk, .rst, .counter(counter[idx]), .tst(tst[idx]));

endmodule
module genvarexample #(NUM_SOURCES=3) (input clk, input rst, output [NUM_SOURCES-1:0] [31:0] counter, output [NUM_SOURCES-1:0] tst);


      for (genvar idx= 0; idx< NUM_SOURCES; idx++)
         myinstance inst (.clk, .rst, .counter(counter[idx]));

      for (genvar idx= 0; idx< NUM_SOURCES; idx++)
         test inst (.clk, .rst, .counter(counter[idx]), .tst(tst[idx]));

endmodule