data/full_repos/permissive/503053625/fpga_projects/new_spgd/src/custom_gen/custom_gen_mult.v
1: b"%Error: data/full_repos/permissive/503053625/fpga_projects/new_spgd/src/custom_gen/custom_gen_mult.v:31: Cannot find file containing module: 'gen_mult'\n gen_mult #(.DATA_WIDTH(DATA_WIDTH)) MULT1 (.a(a), .b(b), .p(int_p));\n ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/503053625/fpga_projects/new_spgd/src/custom_gen,data/full_repos/permissive/503053625/gen_mult\n             data/full_repos/permissive/503053625/fpga_projects/new_spgd/src/custom_gen,data/full_repos/permissive/503053625/gen_mult.v\n             data/full_repos/permissive/503053625/fpga_projects/new_spgd/src/custom_gen,data/full_repos/permissive/503053625/gen_mult.sv\n             gen_mult\n             gen_mult.v\n             gen_mult.sv\n             obj_dir/gen_mult\n             obj_dir/gen_mult.v\n             obj_dir/gen_mult.sv\n%Error: Exiting due to 1 error(s)\n"
module custom_gen_mult
#(
	parameter DATA_WIDTH = 64,
	parameter OUT_WIDTH = DATA_WIDTH,
	parameter INT_WIDTH = 16,
	parameter BIT_SHIFT = 0,
	parameter DEC_FORMAT = 0,
	parameter INT_FORMAT = 0
)
(
	input  [DATA_WIDTH - 1 : 0] a,
	input  [DATA_WIDTH - 1 : 0] b,
	output [OUT_WIDTH - 1 : 0] p
);
	wire [DATA_WIDTH + DATA_WIDTH - 1:0] int_p;

	assign p = int_p[((DATA_WIDTH*2-1-INT_WIDTH)+BIT_SHIFT)-INT_FORMAT : ((DATA_WIDTH-INT_WIDTH)+BIT_SHIFT)+DEC_FORMAT];
       
	gen_mult #(.DATA_WIDTH(DATA_WIDTH)) MULT1 (.a(a), .b(b), .p(int_p));
endmodule
module custom_gen_mult
#(
	parameter DATA_WIDTH = 64,
	parameter OUT_WIDTH = DATA_WIDTH,
	parameter INT_WIDTH = 16,
	parameter BIT_SHIFT = 0,
	parameter DEC_FORMAT = 0,
	parameter INT_FORMAT = 0
)
(
	input  [DATA_WIDTH - 1 : 0] a,
	input  [DATA_WIDTH - 1 : 0] b,
	output [OUT_WIDTH - 1 : 0] p
);

	wire [DATA_WIDTH + DATA_WIDTH - 1:0] int_p;

	assign p = int_p[((DATA_WIDTH*2-1-INT_WIDTH)+BIT_SHIFT)-INT_FORMAT : ((DATA_WIDTH-INT_WIDTH)+BIT_SHIFT)+DEC_FORMAT];
       
	gen_mult #(.DATA_WIDTH(DATA_WIDTH)) MULT1 (.a(a), .b(b), .p(int_p));
endmodule