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 keyDevice(
	input clk,
	input rst,
	
	input tclk,
	
	input krst,
	
	input in1,
	input in2,
	input in3,
	input in4,
	
	output irq,
	
	output[31:0] out
	
);

wire pin1;
wire pin2;
wire pin3;
wire pin4;
wire pin5;

keyrst k1(.mode(0),
			.in(in1),
			.rst(rst),
			.clk(tclk),
			.rspress(pin1)
);

keyrst k2(.mode(0),
			.in(in2),
			.clk(tclk),
			.rst(rst),
			.rspress(pin2)
);

keyrst k3(.mode(0),
			.in(in3),
			.clk(tclk),
			.rst(rst),
			.rspress(pin3)
);

keyrst k4(.mode(0),
			.in(in4),
			.clk(tclk),
			.rst(rst),
			.rspress(pin4)
);


wire[7:0] timer;

keyMan kM(.clk(clk),
			 .rst(rst),
			 
			 .irq(irq),
			 
			 .in({1'b0,~pin4,~pin3,~pin2,~pin1}),
	
			 .out(out),
			 .tim(timer)
);

endmodule
module keyDevice(
	input clk,
	input rst,
	
	input tclk,
	
	input krst,
	
	input in1,
	input in2,
	input in3,
	input in4,
	
	output irq,
	
	output[31:0] out
	
);


wire pin1;
wire pin2;
wire pin3;
wire pin4;
wire pin5;

keyrst k1(.mode(0),
			.in(in1),
			.rst(rst),
			.clk(tclk),
			.rspress(pin1)
);

keyrst k2(.mode(0),
			.in(in2),
			.clk(tclk),
			.rst(rst),
			.rspress(pin2)
);

keyrst k3(.mode(0),
			.in(in3),
			.clk(tclk),
			.rst(rst),
			.rspress(pin3)
);

keyrst k4(.mode(0),
			.in(in4),
			.clk(tclk),
			.rst(rst),
			.rspress(pin4)
);


wire[7:0] timer;

keyMan kM(.clk(clk),
			 .rst(rst),
			 
			 .irq(irq),
			 
			 .in({1'b0,~pin4,~pin3,~pin2,~pin1}),
	
			 .out(out),
			 .tim(timer)
);

endmodule