data/full_repos/permissive/148742372/SR NOR LATCH/pa31.v
1: b'%Error: Cannot find file containing module: NOR\n        ... Looked in:\n             data/full_repos/permissive/148742372/SR/NOR\n             data/full_repos/permissive/148742372/SR/NOR.v\n             data/full_repos/permissive/148742372/SR/NOR.sv\n             NOR\n             NOR.v\n             NOR.sv\n             obj_dir/NOR\n             obj_dir/NOR.v\n             obj_dir/NOR.sv\n%Error: Cannot find file containing module: LATCH,data/full_repos/permissive/148742372\n%Error: Cannot find file containing module: data/full_repos/permissive/148742372/SR\n%Error: Cannot find file containing module: LATCH/pa31.v\n%Error: Exiting due to 4 error(s)\n'
module srlatch (S, R, En, Q, Qc);
	input S, R;
	input En;
	output Q, Qc;
	reg Q,Qc;
	always @(S or R or En)
		begin
			if(En)
			begin
				if(S!=R)
				begin
					Q=S;
					Qc=R;
				end

				else if(S==1 && R==1)
				begin
					Q=1'bZ;
					Qc=1'bZ;
				end
			end
		end
endmodule
module srlatch (S, R, En, Q, Qc);

	input S, R;
	input En;
	output Q, Qc;
	reg Q,Qc;
	always @(S or R or En)
		begin
			if(En)
			begin
				if(S!=R)
				begin
					Q=S;
					Qc=R;
				end

				else if(S==1 && R==1)
				begin
					Q=1'bZ;
					Qc=1'bZ;
				end
			end
		end
endmodule