data/full_repos/permissive/129582718/project.v
 line:84: before: "."
1: b"%Error: data/full_repos/permissive/129582718/project.v:1152: syntax error, unexpected '(', expecting IDENTIFIER\n    hex0(.m0(signals[0]),\n         ^\n%Error: Exiting due to 1 error(s)\n"
module project(CLOCK_50, LEDR, KEY, HEX0, HEX1, HEX2, HEX3, HEX5, SW, LEDG, GPIO,

  VGA_CLK,
  VGA_HS,
  VGA_VS,
  VGA_BLANK_N,
  VGA_SYNC_N,
  VGA_R,
  VGA_G,
  VGA_B
);


  output [6:0] HEX0, HEX1, HEX2, HEX3, HEX5;

  input [1:0] KEY;

  input CLOCK_50;

  output [9:0] LEDR;

  input [0:0] SW;

  input [1:0] GPIO;

  output [7:0] LEDG;


  wire push_key_1;
  assign push_key_1 = GPIO[0];

  wire push_key_2;
  assign push_key_2 = GPIO[1];

  wire [9:0] led;

  wire clk_8hz;

  wire if_shift;

  wire [7:0] combo;

  wire [7:0] score;

  wire [1:0] accuracy;

  assign LEDR[9:0] = led[9:0];


  output      VGA_CLK;
  output      VGA_HS;
  output      VGA_VS;
  output      VGA_BLANK_N;
  output      VGA_SYNC_N;
  output  [9:0]  VGA_R;
  output  [9:0]  VGA_G;
  output  [9:0]  VGA_B;
  wire [2:0] colour;
  wire [7:0] x;
  wire [6:0] y;






  vga_adapter VGA(
      .resetn(SW[0]),
      .clock(CLOCK_50),
      .colour(colour),
      .x(x),
      .y(y),
      .plot(1'b1),

      .VGA_R(VGA_R),
      .VGA_G(VGA_G),
      .VGA_B(VGA_B),
      .VGA_HS(VGA_HS),
      .VGA_VS(VGA_VS),
      .VGA_BLANK(VGA_BLANK_N),
      .VGA_SYNC(VGA_SYNC_N),
      .VGA_CLK(VGA_CLK));
  defparam VGA.RESOLUTION = "160x120";
  defparam VGA.MONOCHROME = "FALSE";
  defparam VGA.BITS_PER_COLOUR_CHANNEL = 1;
  defparam VGA.BACKGROUND_IMAGE = "black.mif";


  hex combo_lower(
    .hex_display(HEX0[6:0]),
    .signals(combo[3:0]));


  hex combo_higher(
    .hex_display(HEX1[6:0]),
    .signals(combo[7:4]));


  hex score_lower(
    .hex_display(HEX2[6:0]),
    .signals(score[3:0]));


  hex score_higher(
    .hex_display(HEX3[6:0]),
    .signals(score[7:4]));


  hex_accuracy grader(
    .hex(HEX5),
    .accuracy(accuracy));


  localparam RHYTHM_MAP_KEY_1 = 142'b1111000100000001010100010000000101010000010001000001000001010000000100000100010000010000010100000001000000010000000100000001000000010000000000;
  localparam RHYTHM_MAP_KEY_2 = 142'b1111000101010001000000010101000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000000000000;


  clock_8hz watch (
    .clk(CLOCK_50),
    .out(clk_8hz));


  control donald_trump(
    .clk(CLOCK_50),
    .start(KEY[0]),
    .rst(SW[0]),
    .enable_shift(if_shift));


  datapath sweatshop(
    .clk_8(clk_8hz),
    .clk_50m(CLOCK_50),
    .load(KEY[0]),
    .rst(SW[0]),
    .button_1(push_key_1),
    .button_2(push_key_2),
    .is_start(if_shift),
    .init_rhythm_map_key_1(RHYTHM_MAP_KEY_1),
    .init_rhythm_map_key_2(RHYTHM_MAP_KEY_2),
    .rhythm_shifter_out_key_1(led[9:0]),
    .rhythm_shifter_out_key_2(LEDG[7:0]),
    .combo(combo[7:0]),
    .score(score[7:0]),
    .accuracy(accuracy),
    .x(x),
    .y(y),
    .colour(colour)
  );
endmodule
module project(CLOCK_50, LEDR, KEY, HEX0, HEX1, HEX2, HEX3, HEX5, SW, LEDG, GPIO,

  VGA_CLK,
  VGA_HS,
  VGA_VS,
  VGA_BLANK_N,
  VGA_SYNC_N,
  VGA_R,
  VGA_G,
  VGA_B
);



  output [6:0] HEX0, HEX1, HEX2, HEX3, HEX5;

  input [1:0] KEY;

  input CLOCK_50;

  output [9:0] LEDR;

  input [0:0] SW;

  input [1:0] GPIO;

  output [7:0] LEDG;


  wire push_key_1;
  assign push_key_1 = GPIO[0];

  wire push_key_2;
  assign push_key_2 = GPIO[1];

  wire [9:0] led;

  wire clk_8hz;

  wire if_shift;

  wire [7:0] combo;

  wire [7:0] score;

  wire [1:0] accuracy;

  assign LEDR[9:0] = led[9:0];


  output      VGA_CLK;
  output      VGA_HS;
  output      VGA_VS;
  output      VGA_BLANK_N;
  output      VGA_SYNC_N;
  output  [9:0]  VGA_R;
  output  [9:0]  VGA_G;
  output  [9:0]  VGA_B;
  wire [2:0] colour;
  wire [7:0] x;
  wire [6:0] y;






  vga_adapter VGA(
      .resetn(SW[0]),
      .clock(CLOCK_50),
      .colour(colour),
      .x(x),
      .y(y),
      .plot(1'b1),

      .VGA_R(VGA_R),
      .VGA_G(VGA_G),
      .VGA_B(VGA_B),
      .VGA_HS(VGA_HS),
      .VGA_VS(VGA_VS),
      .VGA_BLANK(VGA_BLANK_N),
      .VGA_SYNC(VGA_SYNC_N),
      .VGA_CLK(VGA_CLK));
  defparam VGA.RESOLUTION = "160x120";
  defparam VGA.MONOCHROME = "FALSE";
  defparam VGA.BITS_PER_COLOUR_CHANNEL = 1;
  defparam VGA.BACKGROUND_IMAGE = "black.mif";


  hex combo_lower(
    .hex_display(HEX0[6:0]),
    .signals(combo[3:0]));


  hex combo_higher(
    .hex_display(HEX1[6:0]),
    .signals(combo[7:4]));


  hex score_lower(
    .hex_display(HEX2[6:0]),
    .signals(score[3:0]));


  hex score_higher(
    .hex_display(HEX3[6:0]),
    .signals(score[7:4]));


  hex_accuracy grader(
    .hex(HEX5),
    .accuracy(accuracy));


  localparam RHYTHM_MAP_KEY_1 = 142'b1111000100000001010100010000000101010000010001000001000001010000000100000100010000010000010100000001000000010000000100000001000000010000000000;
  localparam RHYTHM_MAP_KEY_2 = 142'b1111000101010001000000010101000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000000000000;


  clock_8hz watch (
    .clk(CLOCK_50),
    .out(clk_8hz));


  control donald_trump(
    .clk(CLOCK_50),
    .start(KEY[0]),
    .rst(SW[0]),
    .enable_shift(if_shift));


  datapath sweatshop(
    .clk_8(clk_8hz),
    .clk_50m(CLOCK_50),
    .load(KEY[0]),
    .rst(SW[0]),
    .button_1(push_key_1),
    .button_2(push_key_2),
    .is_start(if_shift),
    .init_rhythm_map_key_1(RHYTHM_MAP_KEY_1),
    .init_rhythm_map_key_2(RHYTHM_MAP_KEY_2),
    .rhythm_shifter_out_key_1(led[9:0]),
    .rhythm_shifter_out_key_2(LEDG[7:0]),
    .combo(combo[7:0]),
    .score(score[7:0]),
    .accuracy(accuracy),
    .x(x),
    .y(y),
    .colour(colour)
  );
endmodule