data/full_repos/permissive/489994352/Image-Part/conv1v2.v
1: b'%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:86: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf1.txt")) PE1 (\n^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/489994352/Image-Part,data/full_repos/permissive/489994352/conv2d3x3\n             data/full_repos/permissive/489994352/Image-Part,data/full_repos/permissive/489994352/conv2d3x3.v\n             data/full_repos/permissive/489994352/Image-Part,data/full_repos/permissive/489994352/conv2d3x3.sv\n             conv2d3x3\n             conv2d3x3.v\n             conv2d3x3.sv\n             obj_dir/conv2d3x3\n             obj_dir/conv2d3x3.v\n             obj_dir/conv2d3x3.sv\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:105: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf2.txt")) PE2 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:124: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf3.txt")) PE3 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:143: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf4.txt")) PE4 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:162: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf5.txt")) PE5 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:181: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf6.txt")) PE6 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:200: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf7.txt")) PE7 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:219: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf8.txt")) PE8 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:238: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf9.txt")) PE9 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:257: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf10.txt")) PE10 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:276: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf11.txt")) PE11 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:295: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf12.txt")) PE12 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:314: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf13.txt")) PE13 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:333: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf14.txt")) PE14 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:352: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf15.txt")) PE15 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:371: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf16.txt")) PE16 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:390: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf17.txt")) PE17 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:409: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf18.txt")) PE18 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:428: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf19.txt")) PE19 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:447: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf20.txt")) PE20 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:466: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf21.txt")) PE21 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:485: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf22.txt")) PE22 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:504: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf23.txt")) PE23 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:523: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf24.txt")) PE24 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:542: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf25.txt")) PE25 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:561: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf26.txt")) PE26 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:580: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf27.txt")) PE27 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:599: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf28.txt")) PE28 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:618: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf29.txt")) PE29 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:637: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf30.txt")) PE30 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:656: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf31.txt")) PE31 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:675: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf32.txt")) PE32 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:694: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf33.txt")) PE33 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:713: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf34.txt")) PE34 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:732: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf35.txt")) PE35 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:751: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf36.txt")) PE36 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:770: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf37.txt")) PE37 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:789: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf38.txt")) PE38 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:808: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf39.txt")) PE39 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:827: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf40.txt")) PE40 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:846: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf41.txt")) PE41 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:865: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf42.txt")) PE42 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:884: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf43.txt")) PE43 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:903: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf44.txt")) PE44 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:922: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf45.txt")) PE45 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:941: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf46.txt")) PE46 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:960: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf47.txt")) PE47 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:979: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf48.txt")) PE48 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:998: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf49.txt")) PE49 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/489994352/Image-Part/conv1v2.v:1017: Cannot find file containing module: \'conv2d3x3\'\nconv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf50.txt")) PE50 (\n^~~~~~~~~\n%Error: Exiting due to too many errors encountered; --error-limit=50\n'
module conv1v2(clk, rst, i_data_valid, imgdata, output_imw, o_convolved_data_valid);
input clk, rst, i_data_valid;
reg [31:0] biases [0:63];

initial begin
$readmemh("sqnetparams/conv1/biases.txt",biases);
end

wire [16-1:0] output_im [0:64-1];
output reg [16*64-1:0] output_imw;
integer i;
always @(*)
    for (i=0; i<64; i=i+1)
        output_imw[i*16+:16]=output_im[i];

input [16*9*3-1:0] imgdata;
reg [16-1:0] imgdatamem [9*3-1:0];
always @(*)
begin
for (i=0; i<27; i=i+1)
    imgdatamem[i]<=imgdata[i*16+:16];
end
reg [15:0] imgdata1, imgdata2, imgdata3,
            imgdata4, imgdata5, imgdata6,
            imgdata7, imgdata8, imgdata9;

reg [1:0] currentRdChBuffer;

