data/full_repos/permissive/158606829/sys/audio_out.v
 line:39: before: "reg"
1: b"%Error: data/full_repos/permissive/158606829/sys/audio_out.v:72: Cannot find file containing module: 'i2s'\ni2s i2s\n^~~\n        ... Looked in:\n             data/full_repos/permissive/158606829/sys,data/full_repos/permissive/158606829/i2s\n             data/full_repos/permissive/158606829/sys,data/full_repos/permissive/158606829/i2s.v\n             data/full_repos/permissive/158606829/sys,data/full_repos/permissive/158606829/i2s.sv\n             i2s\n             i2s.v\n             i2s.sv\n             obj_dir/i2s\n             obj_dir/i2s.v\n             obj_dir/i2s.sv\n%Error: data/full_repos/permissive/158606829/sys/audio_out.v:87: Cannot find file containing module: 'spdif'\nspdif toslink\n^~~~~\n%Error: data/full_repos/permissive/158606829/sys/audio_out.v:98: Cannot find file containing module: 'sigma_delta_dac'\nsigma_delta_dac #(15) sd_l\n^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/158606829/sys/audio_out.v:106: Cannot find file containing module: 'sigma_delta_dac'\nsigma_delta_dac #(15) sd_r\n^~~~~~~~~~~~~~~\n%Error: Exiting due to 4 error(s)\n"
module lpf_aud
(
   input         CLK,
   input         CE,
   input  [15:0] IDATA,
   output reg [15:0] ODATA
);

reg [511:0] acc;
reg [20:0] sum;

always @(*) begin
	integer i;
	sum = 0;
	for (i = 0; i < 32; i = i+1) sum = sum + {{5{acc[(i*16)+15]}}, acc[i*16 +:16]};
end

always @(posedge CLK) begin
	if(CE) begin
		acc <= {acc[495:0], IDATA};
		ODATA <= sum[20:5];
	end
end

endmodule
module lpf_aud
(
   input         CLK,
   input         CE,
   input  [15:0] IDATA,
   output reg [15:0] ODATA
);


reg [511:0] acc;
reg [20:0] sum;

always @(*) begin
	integer i;
	sum = 0;
	for (i = 0; i < 32; i = i+1) sum = sum + {{5{acc[(i*16)+15]}}, acc[i*16 +:16]};
end

always @(posedge CLK) begin
	if(CE) begin
		acc <= {acc[495:0], IDATA};
		ODATA <= sum[20:5];
	end
end

endmodule