data/full_repos/permissive/149070951/examples/user-test/main.v
1: b"%Error: data/full_repos/permissive/149070951/examples/user-test/main.v:24: Cannot find file containing module: 'pwm_led'\npwm_led CT0 (\n^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/149070951/examples/user-test,data/full_repos/permissive/149070951/pwm_led\n             data/full_repos/permissive/149070951/examples/user-test,data/full_repos/permissive/149070951/pwm_led.v\n             data/full_repos/permissive/149070951/examples/user-test,data/full_repos/permissive/149070951/pwm_led.sv\n             pwm_led\n             pwm_led.v\n             pwm_led.sv\n             obj_dir/pwm_led\n             obj_dir/pwm_led.v\n             obj_dir/pwm_led.sv\n%Error: data/full_repos/permissive/149070951/examples/user-test/main.v:32: Cannot find file containing module: 'kitt'\nkitt CT1 (\n^~~~\n%Error: data/full_repos/permissive/149070951/examples/user-test/main.v:41: Cannot find file containing module: 'txstr'\ntxstr CT2 (\n^~~~~\n%Error: data/full_repos/permissive/149070951/examples/user-test/main.v:51: Cannot find file containing module: 'echo'\necho CT3 (\n^~~~\n%Error: data/full_repos/permissive/149070951/examples/user-test/main.v:97: Cannot find file containing module: 'debounce_pulse'\ndebounce_pulse deb1 (\n^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/149070951/examples/user-test/main.v:105: Cannot find file containing module: 'debounce_pulse'\ndebounce_pulse deb2 (\n^~~~~~~~~~~~~~\n%Error: Exiting due to 6 error(s)\n"
module top(input wire CLK,
           input wire SW1,
           input wire SW2,
           input wire RX,
           output wire TX,
           output wire LED0, LED1, LED2, LED3,
                       LED4, LED5, LED6, LED7);



wire [7:0] led_ct0;

pwm_led CT0 (
    .clk(CLK),
    .ledb(led_ct0)
  );


wire [7:0] led_ct1;

kitt CT1 (
  .clk(CLK),
  .ledb(led_ct1)
  );


wire [7:0] led_ct2 = 8'hAA;
wire tx_ct2;

txstr CT2 (
        .clk(CLK),
        .go(sw2),
        .tx(tx_ct2)
);


wire [7:0] led_ct3;
wire tx_ct3;

echo CT3 (
         .clk(CLK),
         .rx(RX),
         .tx(tx_ct3),
         .ledb(led_ct3)
);


wire [7:0] ledb;
reg [1:0] sel_cto = 0;

always @ ( * ) begin
  case (sel_cto)
    0: begin
         ledb = led_ct0;
         TX = 1'b1;
       end
    1: begin
         ledb = led_ct1;
         TX = 1'b1;
       end
    2: begin
         ledb = led_ct2;
         TX = tx_ct2;
       end
    3: begin
         ledb = led_ct3;
         TX = tx_ct3;
       end
    default: begin
      ledb = 0;
      TX = 1'b1;
    end
  endcase
end



always @ ( posedge CLK) begin
  if (sw1) begin
    sel_cto <= sel_cto + 1;
  end
end


wire sw1;
debounce_pulse deb1 (
  .clk(CLK),
  .sw_in(SW1),
  .sw_out(sw1)
  );


wire sw2;
debounce_pulse deb2 (
  .clk(CLK),
  .sw_in(SW2),
  .sw_out(sw2)
  );


assign {LED7, LED6, LED5, LED4, LED3, LED2, LED1, LED0} = ledb;

endmodule
module top(input wire CLK,
           input wire SW1,
           input wire SW2,
           input wire RX,
           output wire TX,
           output wire LED0, LED1, LED2, LED3,
                       LED4, LED5, LED6, LED7);




wire [7:0] led_ct0;

pwm_led CT0 (
    .clk(CLK),
    .ledb(led_ct0)
  );


wire [7:0] led_ct1;

kitt CT1 (
  .clk(CLK),
  .ledb(led_ct1)
  );


wire [7:0] led_ct2 = 8'hAA;
wire tx_ct2;

txstr CT2 (
        .clk(CLK),
        .go(sw2),
        .tx(tx_ct2)
);


wire [7:0] led_ct3;
wire tx_ct3;

echo CT3 (
         .clk(CLK),
         .rx(RX),
         .tx(tx_ct3),
         .ledb(led_ct3)
);


wire [7:0] ledb;
reg [1:0] sel_cto = 0;

always @ ( * ) begin
  case (sel_cto)
    0: begin
         ledb = led_ct0;
         TX = 1'b1;
       end
    1: begin
         ledb = led_ct1;
         TX = 1'b1;
       end
    2: begin
         ledb = led_ct2;
         TX = tx_ct2;
       end
    3: begin
         ledb = led_ct3;
         TX = tx_ct3;
       end
    default: begin
      ledb = 0;
      TX = 1'b1;
    end
  endcase
end



always @ ( posedge CLK) begin
  if (sw1) begin
    sel_cto <= sel_cto + 1;
  end
end


wire sw1;
debounce_pulse deb1 (
  .clk(CLK),
  .sw_in(SW1),
  .sw_out(sw1)
  );


wire sw2;
debounce_pulse deb2 (
  .clk(CLK),
  .sw_in(SW2),
  .sw_out(sw2)
  );


assign {LED7, LED6, LED5, LED4, LED3, LED2, LED1, LED0} = ledb;

endmodule