module bpr_3x1_interpol
(
    input   wire            clk,
    input   wire            cen,
    input   wire            srst,
    
    input   wire    [14:0]  pix_in_0,
    input   wire    [14:0]  pix_in_1,
    input   wire    [14:0]  pix_in_2,
    
    output  wire    [14:0]  pix_out_avg
);
    
/*-------------------------------------------------------------------------------------------------------------------------------------*/

    wire    [14:0]  pix_01_avg;
    wire    [14:0]  pix_12_avg;
    
    
    bpr_averager bpr_averager_01
    (
        .clk            (clk), 
        .cen            (cen), 
        .srst           (srst), 
        .pix_in_0       (pix_in_0), 
        .pix_in_1       (pix_in_1), 
        .pix_out_avg    (pix_01_avg)
    );
    
    
    bpr_averager bpr_averager_12
    (
        .clk            (clk), 
        .cen            (cen), 
        .srst           (srst), 
        .pix_in_0       (pix_in_1), 
        .pix_in_1       (pix_in_2), 
        .pix_out_avg    (pix_12_avg)
    );
    
    
    bpr_averager bpr_averager_result
    (
        .clk            (clk), 
        .cen            (cen), 
        .srst           (srst), 
        .pix_in_0       (pix_01_avg), 
        .pix_in_1       (pix_12_avg), 
        .pix_out_avg    (pix_out_avg)
    );
    
endmodule