Commit 46f1a6c9 authored by Andrey Filippov's avatar Andrey Filippov
Browse files

Continue debugging 256-cycle Bayer MCLT

parent a5e4cd6e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -76,6 +76,7 @@ module dtt_iv_8x8_ad#(
    output reg                       out_we,        //!< output data valid (write to external buffer 
    output reg                       sub16,         //!< Subtract 16 from the full output address when true
    output reg                       inc16,         //!< increment full output address by 16
    output reg                       start16,       //!< reset/copy page address
    output reg                       start_out);    //!< may start output readout, 1 entry per clock, vertically

// 1. Two 16xINPUT_WIDTH memories to feed two of the 'horizontal' 1-dct - they should provide outputs shifted by 1 clock
@@ -384,6 +385,7 @@ module dtt_iv_8x8_ad#(
        inc16 <= out_cntr[3:0] == 'he;
        out_we <= dctv_out_we[1];
        start_out <= start_out_w;
        start16 <= dctv_phin [6:0] == 'h11;
    end
    
    always @ (posedge clk) begin
+4 −4
Original line number Diff line number Diff line
@@ -292,7 +292,8 @@ module mclt16x16_bayer#(
    
    always @(posedge clk) begin
        if      (rst)        dtt_out_ram_cntr <= 0;
        else if (dtt_inc16)  dtt_out_ram_cntr <= dtt_out_ram_cntr + 1;
        else if (dtt_inc16)  dtt_out_ram_cntr <= dtt_out_ram_cntr + 1; // make it copy input page?
        
        dtt_out_ram_wah <= dtt_out_ram_cntr - dtt_sub16;
        
        dtt_start_first_fill <= dtt_start_fill & dtt_first_quad_out;
@@ -368,8 +369,6 @@ module mclt16x16_bayer#(
        .data_in  ({{(36-DTT_IN_WIDTH){1'b0}}, data_dtt_in}) // input[35:0] 
    );
   
    
    
    dtt_iv_8x8_ad #(
        .INPUT_WIDTH     (DTT_IN_WIDTH),
        .OUT_WIDTH       (OUT_WIDTH),
@@ -394,6 +393,7 @@ module mclt16x16_bayer#(
        .out_we         (dtt_out_we),       // output reg 
        .sub16          (dtt_sub16),        // output reg 
        .inc16          (dtt_inc16),        // output reg
        .start16        (),                 // output reg 
        .start_out      (dtt_start_fill)    // output[24:0] signed
    );
    //[DTT_IN_WIDTH-1:0
+200 −66

File changed.

Preview size limit exceeded, changes collapsed.

+4 −2
Original line number Diff line number Diff line
@@ -108,7 +108,8 @@ module mclt_baeyer_fold_accum_rgb # (
    reg  [1:0] ced2;
    wire neg_m1, neg_m2, en_a2;
    wire accum1= !var_pre2_first;
    wire accum2= !var_pre_first && green_r[2];
//    wire accum2= !var_pre_first && green_r[2];
    wire accum2= !var_pre_first && green_r[3];
    wire [DSP_P_WIDTH-1:0] pout1;
    wire [DSP_P_WIDTH-1:0] pout2;
    wire signed [DTT_IN_WIDTH-1:0] dtt_in_dsp_w = (var_last ?
@@ -205,7 +206,8 @@ module mclt_baeyer_fold_accum_rgb # (
        .rst  (rst),           // input
        .dly  (4'h1),          // input[3:0] 
//        .din  (pix_sgn[1]),    // input[0:0] 
        .din  (green_r[0]? pix_sgn[1]:pix_sgn[0]),    // input[0:0] 
//        .din  (green_r[0]? pix_sgn[1]:pix_sgn[0]),    // input[0:0] 
        .din  (green_r[1]? pix_sgn[1]:pix_sgn[0]),    // input[0:0] 
        .dout (neg_m2)         // output[0:0] 
    );

+204 −64

File changed.

Preview size limit exceeded, changes collapsed.

Loading