always @(posedge clk)
begin
    if(rst)
    begin
        currentRdChBuffer <= 0;
    end
    else
    begin
        if(currentRdChBuffer == 2'b10)
            currentRdChBuffer <= 2'b00;
        else
            currentRdChBuffer <= currentRdChBuffer + 2'b01;
    end
end

always @(*)
begin
    case (currentRdChBuffer)
    2'b00: begin
    imgdata1 <= imgdatamem[0];
    imgdata2 <= imgdatamem[1];
    imgdata3 <= imgdatamem[2];
    imgdata4 <= imgdatamem[3];
    imgdata5 <= imgdatamem[4];
    imgdata6 <= imgdatamem[5];
    imgdata7 <= imgdatamem[6];
    imgdata8 <= imgdatamem[7];
    imgdata9 <= imgdatamem[8];
    end
    2'b01: begin
    imgdata1 <= imgdatamem[9];
    imgdata2 <= imgdatamem[10];
    imgdata3 <= imgdatamem[11];
    imgdata4 <= imgdatamem[12];
    imgdata5 <= imgdatamem[13];
    imgdata6 <= imgdatamem[14];
    imgdata7 <= imgdatamem[15];
    imgdata8 <= imgdatamem[16];
    imgdata9 <= imgdatamem[17];
    end
    2'b10: begin
    imgdata1 <= imgdatamem[18];
    imgdata2 <= imgdatamem[19];
    imgdata3 <= imgdatamem[20];
    imgdata4 <= imgdatamem[21];
    imgdata5 <= imgdatamem[22];
    imgdata6 <= imgdatamem[23];
    imgdata7 <= imgdatamem[24];
    imgdata8 <= imgdatamem[25];
    imgdata9 <= imgdatamem[26];
    end
    endcase
end
output o_convolved_data_valid;
wire [64-1:0] convolved_data_valid;
assign o_convolved_data_valid = &convolved_data_valid;

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf1.txt")) PE1 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[0]),
        .bias(biases[0]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[0])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf2.txt")) PE2 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[1]),
        .bias(biases[1]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[1])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf3.txt")) PE3 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[2]),
        .bias(biases[2]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[2])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf4.txt")) PE4 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[3]),
        .bias(biases[3]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[3])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf5.txt")) PE5 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[4]),
        .bias(biases[4]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[4])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf6.txt")) PE6 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[5]),
        .bias(biases[5]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[5])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf7.txt")) PE7 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[6]),
        .bias(biases[6]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[6])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf8.txt")) PE8 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[7]),
        .bias(biases[7]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[7])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf9.txt")) PE9 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[8]),
        .bias(biases[8]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[8])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf10.txt")) PE10 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[9]),
        .bias(biases[9]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[9])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf11.txt")) PE11 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[10]),
        .bias(biases[10]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[10])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf12.txt")) PE12 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[11]),
        .bias(biases[11]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[11])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf13.txt")) PE13 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[12]),
        .bias(biases[12]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[12])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf14.txt")) PE14 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[13]),
        .bias(biases[13]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[13])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf15.txt")) PE15 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[14]),
        .bias(biases[14]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[14])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf16.txt")) PE16 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[15]),
        .bias(biases[15]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[15])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf17.txt")) PE17 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[16]),
        .bias(biases[16]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[16])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf18.txt")) PE18 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[17]),
        .bias(biases[17]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[17])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf19.txt")) PE19 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[18]),
        .bias(biases[18]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[18])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf20.txt")) PE20 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[19]),
        .bias(biases[19]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[19])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf21.txt")) PE21 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[20]),
        .bias(biases[20]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[20])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf22.txt")) PE22 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[21]),
        .bias(biases[21]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[21])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf23.txt")) PE23 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[22]),
        .bias(biases[22]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[22])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf24.txt")) PE24 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[23]),
        .bias(biases[23]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[23])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf25.txt")) PE25 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[24]),
        .bias(biases[24]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[24])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf26.txt")) PE26 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[25]),
        .bias(biases[25]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[25])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf27.txt")) PE27 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[26]),
        .bias(biases[26]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[26])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf28.txt")) PE28 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[27]),
        .bias(biases[27]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[27])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf29.txt")) PE29 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[28]),
        .bias(biases[28]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[28])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf30.txt")) PE30 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[29]),
        .bias(biases[29]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[29])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf31.txt")) PE31 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[30]),
        .bias(biases[30]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[30])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf32.txt")) PE32 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[31]),
        .bias(biases[31]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[31])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf33.txt")) PE33 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[32]),
        .bias(biases[32]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[32])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf34.txt")) PE34 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[33]),
        .bias(biases[33]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[33])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf35.txt")) PE35 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[34]),
        .bias(biases[34]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[34])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf36.txt")) PE36 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[35]),
        .bias(biases[35]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[35])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf37.txt")) PE37 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[36]),
        .bias(biases[36]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[36])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf38.txt")) PE38 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[37]),
        .bias(biases[37]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[37])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf39.txt")) PE39 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[38]),
        .bias(biases[38]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[38])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf40.txt")) PE40 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[39]),
        .bias(biases[39]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[39])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf41.txt")) PE41 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[40]),
        .bias(biases[40]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[40])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf42.txt")) PE42 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[41]),
        .bias(biases[41]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[41])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf43.txt")) PE43 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[42]),
        .bias(biases[42]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[42])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf44.txt")) PE44 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[43]),
        .bias(biases[43]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[43])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf45.txt")) PE45 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[44]),
        .bias(biases[44]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[44])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf46.txt")) PE46 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[45]),
        .bias(biases[45]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[45])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf47.txt")) PE47 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[46]),
        .bias(biases[46]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[46])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf48.txt")) PE48 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[47]),
        .bias(biases[47]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[47])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf49.txt")) PE49 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[48]),
        .bias(biases[48]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[48])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf50.txt")) PE50 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[49]),
        .bias(biases[49]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[49])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf51.txt")) PE51 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[50]),
        .bias(biases[50]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[50])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf52.txt")) PE52 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[51]),
        .bias(biases[51]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[51])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf53.txt")) PE53 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[52]),
        .bias(biases[52]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[52])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf54.txt")) PE54 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[53]),
        .bias(biases[53]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[53])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf55.txt")) PE55 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[54]),
        .bias(biases[54]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[54])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf56.txt")) PE56 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[55]),
        .bias(biases[55]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[55])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf57.txt")) PE57 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[56]),
        .bias(biases[56]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[56])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf58.txt")) PE58 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[57]),
        .bias(biases[57]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[57])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf59.txt")) PE59 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[58]),
        .bias(biases[58]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[58])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf60.txt")) PE60 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[59]),
        .bias(biases[59]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[59])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf61.txt")) PE61 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[60]),
        .bias(biases[60]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[60])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf62.txt")) PE62 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[61]),
        .bias(biases[61]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[61])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf63.txt")) PE63 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[62]),
        .bias(biases[62]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[62])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf64.txt")) PE64 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[63]),
        .bias(biases[63]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[63])
    );

