data/full_repos/permissive/486367830/hdl/comp_mult_wrapper.v
1: b"%Error: data/full_repos/permissive/486367830/hdl/comp_mult_wrapper.v:33: Cannot find file containing module: 'comp_mult_4'\n        comp_mult_4 #(\n        ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/486367830/hdl,data/full_repos/permissive/486367830/comp_mult_4\n             data/full_repos/permissive/486367830/hdl,data/full_repos/permissive/486367830/comp_mult_4.v\n             data/full_repos/permissive/486367830/hdl,data/full_repos/permissive/486367830/comp_mult_4.sv\n             comp_mult_4\n             comp_mult_4.v\n             comp_mult_4.sv\n             obj_dir/comp_mult_4\n             obj_dir/comp_mult_4.v\n             obj_dir/comp_mult_4.sv\n%Error: Exiting due to 1 error(s)\n"
module comp_mult_wrapper #(
parameter DWIDTH  = 8 ,
parameter NO_MULT = 4
)(

input                          clk      ,
input                          rst_n    ,
input                          sw_rst   ,
                                          

input                          op_val   ,
output                         op_rdy   ,
input  [      2*2*DWIDTH -1:0] op_data  ,
                                          

output                         res_val  ,
input                          res_rdy  ,
output [2*2*(DWIDTH + 1) -1:0] res_data
); 

generate 
    if(NO_MULT == 4) begin : GEN_4_MULTS
        comp_mult_4 #(
        .DWIDTH (DWIDTH)
        )i_comp_mult_4 (
        .clk      (clk      ),
        .rst_n    (rst_n    ),
        .sw_rst   (sw_rst   ),
        .op_val   (op_val   ),
        .op_rdy   (op_rdy   ),
        .op_data  (op_data  ),
        .res_val  (res_val  ),
        .res_rdy  (res_rdy  ),
        .res_data (res_data )
        ); 
    end
    else if(NO_MULT == 2) begin : GEN_2_MULTS
        comp_mult_2 #(
        .DWIDTH (DWIDTH)
        )i_comp_mult_2 (
        .clk      (clk      ),
        .rst_n    (rst_n    ),
        .sw_rst   (sw_rst   ),
        .op_val   (op_val   ),
        .op_rdy   (op_rdy   ),
        .op_data  (op_data  ),
        .res_val  (res_val  ),
        .res_rdy  (res_rdy  ),
        .res_data (res_data )
        ); 
    end else if(NO_MULT == 1) begin : GEN_1_MULT
        comp_mult_1 #(
        .DWIDTH (DWIDTH)
        )i_comp_mult_1 (
        .clk      (clk      ),
        .rst_n    (rst_n    ),
        .sw_rst   (sw_rst   ),
        .op_val   (op_val   ),
        .op_rdy   (op_rdy   ),
        .op_data  (op_data  ),
        .res_val  (res_val  ),
        .res_rdy  (res_rdy  ),
        .res_data (res_data )
        ); 
    end
    else begin : ERROR
        initial begin 
            $display("%M ERROR: Invalid number of multipliers, NO_MULT should be 1, 2 or 4 \n");
            $stop;
        end 
    end 
endgenerate 
 



endmodule
module comp_mult_wrapper #(
parameter DWIDTH  = 8 ,
parameter NO_MULT = 4
)(

input                          clk      ,
input                          rst_n    ,
input                          sw_rst   ,
                                          

input                          op_val   ,
output                         op_rdy   ,
input  [      2*2*DWIDTH -1:0] op_data  ,
                                          

output                         res_val  ,
input                          res_rdy  ,
output [2*2*(DWIDTH + 1) -1:0] res_data
);
 

generate 
    if(NO_MULT == 4) begin : GEN_4_MULTS
        comp_mult_4 #(
        .DWIDTH (DWIDTH)
        )i_comp_mult_4 (
        .clk      (clk      ),
        .rst_n    (rst_n    ),
        .sw_rst   (sw_rst   ),
        .op_val   (op_val   ),
        .op_rdy   (op_rdy   ),
        .op_data  (op_data  ),
        .res_val  (res_val  ),
        .res_rdy  (res_rdy  ),
        .res_data (res_data )
        ); 
    end
    else if(NO_MULT == 2) begin : GEN_2_MULTS
        comp_mult_2 #(
        .DWIDTH (DWIDTH)
        )i_comp_mult_2 (
        .clk      (clk      ),
        .rst_n    (rst_n    ),
        .sw_rst   (sw_rst   ),
        .op_val   (op_val   ),
        .op_rdy   (op_rdy   ),
        .op_data  (op_data  ),
        .res_val  (res_val  ),
        .res_rdy  (res_rdy  ),
        .res_data (res_data )
        ); 
    end else if(NO_MULT == 1) begin : GEN_1_MULT
        comp_mult_1 #(
        .DWIDTH (DWIDTH)
        )i_comp_mult_1 (
        .clk      (clk      ),
        .rst_n    (rst_n    ),
        .sw_rst   (sw_rst   ),
        .op_val   (op_val   ),
        .op_rdy   (op_rdy   ),
        .op_data  (op_data  ),
        .res_val  (res_val  ),
        .res_rdy  (res_rdy  ),
        .res_data (res_data )
        ); 
    end
    else begin : ERROR
        initial begin 
            $display("%M ERROR: Invalid number of multipliers, NO_MULT should be 1, 2 or 4 \n");
            $stop;
        end 
    end 
endgenerate 
 



endmodule