data/full_repos/permissive/114642806/main/main.v
1: b"%Error: data/full_repos/permissive/114642806/main/main.v:16: Cannot find file containing module: 'fsm'\nfsm f0(\n^~~\n        ... Looked in:\n             data/full_repos/permissive/114642806/main,data/full_repos/permissive/114642806/fsm\n             data/full_repos/permissive/114642806/main,data/full_repos/permissive/114642806/fsm.v\n             data/full_repos/permissive/114642806/main,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: data/full_repos/permissive/114642806/main/main.v:29: Cannot find file containing module: 'led_control'\nled_control l0(\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/114642806/main/main.v:37: Cannot find file containing module: 'redlight'\nredlight r0(\n^~~~~~~~\n%Error: Exiting due to 3 error(s)\n"
module main(CLOCK_50, SW, KEY, GPIO_1, GPIO_0, LEDR, HEX0);
input CLOCK_50;
input [9:0] SW;
input [0:0] KEY;
input [35:0] GPIO_1;
output [35:0] GPIO_0;
output[9:0] LEDR;
output [6:0] HEX0;

wire [2:0]led_cont;
wire [1:0] goController;
wire [3:0] ramOutput;
wire enable_next;

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


assign goController[0] = ~GPIO_1[1] || ~GPIO_1[2];
assign LEDR[0] = ~GPIO_1[1];
assign LEDR[1] = ~GPIO_1[2];
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])
  );

redlight r0(
  .clk(CLOCK_50),
  .resetn(KEY[0]),
  .fsmState(led_cont),
  .sensor(goController[0]),
  .ramOut(ramOutput[3:0])
  );

hex_decoder h0(
  .hex_digit(ramOutput[3:0]),
  .segments(HEX0[6:0])
  );

endmodule
module main(CLOCK_50, SW, KEY, GPIO_1, GPIO_0, LEDR, HEX0);

input CLOCK_50;
input [9:0] SW;
input [0:0] KEY;
input [35:0] GPIO_1;
output [35:0] GPIO_0;
output[9:0] LEDR;
output [6:0] HEX0;

wire [2:0]led_cont;
wire [1:0] goController;
wire [3:0] ramOutput;
wire enable_next;

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


assign goController[0] = ~GPIO_1[1] || ~GPIO_1[2];
assign LEDR[0] = ~GPIO_1[1];
assign LEDR[1] = ~GPIO_1[2];
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])
  );

redlight r0(
  .clk(CLOCK_50),
  .resetn(KEY[0]),
  .fsmState(led_cont),
  .sensor(goController[0]),
  .ramOut(ramOutput[3:0])
  );

hex_decoder h0(
  .hex_digit(ramOutput[3:0]),
  .segments(HEX0[6:0])
  );

endmodule