data/full_repos/permissive/505898990/verilog/rtl/examples/distance_display_mine_orginal.v
1: b"%Error: data/full_repos/permissive/505898990/verilog/rtl/examples/distance_display_mine_orginal.v:435: syntax error, unexpected ';', expecting ')' or ','\n    output reg [7:0] o_segments = 0;\n                                   ^\n%Error: Exiting due to 1 error(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 [11:0]  o_display,
    output wire [12:0]  o_io_oeb 
    );

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

    wire [8:0]   r_distance_binary;
    wire [11:0]  r_distance_bcd;
    wire         r_start_bcd_conversion;
    wire         r_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(r_distance_binary),
        .o_rdy(r_start_bcd_conversion)
        );

    binary_to_bcd b_t_btc (
        .i_clk(i_clk), 
        .i_reset(i_reset), 
        .i_binary(r_distance_binary), 
        .i_start(r_start_bcd_conversion), 
        .o_bcd(r_distance_bcd),
        .o_finished(r_finish)
        );

    four_digit_seven_segment f_d_s_s (
        .i_clk(i_clk), 
        .i_reset(i_reset), 
        .i_distance_bcd(r_distance_bcd), 
        .o_display(o_display)
        );    
    

       
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 [11:0]  o_display,
    output wire [12:0]  o_io_oeb 
    );


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

    wire [8:0]   r_distance_binary;
    wire [11:0]  r_distance_bcd;
    wire         r_start_bcd_conversion;
    wire         r_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(r_distance_binary),
        .o_rdy(r_start_bcd_conversion)
        );

    binary_to_bcd b_t_btc (
        .i_clk(i_clk), 
        .i_reset(i_reset), 
        .i_binary(r_distance_binary), 
        .i_start(r_start_bcd_conversion), 
        .o_bcd(r_distance_bcd),
        .o_finished(r_finish)
        );

    four_digit_seven_segment f_d_s_s (
        .i_clk(i_clk), 
        .i_reset(i_reset), 
        .i_distance_bcd(r_distance_bcd), 
        .o_display(o_display)
        );    
    

       
endmodule