data/full_repos/permissive/505898990/verilog/rtl/distance_display.v
1: b'%Warning-WIDTH: data/full_repos/permissive/505898990/verilog/rtl/distance_display.v:192: Operator ASSIGNDLY expects 12 bits on the Assign RHS, but Assign RHS\'s REPLICATE generates 11 bits.\n                                                                                       : ... In instance distance_display.b_t_btc\n        r_bcd <= {DECIMAL_DIGITS*4-1{1\'b0}};\n              ^~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/505898990/verilog/rtl/distance_display.v:193: Operator ASSIGNDLY expects 9 bits on the Assign RHS, but Assign RHS\'s REPLICATE generates 8 bits.\n                                                                                       : ... In instance distance_display.b_t_btc\n        r_Binary <= {INPUT_WIDTH-1{1\'b0}};\n                 ^~\n%Warning-WIDTH: data/full_repos/permissive/505898990/verilog/rtl/distance_display.v:194: Operator ASSIGNDLY expects 3 bits on the Assign RHS, but Assign RHS\'s REPLICATE generates 2 bits.\n                                                                                       : ... In instance distance_display.b_t_btc\n        r_Digit_Index <= {DECIMAL_DIGITS-1{1\'b0}};\n                      ^~\n%Warning-WIDTH: data/full_repos/permissive/505898990/verilog/rtl/distance_display.v:124: Logical Operator LOGNOT expects 1 bit on the LHS, but LHS\'s VARREF \'s_COUNT_ECHO\' generates 2 bits.\n                                                                                       : ... In instance distance_display.d_m\n            if(!s_COUNT_ECHO || r_measurment_counter_10_uS > MAX_DISTANCE_CYCLES - 1) begin\n               ^\n%Warning-WIDTH: data/full_repos/permissive/505898990/verilog/rtl/distance_display.v:134: Operator ASSIGNDLY expects 9 bits on the Assign RHS, but Assign RHS\'s DIVS generates 32 bits.\n                                                                                       : ... In instance distance_display.d_m\n            o_distance <= ((r_measurment_counter_10_uS / 10)) / 58;\n                       ^~\n%Error: Exiting due to 5 warning(s)\n'
module clock_divider

  #(parameter DIV_VAL = 49)
  (
    input wire i_clk,
    output reg o_div_clk = 0
  );



integer counter_value = 0;

always@(posedge i_clk)
  begin

    if (counter_value == DIV_VAL) begin
      counter_value <= 0;

    end else begin
      counter_value <= counter_value + 1;
    end
  end


always@(posedge i_clk)
  begin

    if (counter_value == DIV_VAL) begin
      o_div_clk <= ~o_div_clk;

    end else begin
      o_div_clk <= o_div_clk;
    end
  end
endmodule
module clock_divider

  #(parameter DIV_VAL = 49)
  (
    input wire i_clk,
    output reg o_div_clk = 0
  );




integer counter_value = 0;

always@(posedge i_clk)
  begin

    if (counter_value == DIV_VAL) begin
      counter_value <= 0;

    end else begin
      counter_value <= counter_value + 1;
    end
  end


always@(posedge i_clk)
  begin

    if (counter_value == DIV_VAL) begin
      o_div_clk <= ~o_div_clk;

    end else begin
      o_div_clk <= o_div_clk;
    end
  end
endmodule