data/full_repos/permissive/521337848/Hardware/BUZZER/buzzer.v
1: b"%Error: data/full_repos/permissive/521337848/Hardware/BUZZER/buzzer.v:146: Too many digits for 18 bit number: 18'hFFFFFFFF\n if(f_tim ==18'hFFFFFFFF) sig = 0;\n            ^~~~~~~~~~~~\n%Error: Exiting due to 1 error(s)\n"
module volumer(
	input clk,
	input rst,
	input[1:0] vol,
	
	input[1:0] tt,
	
	output reg ff
);

reg f_ff;

always@(posedge clk or posedge rst)begin
	if(rst) begin
		f_ff <= 0;
		end
	else begin
		f_ff <= ff;
		end
end

always@(*)begin
	ff = f_ff;
	
	case(vol)
		0: ff = 1;
		1: ff = tt[0];
		2: ff = tt[0] & tt[1];
		3: ff = 0;
	endcase
end

endmodule
module volumer(
	input clk,
	input rst,
	input[1:0] vol,
	
	input[1:0] tt,
	
	output reg ff
);


reg f_ff;

always@(posedge clk or posedge rst)begin
	if(rst) begin
		f_ff <= 0;
		end
	else begin
		f_ff <= ff;
		end
end

always@(*)begin
	ff = f_ff;
	
	case(vol)
		0: ff = 1;
		1: ff = tt[0];
		2: ff = tt[0] & tt[1];
		3: ff = 0;
	endcase
end

endmodule