data/full_repos/permissive/168578692/BCD_Counter.v
 line:5: before: "="
1: b'%Error: data/full_repos/permissive/168578692/BCD_Counter.v:39: syntax error, unexpected endmodule\nendmodule\n^~~~~~~~~\n%Error: Cannot continue\n'
module BCD_Counter(
  input clock,
  input clear,
  input enable_Count,
  output reg carry_Over = 1'b0,
  output reg [3:0] counter = 4'd0
);

always @ (posedge clock) begin

  if(clear) begin

    counter = 4'd0;
    carry_Over = 1'b0;
  end
  

  if(enable_Count) begin

    if(counter == 4'd9) begin

      carry_Over = 1'b1;
      counter = 4'b0000;
    end
    

    else if(counter == 4'd0) begin

      counter = counter + 1;
      carry_Over = 1'b0;
    end
    
    else begin

      counter = counter + 1'b1;
      carry_Over = 1'b0;
    end
  end
endmodule
module BCD_Counter(
  input clock,
  input clear,
  input enable_Count,
  output reg carry_Over = 1'b0,
  output reg [3:0] counter = 4'd0
);


always @ (posedge clock) begin

  if(clear) begin

    counter = 4'd0;
    carry_Over = 1'b0;
  end
  

  if(enable_Count) begin

    if(counter == 4'd9) begin

      carry_Over = 1'b1;
      counter = 4'b0000;
    end
    

    else if(counter == 4'd0) begin

      counter = counter + 1;
      carry_Over = 1'b0;
    end
    
    else begin

      counter = counter + 1'b1;
      carry_Over = 1'b0;
    end
  end
endmodule