data/full_repos/permissive/503973366/NOT_USE/NOT_USE_HW/etc/PE_not_use.v
1: b'%Error: data/full_repos/permissive/503973366/NOT_USE/NOT_USE_HW/etc/PE_not_use.v:46: Cannot find file containing module: \'DFF\'\n    DFF  #( .DATA_WIDTH(1) ) Weight_en_buf  ( .clk(clk), .rst_n(rst_n), .en(\'b1), .d(weight_en_i), .q(weight_en_w) );\n    ^~~\n        ... Looked in:\n             data/full_repos/permissive/503973366/NOT_USE/NOT_USE_HW/etc,data/full_repos/permissive/503973366/DFF\n             data/full_repos/permissive/503973366/NOT_USE/NOT_USE_HW/etc,data/full_repos/permissive/503973366/DFF.v\n             data/full_repos/permissive/503973366/NOT_USE/NOT_USE_HW/etc,data/full_repos/permissive/503973366/DFF.sv\n             DFF\n             DFF.v\n             DFF.sv\n             obj_dir/DFF\n             obj_dir/DFF.v\n             obj_dir/DFF.sv\n%Error: data/full_repos/permissive/503973366/NOT_USE/NOT_USE_HW/etc/PE_not_use.v:47: Cannot find file containing module: \'DFF\'\n    DFF  #( .DATA_WIDTH(1) ) Ifmap_en_buf   ( .clk(clk), .rst_n(rst_n), .en(\'b1), .d(ifmap_en_i),  .q(ifmap_en_w)  );\n    ^~~\n%Error: data/full_repos/permissive/503973366/NOT_USE/NOT_USE_HW/etc/PE_not_use.v:48: Cannot find file containing module: \'DFF\'\n    DFF  #( .DATA_WIDTH(1) ) Psum_en_buf    ( .clk(clk), .rst_n(rst_n), .en(\'b1), .d(psum_en_i),   .q(psum_en_w)   );\n    ^~~\n%Error: data/full_repos/permissive/503973366/NOT_USE/NOT_USE_HW/etc/PE_not_use.v:51: Cannot find file containing module: \'DFF\'\n    DFF  #( .DATA_WIDTH(DATA_WIDTH) ) Weight_Reg    ( .clk(clk), .rst_n(rst_n), .en(weight_en_i),   .d(weight_i),   .q(weight_w) );\n    ^~~\n%Error: data/full_repos/permissive/503973366/NOT_USE/NOT_USE_HW/etc/PE_not_use.v:52: Cannot find file containing module: \'DFF\'\n    DFF  #( .DATA_WIDTH(DATA_WIDTH) ) Ifmap_Reg     ( .clk(clk), .rst_n(rst_n), .en(ifmap_en_i),    .d(ifmap_i),    .q(ifmap_w)  );\n    ^~~\n%Error: data/full_repos/permissive/503973366/NOT_USE/NOT_USE_HW/etc/PE_not_use.v:53: Cannot find file containing module: \'DFF\'\n    DFF  #( .DATA_WIDTH(PSUM_WIDTH) ) Psum_Reg      ( .clk(clk), .rst_n(rst_n), .en(psum_en_i),     .d(psum_i),     .q(psum_w)   );\n    ^~~\n%Error: data/full_repos/permissive/503973366/NOT_USE/NOT_USE_HW/etc/PE_not_use.v:59: Cannot find file containing module: \'DFF\'\n    DFF  #( .DATA_WIDTH(DATA_WIDTH*2) ) Product_Reg ( .clk(clk), .rst_n(rst_n), .en(\'b1), .d(product_w), .q(product_temp) );    \n    ^~~\n%Warning-WIDTH: data/full_repos/permissive/503973366/NOT_USE/NOT_USE_HW/etc/PE_not_use.v:62: Operator ADD expects 32 bits on the LHS, but LHS\'s VARREF \'product_temp\' generates 16 bits.\n                                                                                           : ... In instance PE_NOT_USE\n    assign psum_o = product_temp + psum_w;\n                                 ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: Exiting due to 7 error(s), 1 warning(s)\n'
module PE_NOT_USE #(

    parameter DATA_WIDTH = 8,
    parameter PSUM_WIDTH = 32
    )
    (

    input   clk,
    input   rst_n,
    

    input   [DATA_WIDTH-1:0]    weight_i,
    input   [DATA_WIDTH-1:0]    ifmap_i,
    input   [PSUM_WIDTH-1:0]    psum_i,
    

    input                       weight_en_i,
    input                       ifmap_en_i,
    input                       psum_en_i,
    

    output  [DATA_WIDTH-1:0]    weight_o,
    output  [DATA_WIDTH-1:0]    ifmap_o,
    output  [PSUM_WIDTH-1:0]    psum_o,


    output                      weight_en_o,
    output                      ifmap_en_o,
    output                      psum_en_o
    );
    

    wire    [DATA_WIDTH-1:0]        weight_w;
    wire    [DATA_WIDTH-1:0]        ifmap_w;
    wire    [PSUM_WIDTH-1:0]        psum_w;
    wire    [(DATA_WIDTH*2)-1:0]    product_w;
    wire    [(DATA_WIDTH*2)-1:0]    product_temp;
    
    wire                            weight_en_w;
    wire                            ifmap_en_w;
    wire                            psum_en_w;
    



    DFF  #( .DATA_WIDTH(1) ) Weight_en_buf  ( .clk(clk), .rst_n(rst_n), .en('b1), .d(weight_en_i), .q(weight_en_w) );
    DFF  #( .DATA_WIDTH(1) ) Ifmap_en_buf   ( .clk(clk), .rst_n(rst_n), .en('b1), .d(ifmap_en_i),  .q(ifmap_en_w)  );
    DFF  #( .DATA_WIDTH(1) ) Psum_en_buf    ( .clk(clk), .rst_n(rst_n), .en('b1), .d(psum_en_i),   .q(psum_en_w)   );
    

    DFF  #( .DATA_WIDTH(DATA_WIDTH) ) Weight_Reg    ( .clk(clk), .rst_n(rst_n), .en(weight_en_i),   .d(weight_i),   .q(weight_w) );
    DFF  #( .DATA_WIDTH(DATA_WIDTH) ) Ifmap_Reg     ( .clk(clk), .rst_n(rst_n), .en(ifmap_en_i),    .d(ifmap_i),    .q(ifmap_w)  );
    DFF  #( .DATA_WIDTH(PSUM_WIDTH) ) Psum_Reg      ( .clk(clk), .rst_n(rst_n), .en(psum_en_i),     .d(psum_i),     .q(psum_w)   );



    assign product_w = ifmap_i * weight_w;

    DFF  #( .DATA_WIDTH(DATA_WIDTH*2) ) Product_Reg ( .clk(clk), .rst_n(rst_n), .en('b1), .d(product_w), .q(product_temp) );    


    assign psum_o = product_temp + psum_w;


    assign weight_o = weight_w;
    assign ifmap_o  = ifmap_w;
    

    assign weight_en_o  = weight_en_w;
    assign ifmap_en_o   = ifmap_en_w;
    assign psum_en_o    = psum_en_w;

