data/full_repos/permissive/446128190/rtl/Bitlet_Calculator.v
1: b'%Error: data/full_repos/permissive/446128190/rtl/Bitlet_Calculator.v:12: Cannot find include file: Bitlet_Defs.vh\n`include "Bitlet_Defs.vh" \n         ^~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/446128190/rtl,data/full_repos/permissive/446128190/Bitlet_Defs.vh\n             data/full_repos/permissive/446128190/rtl,data/full_repos/permissive/446128190/Bitlet_Defs.vh.v\n             data/full_repos/permissive/446128190/rtl,data/full_repos/permissive/446128190/Bitlet_Defs.vh.sv\n             Bitlet_Defs.vh\n             Bitlet_Defs.vh.v\n             Bitlet_Defs.vh.sv\n             obj_dir/Bitlet_Defs.vh\n             obj_dir/Bitlet_Defs.vh.v\n             obj_dir/Bitlet_Defs.vh.sv\n%Error: data/full_repos/permissive/446128190/rtl/Bitlet_Calculator.v:22: Define or directive not defined: \'`Max_quant\'\n    input   [`Max_quant-1:0]        prune,\n             ^~~~~~~~~~\n%Error: data/full_repos/permissive/446128190/rtl/Bitlet_Calculator.v:25: Define or directive not defined: \'`Wid_abs\'\n    input   [N_total*`Wid_abs-1:0]  Wabs_vec,\n                     ^~~~~~~~\n%Error: data/full_repos/permissive/446128190/rtl/Bitlet_Calculator.v:26: Define or directive not defined: \'`Wid_fix\'\n    input   [N_total*`Wid_fix-1:0]  Afix_vec,\n                     ^~~~~~~~\n%Error: data/full_repos/permissive/446128190/rtl/Bitlet_Calculator.v:28: Define or directive not defined: \'`Wid_acc\'\n    output  [`Wid_acc-1:0]          Aacc\n             ^~~~~~~~\n%Error: data/full_repos/permissive/446128190/rtl/Bitlet_Calculator.v:33: Define or directive not defined: \'`N_channel\'\nwire    [`N_channel*`Wid_fix-1:0]   Asel_vec;\n         ^~~~~~~~~~\n%Error: data/full_repos/permissive/446128190/rtl/Bitlet_Calculator.v:33: syntax error, unexpected \'*\', expecting TYPE-IDENTIFIER\nwire    [`N_channel*`Wid_fix-1:0]   Asel_vec;\n                   ^\n%Error: data/full_repos/permissive/446128190/rtl/Bitlet_Calculator.v:33: Define or directive not defined: \'`Wid_fix\'\nwire    [`N_channel*`Wid_fix-1:0]   Asel_vec;\n                    ^~~~~~~~\n%Error: Exiting due to 8 error(s)\n'
module Bitlet_Calculator
#(
    parameter   N_total = 64
)
(
    input                           clk,
    input                           rst_n,
    input   [$clog2(N_total)-1:0]   N_calculate,
    input   [`Max_quant-1:0]        prune,
    input                           flush,
    input                           Wabs_vld,
    input   [N_total*`Wid_abs-1:0]  Wabs_vec,
    input   [N_total*`Wid_fix-1:0]  Afix_vec,
    output                          Aacc_vld,
    output  [`Wid_acc-1:0]          Aacc
);


wire                                Asel_vld;
wire    [`N_channel*`Wid_fix-1:0]   Asel_vec;

Bitlet_CE #(.N_total(N_total)) UBCE
(
    .clk(clk),
    .rst_n(rst_n),
    .N_calculate(N_calculate),
    .prune(prune),
    .flush(flush),
    .Wabs_vld(Wabs_vld),
    .Wabs_vec(Wabs_vec),
    .Afix_vec(Afix_vec),
    .Asel_vld(Asel_vld),
    .Asel_vec(Asel_vec)
);


Bitlet_Accumulator UACCUMULATOR
(
    .clk(clk),
    .rst_n(rst_n),
    .flush(flush),
    .Asel_vld(Asel_vld),
    .Asel_vec(Asel_vec),
    .Aacc_vld(Aacc_vld),
    .Aacc(Aacc)
);

endmodule
module Bitlet_Calculator
#(
    parameter   N_total = 64
)
(
    input                           clk,
    input                           rst_n,
    input   [$clog2(N_total)-1:0]   N_calculate,
    input   [`Max_quant-1:0]        prune,
    input                           flush,
    input                           Wabs_vld,
    input   [N_total*`Wid_abs-1:0]  Wabs_vec,
    input   [N_total*`Wid_fix-1:0]  Afix_vec,
    output                          Aacc_vld,
    output  [`Wid_acc-1:0]          Aacc
);



wire                                Asel_vld;
wire    [`N_channel*`Wid_fix-1:0]   Asel_vec;

Bitlet_CE #(.N_total(N_total)) UBCE
(
    .clk(clk),
    .rst_n(rst_n),
    .N_calculate(N_calculate),
    .prune(prune),
    .flush(flush),
    .Wabs_vld(Wabs_vld),
    .Wabs_vec(Wabs_vec),
    .Afix_vec(Afix_vec),
    .Asel_vld(Asel_vld),
    .Asel_vec(Asel_vec)
);


Bitlet_Accumulator UACCUMULATOR
(
    .clk(clk),
    .rst_n(rst_n),
    .flush(flush),
    .Asel_vld(Asel_vld),
    .Asel_vec(Asel_vec),
    .Aacc_vld(Aacc_vld),
    .Aacc(Aacc)
);

endmodule