data/full_repos/permissive/472097485/Chu05/DebounceTest_00/DebounceTest.v
1: b"%Error: data/full_repos/permissive/472097485/Chu05/DebounceTest_00/DebounceTest.v:23: Cannot find file containing module: 'DispHexMux'\n DispHexMux disp( clk, clr, hex2, hex1, hex0, 3'b010, 3'b111, an, sseg );\n ^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/472097485/Chu05/DebounceTest_00,data/full_repos/permissive/472097485/DispHexMux\n             data/full_repos/permissive/472097485/Chu05/DebounceTest_00,data/full_repos/permissive/472097485/DispHexMux.v\n             data/full_repos/permissive/472097485/Chu05/DebounceTest_00,data/full_repos/permissive/472097485/DispHexMux.sv\n             DispHexMux\n             DispHexMux.v\n             DispHexMux.sv\n             obj_dir/DispHexMux\n             obj_dir/DispHexMux.v\n             obj_dir/DispHexMux.sv\n%Error: data/full_repos/permissive/472097485/Chu05/DebounceTest_00/DebounceTest.v:26: Cannot find file containing module: 'db_fsm'\n   db_fsm db_unit(clk, clr, click, db_level);\n   ^~~~~~\n%Error: data/full_repos/permissive/472097485/Chu05/DebounceTest_00/DebounceTest.v:28: Cannot find file containing module: 'DualEdgeMoore'\n DualEdgeMoore directBtn( clk, clr, click, btn_tick );\n ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/472097485/Chu05/DebounceTest_00/DebounceTest.v:29: Cannot find file containing module: 'DualEdgeMoore'\n DualEdgeMoore debouncedBtn( clk, clr, db_level, db_tick );\n ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/472097485/Chu05/DebounceTest_00/DebounceTest.v:31: Cannot find file containing module: 'ModMCounter'\n ModMCounter #( 256, 8 ) directCount( clk, clr, btn_tick, b_count );\n ^~~~~~~~~~~\n%Error: data/full_repos/permissive/472097485/Chu05/DebounceTest_00/DebounceTest.v:32: Cannot find file containing module: 'ModMCounter'\n ModMCounter #( 16, 4 ) debouncedCount( clk, clr, db_tick, d_count );\n ^~~~~~~~~~~\n%Error: Exiting due to 6 error(s)\n"
module DebounceTest ( input wire clk, input wire [1:0] btn, output wire [2:0] an, output wire [7:0] sseg );


   wire [7:0] b_count;
	wire [3:0] d_count;
   wire db_level;
	wire db_tick, btn_tick;
	wire clr, click;


	wire [4:0] hex2, hex1, hex0;
	
   assign clr = ~btn[0];
	assign click = ~btn[1];
	assign hex0 = { 1'b0, d_count[3:0] };
	assign hex1 = { 1'b0, b_count[3:0] };
	assign hex2 = { 1'b0, b_count[7:4] };

	DispHexMux disp( clk, clr, hex2, hex1, hex0, 3'b010, 3'b111, an, sseg );
	

   db_fsm db_unit(clk, clr, click, db_level);

	DualEdgeMoore directBtn( clk, clr, click, btn_tick );
	DualEdgeMoore debouncedBtn( clk, clr, db_level, db_tick );

	ModMCounter #( 256, 8 ) directCount( clk, clr, btn_tick, b_count );
	ModMCounter #( 16, 4 ) debouncedCount( clk, clr, db_tick, d_count );

endmodule
module DebounceTest ( input wire clk, input wire [1:0] btn, output wire [2:0] an, output wire [7:0] sseg );



   wire [7:0] b_count;
	wire [3:0] d_count;
   wire db_level;
	wire db_tick, btn_tick;
	wire clr, click;


	wire [4:0] hex2, hex1, hex0;
	
   assign clr = ~btn[0];
	assign click = ~btn[1];
	assign hex0 = { 1'b0, d_count[3:0] };
	assign hex1 = { 1'b0, b_count[3:0] };
	assign hex2 = { 1'b0, b_count[7:4] };

	DispHexMux disp( clk, clr, hex2, hex1, hex0, 3'b010, 3'b111, an, sseg );
	

   db_fsm db_unit(clk, clr, click, db_level);

	DualEdgeMoore directBtn( clk, clr, click, btn_tick );
	DualEdgeMoore debouncedBtn( clk, clr, db_level, db_tick );

	ModMCounter #( 256, 8 ) directCount( clk, clr, btn_tick, b_count );
	ModMCounter #( 16, 4 ) debouncedCount( clk, clr, db_tick, d_count );

endmodule