data/full_repos/permissive/198548420/nexys4ddr/ch05_debounce/debounce.v
1: b"%Error: data/full_repos/permissive/198548420/nexys4ddr/ch05_debounce/debounce.v:11: Cannot find file containing module: 'debouncer'\ndebouncer d1(.CLK (CLK), .switch_input (switch_a), .trans_dn (s_a_dn));\n^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/198548420/nexys4ddr/ch05_debounce,data/full_repos/permissive/198548420/debouncer\n             data/full_repos/permissive/198548420/nexys4ddr/ch05_debounce,data/full_repos/permissive/198548420/debouncer.v\n             data/full_repos/permissive/198548420/nexys4ddr/ch05_debounce,data/full_repos/permissive/198548420/debouncer.sv\n             debouncer\n             debouncer.v\n             debouncer.sv\n             obj_dir/debouncer\n             obj_dir/debouncer.v\n             obj_dir/debouncer.sv\n%Error: data/full_repos/permissive/198548420/nexys4ddr/ch05_debounce/debounce.v:12: Cannot find file containing module: 'debouncer'\ndebouncer d2(.CLK (CLK), .switch_input (switch_b), .trans_up (s_b_up));\n^~~~~~~~~\n%Error: data/full_repos/permissive/198548420/nexys4ddr/ch05_debounce/debounce.v:13: Cannot find file containing module: 'debouncer'\ndebouncer d3(.CLK (CLK), .switch_input (switch_a), .state (s_a_state));\n^~~~~~~~~\n%Error: Exiting due to 3 error(s)\n"
module debounce(
    input CLK,
    input switch_a,
    input switch_b,
    output reg led_a,
    output reg led_b,
    output reg led_c
    );

wire s_a_dn, s_b_up, s_a_state;
debouncer d1(.CLK (CLK), .switch_input (switch_a), .trans_dn (s_a_dn));
debouncer d2(.CLK (CLK), .switch_input (switch_b), .trans_up (s_b_up));
debouncer d3(.CLK (CLK), .switch_input (switch_a), .state (s_a_state));

always @(posedge CLK)
begin
  if (s_a_dn)
  begin
    led_a <= ~ led_a;
  end
  if (s_b_up)
  begin
    led_b <= ~ led_b;
  end
  led_c <= s_a_state;
end

endmodule
module debounce(
    input CLK,
    input switch_a,
    input switch_b,
    output reg led_a,
    output reg led_b,
    output reg led_c
    );


wire s_a_dn, s_b_up, s_a_state;
debouncer d1(.CLK (CLK), .switch_input (switch_a), .trans_dn (s_a_dn));
debouncer d2(.CLK (CLK), .switch_input (switch_b), .trans_up (s_b_up));
debouncer d3(.CLK (CLK), .switch_input (switch_a), .state (s_a_state));

always @(posedge CLK)
begin
  if (s_a_dn)
  begin
    led_a <= ~ led_a;
  end
  if (s_b_up)
  begin
    led_b <= ~ led_b;
  end
  led_c <= s_a_state;
end

endmodule