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 distance_display(
`ifdef USE_POWER_PINS
    inout vccd1,
    inout vssd1,
`endif
    input wire          i_clk,
    input wire          i_reset,
    input wire          i_sensor_echo,

    output wire         o_sensor_trigger,
    output wire [3:0]   o_display_anode,
    output wire [7:0]   o_display_cathode,
    output wire [12:0]  o_io_oeb 
    );

    assign o_io_oeb = {13{1'b0}};

    wire [8:0]   w_distance_binary;
    wire [11:0]  w_distance_bcd;
    wire         w_start_bcd_conversion;
    wire         w_finish;

    distance_measurement d_m (
        .i_clk(i_clk), 
        .i_reset(i_reset), 
        .i_sensor_echo(i_sensor_echo), 
        .o_sensor_trigger(o_sensor_trigger), 
        .o_distance(w_distance_binary),
        .o_rdy(w_start_bcd_conversion)
        );

    binary_to_bcd b_t_btc (
        .i_clk(i_clk), 
        .i_reset(i_reset), 
        .i_binary(w_distance_binary), 
        .i_start(w_start_bcd_conversion), 
        .o_bcd(w_distance_bcd),
        .o_finished(w_finish)
        );


    four_digit_seven_segment_controler f_d_s_s_c (
      .i_clk(i_clk),
      .i_bcd_value(w_distance_bcd),
      .o_anode(o_display_anode),
      .o_cathode(o_display_cathode)
      );
     


endmodule
module distance_display(
`ifdef USE_POWER_PINS
    inout vccd1,
    inout vssd1,
`endif
    input wire          i_clk,
    input wire          i_reset,
    input wire          i_sensor_echo,

    output wire         o_sensor_trigger,
    output wire [3:0]   o_display_anode,
    output wire [7:0]   o_display_cathode,
    output wire [12:0]  o_io_oeb 
    );


    assign o_io_oeb = {13{1'b0}};

    wire [8:0]   w_distance_binary;
    wire [11:0]  w_distance_bcd;
    wire         w_start_bcd_conversion;
    wire         w_finish;

    distance_measurement d_m (
        .i_clk(i_clk), 
        .i_reset(i_reset), 
        .i_sensor_echo(i_sensor_echo), 
        .o_sensor_trigger(o_sensor_trigger), 
        .o_distance(w_distance_binary),
        .o_rdy(w_start_bcd_conversion)
        );

    binary_to_bcd b_t_btc (
        .i_clk(i_clk), 
        .i_reset(i_reset), 
        .i_binary(w_distance_binary), 
        .i_start(w_start_bcd_conversion), 
        .o_bcd(w_distance_bcd),
        .o_finished(w_finish)
        );


    four_digit_seven_segment_controler f_d_s_s_c (
      .i_clk(i_clk),
      .i_bcd_value(w_distance_bcd),
      .o_anode(o_display_anode),
      .o_cathode(o_display_cathode)
      );
     


endmodule