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 bcd_to_cathodes(
  input [3:0] i_digit,
  output reg [7:0] o_cathode
);

always@(i_digit)
begin

  case(i_digit)

  4'd0: o_cathode <= 8'b11000000;
  4'd1: o_cathode <= 8'b11111001;
  4'd2: o_cathode <= 8'b10100100;
  4'd3: o_cathode <= 8'b10110000;
  4'd4: o_cathode <= 8'b10011001;
  4'd5: o_cathode <= 8'b10010010;
  4'd6: o_cathode <= 8'b10000010;
  4'd7: o_cathode <= 8'b11111000;
  4'd8: o_cathode <= 8'b10000000;
  4'd9: o_cathode <= 8'b10010000;
  default:
    o_cathode <= 8'b11000000;
 endcase

end
endmodule
module bcd_to_cathodes(
  input [3:0] i_digit,
  output reg [7:0] o_cathode
);


always@(i_digit)
begin

  case(i_digit)

  4'd0: o_cathode <= 8'b11000000;
  4'd1: o_cathode <= 8'b11111001;
  4'd2: o_cathode <= 8'b10100100;
  4'd3: o_cathode <= 8'b10110000;
  4'd4: o_cathode <= 8'b10011001;
  4'd5: o_cathode <= 8'b10010010;
  4'd6: o_cathode <= 8'b10000010;
  4'd7: o_cathode <= 8'b11111000;
  4'd8: o_cathode <= 8'b10000000;
  4'd9: o_cathode <= 8'b10010000;
  default:
    o_cathode <= 8'b11000000;
 endcase

end
endmodule