data/full_repos/permissive/203526788/GoBoard/BetterDebouncer/BetterDebouncer.v
1: b'%Error: data/full_repos/permissive/203526788/GoBoard/BetterDebouncer/BetterDebouncer.v:4: Cannot find include file: ../D-FlipFlop/DFF.v\n`include "../D-FlipFlop/DFF.v" \n         ^~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/203526788/GoBoard/BetterDebouncer,data/full_repos/permissive/203526788/../D-FlipFlop/DFF.v\n             data/full_repos/permissive/203526788/GoBoard/BetterDebouncer,data/full_repos/permissive/203526788/../D-FlipFlop/DFF.v.v\n             data/full_repos/permissive/203526788/GoBoard/BetterDebouncer,data/full_repos/permissive/203526788/../D-FlipFlop/DFF.v.sv\n             ../D-FlipFlop/DFF.v\n             ../D-FlipFlop/DFF.v.v\n             ../D-FlipFlop/DFF.v.sv\n             obj_dir/../D-FlipFlop/DFF.v\n             obj_dir/../D-FlipFlop/DFF.v.v\n             obj_dir/../D-FlipFlop/DFF.v.sv\n%Error: Exiting due to 1 error(s)\n'
module ClockDivider #(parameter FREQ = 100) (
	input CLK,
	output reg slow_clk
	);

parameter COUNTER_MAX = 25000000 / FREQ;
parameter COUNTER_HALF = COUNTER_MAX / 2;

reg [26:0] count = 0;





always @(posedge CLK)
begin
	count <= (count >= COUNTER_MAX-1)? 0 : count+1;
	slow_clk <= (count < COUNTER_HALF)? 1'b0 : 1'b1;
end

endmodule
module ClockDivider #(parameter FREQ = 100) (
	input CLK,
	output reg slow_clk
	);


parameter COUNTER_MAX = 25000000 / FREQ;
parameter COUNTER_HALF = COUNTER_MAX / 2;

reg [26:0] count = 0;





always @(posedge CLK)
begin
	count <= (count >= COUNTER_MAX-1)? 0 : count+1;
	slow_clk <= (count < COUNTER_HALF)? 1'b0 : 1'b1;
end

endmodule