endmodule
module PE_NOT_USE #(

    parameter DATA_WIDTH = 8,
    parameter PSUM_WIDTH = 32
    )
    (

    input   clk,
    input   rst_n,
    

    input   [DATA_WIDTH-1:0]    weight_i,
    input   [DATA_WIDTH-1:0]    ifmap_i,
    input   [PSUM_WIDTH-1:0]    psum_i,
    

    input                       weight_en_i,
    input                       ifmap_en_i,
    input                       psum_en_i,
    

    output  [DATA_WIDTH-1:0]    weight_o,
    output  [DATA_WIDTH-1:0]    ifmap_o,
    output  [PSUM_WIDTH-1:0]    psum_o,


    output                      weight_en_o,
    output                      ifmap_en_o,
    output                      psum_en_o
    );

    

    wire    [DATA_WIDTH-1:0]        weight_w;
    wire    [DATA_WIDTH-1:0]        ifmap_w;
    wire    [PSUM_WIDTH-1:0]        psum_w;
    wire    [(DATA_WIDTH*2)-1:0]    product_w;
    wire    [(DATA_WIDTH*2)-1:0]    product_temp;
    
    wire                            weight_en_w;
    wire                            ifmap_en_w;
    wire                            psum_en_w;
    



    DFF  #( .DATA_WIDTH(1) ) Weight_en_buf  ( .clk(clk), .rst_n(rst_n), .en('b1), .d(weight_en_i), .q(weight_en_w) );
    DFF  #( .DATA_WIDTH(1) ) Ifmap_en_buf   ( .clk(clk), .rst_n(rst_n), .en('b1), .d(ifmap_en_i),  .q(ifmap_en_w)  );
    DFF  #( .DATA_WIDTH(1) ) Psum_en_buf    ( .clk(clk), .rst_n(rst_n), .en('b1), .d(psum_en_i),   .q(psum_en_w)   );
    

    DFF  #( .DATA_WIDTH(DATA_WIDTH) ) Weight_Reg    ( .clk(clk), .rst_n(rst_n), .en(weight_en_i),   .d(weight_i),   .q(weight_w) );
    DFF  #( .DATA_WIDTH(DATA_WIDTH) ) Ifmap_Reg     ( .clk(clk), .rst_n(rst_n), .en(ifmap_en_i),    .d(ifmap_i),    .q(ifmap_w)  );
    DFF  #( .DATA_WIDTH(PSUM_WIDTH) ) Psum_Reg      ( .clk(clk), .rst_n(rst_n), .en(psum_en_i),     .d(psum_i),     .q(psum_w)   );



    assign product_w = ifmap_i * weight_w;

    DFF  #( .DATA_WIDTH(DATA_WIDTH*2) ) Product_Reg ( .clk(clk), .rst_n(rst_n), .en('b1), .d(product_w), .q(product_temp) );    


    assign psum_o = product_temp + psum_w;


    assign weight_o = weight_w;
    assign ifmap_o  = ifmap_w;
    

    assign weight_en_o  = weight_en_w;
    assign ifmap_en_o   = ifmap_en_w;
    assign psum_en_o    = psum_en_w;

endmodule