data/full_repos/permissive/120845848/003-key_filter/src/top.v
1: b"%Error: data/full_repos/permissive/120845848/003-key_filter/src/top.v:10: Cannot find file containing module: 'key_filter'\n key_filter key_filter0(\n ^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/120845848/003-key_filter/src,data/full_repos/permissive/120845848/key_filter\n             data/full_repos/permissive/120845848/003-key_filter/src,data/full_repos/permissive/120845848/key_filter.v\n             data/full_repos/permissive/120845848/003-key_filter/src,data/full_repos/permissive/120845848/key_filter.sv\n             key_filter\n             key_filter.v\n             key_filter.sv\n             obj_dir/key_filter\n             obj_dir/key_filter.v\n             obj_dir/key_filter.sv\n%Error: Exiting due to 1 error(s)\n"
module top(clk,rst_n,key,led);
	input clk;
	input rst_n;
	input key;
	output reg [9:0]led;
	
	wire key_status;
	wire key_event;
	
	key_filter key_filter0(
		.clk(clk),
		.rst_n(rst_n),
		.key_pin(key),
		.key_status(key_status),
		.key_event(key_event)
	);
	
	always@(posedge clk, negedge rst_n)
	if(!rst_n)
		led <= 10'd0;
	else if(key_event && !key_status)
		led <= led + 1'b1;
	
endmodule
module top(clk,rst_n,key,led);

	input clk;
	input rst_n;
	input key;
	output reg [9:0]led;
	
	wire key_status;
	wire key_event;
	
	key_filter key_filter0(
		.clk(clk),
		.rst_n(rst_n),
		.key_pin(key),
		.key_status(key_status),
		.key_event(key_event)
	);
	
	always@(posedge clk, negedge rst_n)
	if(!rst_n)
		led <= 10'd0;
	else if(key_event && !key_status)
		led <= led + 1'b1;
	
endmodule