endmodule
module conv1v2(clk, rst, i_data_valid, imgdata, output_imw, o_convolved_data_valid);

input clk, rst, i_data_valid;
reg [31:0] biases [0:63];

initial begin
$readmemh("sqnetparams/conv1/biases.txt",biases);
end

wire [16-1:0] output_im [0:64-1];
output reg [16*64-1:0] output_imw;
integer i;
always @(*)
    for (i=0; i<64; i=i+1)
        output_imw[i*16+:16]=output_im[i];

input [16*9*3-1:0] imgdata;
reg [16-1:0] imgdatamem [9*3-1:0];
always @(*)
begin
for (i=0; i<27; i=i+1)
    imgdatamem[i]<=imgdata[i*16+:16];
end
reg [15:0] imgdata1, imgdata2, imgdata3,
            imgdata4, imgdata5, imgdata6,
            imgdata7, imgdata8, imgdata9;

reg [1:0] currentRdChBuffer;

always @(posedge clk)
begin
    if(rst)
    begin
        currentRdChBuffer <= 0;
    end
    else
    begin
        if(currentRdChBuffer == 2'b10)
            currentRdChBuffer <= 2'b00;
        else
            currentRdChBuffer <= currentRdChBuffer + 2'b01;
    end
end

always @(*)
begin
    case (currentRdChBuffer)
    2'b00: begin
    imgdata1 <= imgdatamem[0];
    imgdata2 <= imgdatamem[1];
    imgdata3 <= imgdatamem[2];
    imgdata4 <= imgdatamem[3];
    imgdata5 <= imgdatamem[4];
    imgdata6 <= imgdatamem[5];
    imgdata7 <= imgdatamem[6];
    imgdata8 <= imgdatamem[7];
    imgdata9 <= imgdatamem[8];
    end
    2'b01: begin
    imgdata1 <= imgdatamem[9];
    imgdata2 <= imgdatamem[10];
    imgdata3 <= imgdatamem[11];
    imgdata4 <= imgdatamem[12];
    imgdata5 <= imgdatamem[13];
    imgdata6 <= imgdatamem[14];
    imgdata7 <= imgdatamem[15];
    imgdata8 <= imgdatamem[16];
    imgdata9 <= imgdatamem[17];
    end
    2'b10: begin
    imgdata1 <= imgdatamem[18];
    imgdata2 <= imgdatamem[19];
    imgdata3 <= imgdatamem[20];
    imgdata4 <= imgdatamem[21];
    imgdata5 <= imgdatamem[22];
    imgdata6 <= imgdatamem[23];
    imgdata7 <= imgdatamem[24];
    imgdata8 <= imgdatamem[25];
    imgdata9 <= imgdatamem[26];
    end
    endcase
end
output o_convolved_data_valid;
wire [64-1:0] convolved_data_valid;
assign o_convolved_data_valid = &convolved_data_valid;

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf1.txt")) PE1 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[0]),
        .bias(biases[0]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[0])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf2.txt")) PE2 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[1]),
        .bias(biases[1]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[1])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf3.txt")) PE3 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[2]),
        .bias(biases[2]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[2])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf4.txt")) PE4 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[3]),
        .bias(biases[3]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[3])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf5.txt")) PE5 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[4]),
        .bias(biases[4]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[4])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf6.txt")) PE6 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[5]),
        .bias(biases[5]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[5])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf7.txt")) PE7 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[6]),
        .bias(biases[6]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[6])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf8.txt")) PE8 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[7]),
        .bias(biases[7]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[7])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf9.txt")) PE9 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[8]),
        .bias(biases[8]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[8])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf10.txt")) PE10 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[9]),
        .bias(biases[9]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[9])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf11.txt")) PE11 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[10]),
        .bias(biases[10]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[10])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf12.txt")) PE12 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[11]),
        .bias(biases[11]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[11])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf13.txt")) PE13 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[12]),
        .bias(biases[12]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[12])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf14.txt")) PE14 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[13]),
        .bias(biases[13]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[13])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf15.txt")) PE15 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[14]),
        .bias(biases[14]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[14])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf16.txt")) PE16 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[15]),
        .bias(biases[15]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[15])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf17.txt")) PE17 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[16]),
        .bias(biases[16]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[16])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf18.txt")) PE18 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[17]),
        .bias(biases[17]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[17])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf19.txt")) PE19 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[18]),
        .bias(biases[18]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[18])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf20.txt")) PE20 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[19]),
        .bias(biases[19]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[19])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf21.txt")) PE21 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[20]),
        .bias(biases[20]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[20])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf22.txt")) PE22 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[21]),
        .bias(biases[21]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[21])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf23.txt")) PE23 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[22]),
        .bias(biases[22]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[22])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf24.txt")) PE24 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[23]),
        .bias(biases[23]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[23])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf25.txt")) PE25 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[24]),
        .bias(biases[24]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[24])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf26.txt")) PE26 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[25]),
        .bias(biases[25]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[25])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf27.txt")) PE27 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[26]),
        .bias(biases[26]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[26])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf28.txt")) PE28 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[27]),
        .bias(biases[27]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[27])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf29.txt")) PE29 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[28]),
        .bias(biases[28]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[28])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf30.txt")) PE30 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[29]),
        .bias(biases[29]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[29])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf31.txt")) PE31 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[30]),
        .bias(biases[30]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[30])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf32.txt")) PE32 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[31]),
        .bias(biases[31]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[31])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf33.txt")) PE33 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[32]),
        .bias(biases[32]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[32])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf34.txt")) PE34 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[33]),
        .bias(biases[33]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[33])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf35.txt")) PE35 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[34]),
        .bias(biases[34]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[34])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf36.txt")) PE36 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[35]),
        .bias(biases[35]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[35])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf37.txt")) PE37 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[36]),
        .bias(biases[36]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[36])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf38.txt")) PE38 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[37]),
        .bias(biases[37]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[37])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf39.txt")) PE39 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[38]),
        .bias(biases[38]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[38])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf40.txt")) PE40 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[39]),
        .bias(biases[39]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[39])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf41.txt")) PE41 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[40]),
        .bias(biases[40]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[40])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf42.txt")) PE42 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[41]),
        .bias(biases[41]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[41])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf43.txt")) PE43 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[42]),
        .bias(biases[42]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[42])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf44.txt")) PE44 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[43]),
        .bias(biases[43]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[43])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf45.txt")) PE45 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[44]),
        .bias(biases[44]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[44])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf46.txt")) PE46 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[45]),
        .bias(biases[45]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[45])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf47.txt")) PE47 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[46]),
        .bias(biases[46]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[46])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf48.txt")) PE48 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[47]),
        .bias(biases[47]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[47])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf49.txt")) PE49 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[48]),
        .bias(biases[48]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[48])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf50.txt")) PE50 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[49]),
        .bias(biases[49]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[49])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf51.txt")) PE51 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[50]),
        .bias(biases[50]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[50])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf52.txt")) PE52 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[51]),
        .bias(biases[51]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[51])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf53.txt")) PE53 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[52]),
        .bias(biases[52]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[52])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf54.txt")) PE54 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[53]),
        .bias(biases[53]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[53])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf55.txt")) PE55 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[54]),
        .bias(biases[54]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[54])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf56.txt")) PE56 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[55]),
        .bias(biases[55]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[55])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf57.txt")) PE57 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[56]),
        .bias(biases[56]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[56])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf58.txt")) PE58 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[57]),
        .bias(biases[57]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[57])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf59.txt")) PE59 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[58]),
        .bias(biases[58]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[58])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf60.txt")) PE60 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[59]),
        .bias(biases[59]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[59])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf61.txt")) PE61 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[60]),
        .bias(biases[60]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[60])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf62.txt")) PE62 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[61]),
        .bias(biases[61]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[61])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf63.txt")) PE63 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[62]),
        .bias(biases[62]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[62])
    );

conv2d3x3 #(.weightfile("sqnetparams/conv1/weights/conv1wf64.txt")) PE64 (
        .clk(clk),
        .rst(rst),
        .imgdata1(imgdata1),
        .imgdata2(imgdata2),
        .imgdata3(imgdata3),
        .imgdata4(imgdata4),
        .imgdata5(imgdata5),
        .imgdata6(imgdata6),
        .imgdata7(imgdata7),
        .imgdata8(imgdata8),
        .imgdata9(imgdata9),
        .output_im(output_im[63]),
        .bias(biases[63]),
        .i_data_valid(i_data_valid),
        .currentRdChBuffer(currentRdChBuffer),
        .o_convolved_data_valid(convolved_data_valid[63])
    );

endmodule