data/full_repos/permissive/111393021/bs_mult_slice.v
1: b"%Error: data/full_repos/permissive/111393021/bs_mult_slice.v:30: Cannot find file containing module: 'counter_5to3'\n counter_5to3 I0(.x({a, b, pin_delay, cin, cout1_delay}), .y(cout_int)); \n ^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/111393021,data/full_repos/permissive/111393021/counter_5to3\n             data/full_repos/permissive/111393021,data/full_repos/permissive/111393021/counter_5to3.v\n             data/full_repos/permissive/111393021,data/full_repos/permissive/111393021/counter_5to3.sv\n             counter_5to3\n             counter_5to3.v\n             counter_5to3.sv\n             obj_dir/counter_5to3\n             obj_dir/counter_5to3.v\n             obj_dir/counter_5to3.sv\n%Error: Exiting due to 1 error(s)\n"
module bs_mult_slice(clk, xy, pin, cin, rin, x, y, pout, cout, rout, lastbit);
	input clk;
	input xy, pin, cin, rin, x, y, lastbit;
	output pout, cout, rout;
	wire [2:0] cout_int;
	reg cout;
	reg rout;
	wire a, b;
	reg pin_delay;
	reg x_delay;
	reg y_delay;
	reg cout1_delay;
	assign a = x_delay & y;
	assign b = x & y_delay;
	assign pout = (rin == 1'b1) ? xy : cout_int[0];
	counter_5to3 I0(.x({a, b, pin_delay, cin, cout1_delay}), .y(cout_int));	

	always @ (posedge clk)
	begin
		if(lastbit)
		begin 
			x_delay <= 1'b0;
			y_delay <= 1'b0;
			pin_delay <= 1'b0;
			cout1_delay <= 1'b0;
			cout <= 1'b0;
			rout <= 1'b0;
		end
		else
		begin
			if(rin)
			begin
				x_delay <= x;
				y_delay <= y;
			end
			pin_delay <= pin;
			cout1_delay <= cout_int[1];
			cout <= cout_int[2];
			rout <= rin;
		end


	end
endmodule
module bs_mult_slice(clk, xy, pin, cin, rin, x, y, pout, cout, rout, lastbit);

	input clk;
	input xy, pin, cin, rin, x, y, lastbit;
	output pout, cout, rout;
	wire [2:0] cout_int;
	reg cout;
	reg rout;
	wire a, b;
	reg pin_delay;
	reg x_delay;
	reg y_delay;
	reg cout1_delay;
	assign a = x_delay & y;
	assign b = x & y_delay;
	assign pout = (rin == 1'b1) ? xy : cout_int[0];
	counter_5to3 I0(.x({a, b, pin_delay, cin, cout1_delay}), .y(cout_int));	

	always @ (posedge clk)
	begin
		if(lastbit)
		begin 
			x_delay <= 1'b0;
			y_delay <= 1'b0;
			pin_delay <= 1'b0;
			cout1_delay <= 1'b0;
			cout <= 1'b0;
			rout <= 1'b0;
		end
		else
		begin
			if(rin)
			begin
				x_delay <= x;
				y_delay <= y;
			end
			pin_delay <= pin;
			cout1_delay <= cout_int[1];
			cout <= cout_int[2];
			rout <= rin;
		end


	end
endmodule