data/full_repos/permissive/212981921/rtl/game_control.v
1: b"%Error: data/full_repos/permissive/212981921/rtl/game_control.v:38: Cannot find file containing module: 'ls00'\nls00 e6b(_srst, _miss, e6b_out);\n^~~~\n        ... Looked in:\n             data/full_repos/permissive/212981921/rtl,data/full_repos/permissive/212981921/ls00\n             data/full_repos/permissive/212981921/rtl,data/full_repos/permissive/212981921/ls00.v\n             data/full_repos/permissive/212981921/rtl,data/full_repos/permissive/212981921/ls00.sv\n             ls00\n             ls00.v\n             ls00.sv\n             obj_dir/ls00\n             obj_dir/ls00.v\n             obj_dir/ls00.sv\n%Error: data/full_repos/permissive/212981921/rtl/game_control.v:42: Cannot find file containing module: 'ls00'\nls00 e6a(e6b_out, e6b_out, e6a_out);\n^~~~\n%Error: data/full_repos/permissive/212981921/rtl/game_control.v:45: Cannot find file containing module: 'timer'\ntimer #(7_159_000, 1700) f4(clk7_159, e6a_out, f4_out);\n^~~~~\n%Error: data/full_repos/permissive/212981921/rtl/game_control.v:49: Cannot find file containing module: 'ls27'\nls27 e5a(_run, stop_g, f4_out, e5a_out);\n^~~~\n%Error: data/full_repos/permissive/212981921/rtl/game_control.v:52: Cannot find file containing module: 'ls74'\nls74 b5b(pad1, e5a_out, e5a_out, 1'b1, _serve, serve);\n^~~~\n%Error: data/full_repos/permissive/212981921/rtl/game_control.v:54: Cannot find file containing module: 'ls02'\nls02 d2a(stop_g, _run, _attract);\n^~~~\n%Error: data/full_repos/permissive/212981921/rtl/game_control.v:55: Cannot find file containing module: 'ls04'\nls04 d1b(_attract, attract);\n^~~~\n%Error: Exiting due to 7 error(s)\n"
module game_control
(
    input wire clk7_159, _miss, stop_g, pad1, coin_sw,
    output wire _srst, srst, rst_speed, attract, _attract, serve, _serve 
);

wire e6b_out;
ls00 e6b(_srst, _miss, e6b_out);
assign rst_speed = e6b_out;

wire e6a_out;
ls00 e6a(e6b_out, e6b_out, e6a_out);

wire f4_out;
timer #(7_159_000, 1700) f4(clk7_159, e6a_out, f4_out);

wire _run;
wire e5a_out;
ls27 e5a(_run, stop_g, f4_out, e5a_out);
assign _run = ~running;

ls74 b5b(pad1, e5a_out, e5a_out, 1'b1, _serve, serve);

ls02 d2a(stop_g, _run, _attract);
ls04 d1b(_attract, attract);

assign srst = coin_sw;
assign _srst = ~srst;

reg running, coin_sw_old, stop_g_old;

initial begin
  running = 1'b0;
  coin_sw_old = 1'b0;
  stop_g_old = 1'b0;
end

always @(negedge clk7_159) begin
    if (coin_sw_old == 1'b0 && coin_sw == 1'b1) begin
      running <= 1'b1;
    end else if (stop_g_old == 1'b0 && stop_g == 1'b1) begin
      running <= 1'b0;
    end
    coin_sw_old <= coin_sw;
    stop_g_old <= stop_g;
end

endmodule
module game_control
(
    input wire clk7_159, _miss, stop_g, pad1, coin_sw,
    output wire _srst, srst, rst_speed, attract, _attract, serve, _serve 
);


wire e6b_out;
ls00 e6b(_srst, _miss, e6b_out);
assign rst_speed = e6b_out;

wire e6a_out;
ls00 e6a(e6b_out, e6b_out, e6a_out);

wire f4_out;
timer #(7_159_000, 1700) f4(clk7_159, e6a_out, f4_out);

wire _run;
wire e5a_out;
ls27 e5a(_run, stop_g, f4_out, e5a_out);
assign _run = ~running;

ls74 b5b(pad1, e5a_out, e5a_out, 1'b1, _serve, serve);

ls02 d2a(stop_g, _run, _attract);
ls04 d1b(_attract, attract);

assign srst = coin_sw;
assign _srst = ~srst;

reg running, coin_sw_old, stop_g_old;

initial begin
  running = 1'b0;
  coin_sw_old = 1'b0;
  stop_g_old = 1'b0;
end

always @(negedge clk7_159) begin
    if (coin_sw_old == 1'b0 && coin_sw == 1'b1) begin
      running <= 1'b1;
    end else if (stop_g_old == 1'b0 && stop_g == 1'b1) begin
      running <= 1'b0;
    end
    coin_sw_old <= coin_sw;
    stop_g_old <= stop_g;
end

endmodule