data/full_repos/permissive/521337848/Hardware/IO/keyDevice.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/521337848/Hardware/IO/keyDevice.v:70: Multiple top level modules\n                                                                                  : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                                  : ... Top module \'keyDevice\'\nmodule keyDevice(\n       ^~~~~~~~~\n                                                                                  : ... Top module \'timerInDevice\'\nmodule timerInDevice(\n       ^~~~~~~~~~~~~\n                                                                                  : ... Top module \'keyrstmodule\'\nmodule keyrstmodule(\n       ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/521337848/Hardware/IO/keyDevice.v:176: Cannot find file containing module: \'keyrst\'\nkeyrst k1(.mode(0),\n^~~~~~\n        ... Looked in:\n             data/full_repos/permissive/521337848/Hardware/IO,data/full_repos/permissive/521337848/keyrst\n             data/full_repos/permissive/521337848/Hardware/IO,data/full_repos/permissive/521337848/keyrst.v\n             data/full_repos/permissive/521337848/Hardware/IO,data/full_repos/permissive/521337848/keyrst.sv\n             keyrst\n             keyrst.v\n             keyrst.sv\n             obj_dir/keyrst\n             obj_dir/keyrst.v\n             obj_dir/keyrst.sv\n%Error: data/full_repos/permissive/521337848/Hardware/IO/keyDevice.v:26: Cannot find file containing module: \'keyrst\'\nkeyrst k1(.mode(0),\n^~~~~~\n%Error: data/full_repos/permissive/521337848/Hardware/IO/keyDevice.v:33: Cannot find file containing module: \'keyrst\'\nkeyrst k2(.mode(0),\n^~~~~~\n%Error: data/full_repos/permissive/521337848/Hardware/IO/keyDevice.v:40: Cannot find file containing module: \'keyrst\'\nkeyrst k3(.mode(0),\n^~~~~~\n%Error: data/full_repos/permissive/521337848/Hardware/IO/keyDevice.v:47: Cannot find file containing module: \'keyrst\'\nkeyrst k4(.mode(0),\n^~~~~~\n%Error: Exiting due to 5 error(s), 1 warning(s)\n'
module keyrstmodule(
	input clk,
	input in,
	input tclk,
	
	output reg rst
);

wire irst;

keyrst k1(.mode(0),
			.in(in),
			.clk(tclk),
			.rspress(irst)
);

wire iirst = ~irst;

reg f_p;
reg n_p;

always@(posedge clk)
	f_p <= n_p;
	
always@(*)begin

	n_p = f_p;
	rst = 0;
	
	if(iirst)begin
		if(~f_p) begin
			n_p = 1;
			rst = 1;
		end
	end
	else
	begin
		n_p = 0;
	end
end 
endmodule
module keyrstmodule(
	input clk,
	input in,
	input tclk,
	
	output reg rst
);


wire irst;

keyrst k1(.mode(0),
			.in(in),
			.clk(tclk),
			.rspress(irst)
);

wire iirst = ~irst;

reg f_p;
reg n_p;

always@(posedge clk)
	f_p <= n_p;
	
always@(*)begin

	n_p = f_p;
	rst = 0;
	
	if(iirst)begin
		if(~f_p) begin
			n_p = 1;
			rst = 1;
		end
	end
	else
	begin
		n_p = 0;
	end
end 
endmodule