data/full_repos/permissive/114642806/dev/main.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/114642806/dev/main.v:151: 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 \'main\'\nmodule main(CLOCK_50, SW, GPIO_0, LEDR);\n       ^~~~\n                                                                      : ... Top module \'counter\'\nmodule counter(CLOCK_50, enable);\n       ^~~~~~~\n                                                                      : ... Top module \'backup_counter\'\nmodule backup_counter(CLOCK_50, enable_next);\n       ^~~~~~~~~~~~~~\n                                                                      : ... Top module \'emergency\'\nmodule emergency(SW, its_an_emergency);\n       ^~~~~~~~~\n%Error: data/full_repos/permissive/114642806/dev/main.v:12: Cannot find file containing module: \'fsm\'\nfsm f0(\n^~~\n        ... Looked in:\n             data/full_repos/permissive/114642806/dev,data/full_repos/permissive/114642806/fsm\n             data/full_repos/permissive/114642806/dev,data/full_repos/permissive/114642806/fsm.v\n             data/full_repos/permissive/114642806/dev,data/full_repos/permissive/114642806/fsm.sv\n             fsm\n             fsm.v\n             fsm.sv\n             obj_dir/fsm\n             obj_dir/fsm.v\n             obj_dir/fsm.sv\n%Error: Exiting due to 1 error(s), 1 warning(s)\n'
module main(CLOCK_50, SW, GPIO_0, LEDR);
input CLOCK_50;
input [9:0] SW;
inout [35:0] GPIO_0;
output[0:0] LEDR;

wire counter_en;
wire [2:0]led_cont;
wire [1:0] goController;


fsm f0(
  .clk(CLOCK_50),
  .resetn(SW[9]),
  .goControl(goController),
  .ledOut(led_cont)
  );


assign goController[0] = GPIO_0[20];
assign goController[1] = SW[0];

led_control l0(
  .fsmIn(led_cont),
  .greenOut(GPIO_0[1:0]),
  .redOut(GPIO_0[3:2]),
  .yellowOut(GPIO_0[5:4]),
  .leftOut(GPIO_0[7:6])
  );

 assign GPIO_0[10] = counter_en;
 assign LEDR[0] = counter_en;

endmodule
module main(CLOCK_50, SW, GPIO_0, LEDR);

input CLOCK_50;
input [9:0] SW;
inout [35:0] GPIO_0;
output[0:0] LEDR;

wire counter_en;
wire [2:0]led_cont;
wire [1:0] goController;


fsm f0(
  .clk(CLOCK_50),
  .resetn(SW[9]),
  .goControl(goController),
  .ledOut(led_cont)
  );


assign goController[0] = GPIO_0[20];
assign goController[1] = SW[0];

led_control l0(
  .fsmIn(led_cont),
  .greenOut(GPIO_0[1:0]),
  .redOut(GPIO_0[3:2]),
  .yellowOut(GPIO_0[5:4]),
  .leftOut(GPIO_0[7:6])
  );

 assign GPIO_0[10] = counter_en;
 assign LEDR[0] = counter_en;

endmodule