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 timerInDevice(
	input clk,
	input rst,
	
	output[7:0] out
);

reg[11:0] n_out;
reg[11:0] f_out;
always@(posedge clk or posedge rst) begin
	if(rst) f_out <= 0;
	else f_out <= n_out;
end

always@(*)begin
	if(f_out == 255) n_out = 255;
	else n_out = f_out + 1;
end

assign out = f_out[11:4];
endmodule
module timerInDevice(
	input clk,
	input rst,
	
	output[7:0] out
);


reg[11:0] n_out;
reg[11:0] f_out;
always@(posedge clk or posedge rst) begin
	if(rst) f_out <= 0;
	else f_out <= n_out;
end

always@(*)begin
	if(f_out == 255) n_out = 255;
	else n_out = f_out + 1;
end

assign out = f_out[11:4];
endmodule