data/full_repos/permissive/173670949/upduino/blink_led/upduino.v
 line:142: before: "."
1: b"%Error: data/full_repos/permissive/173670949/upduino/blink_led/upduino.v:69: Cannot find file containing module: 'SB_HFOSC'\n    SB_HFOSC int_osc_48m (.CLKHFPU(1'b1), .CLKHFEN(1'b1), .CLKHF(clk));\n    ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/173670949/upduino/blink_led,data/full_repos/permissive/173670949/SB_HFOSC\n             data/full_repos/permissive/173670949/upduino/blink_led,data/full_repos/permissive/173670949/SB_HFOSC.v\n             data/full_repos/permissive/173670949/upduino/blink_led,data/full_repos/permissive/173670949/SB_HFOSC.sv\n             SB_HFOSC\n             SB_HFOSC.v\n             SB_HFOSC.sv\n             obj_dir/SB_HFOSC\n             obj_dir/SB_HFOSC.v\n             obj_dir/SB_HFOSC.sv\n%Error: data/full_repos/permissive/173670949/upduino/blink_led/upduino.v:75: Cannot find file containing module: 'rgb_blink'\n    rgb_blink #(\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/173670949/upduino/blink_led/upduino.v:86: Cannot find file containing module: 'SB_IO'\n    SB_IO #(\n    ^~~~~\n%Error: data/full_repos/permissive/173670949/upduino/blink_led/upduino.v:126: Cannot find file containing module: 'SB_RGBA_DRV'\n    SB_RGBA_DRV RGB_DRIVER (\n    ^~~~~~~~~~~\n%Error: Exiting due to 4 error(s)\n"
module Upduino (




    output led_green,
    output led_red,
    output led_blue,


    output serial_txd,
    input  serial_rxd,
    output spi_cs,


    inout gpio_23,
    inout gpio_25,
    inout gpio_26,
    inout gpio_27,
    inout gpio_32,
    inout gpio_35,
    inout gpio_31,
    inout gpio_37,
    inout gpio_34,
    inout gpio_43,
    inout gpio_36,
    inout gpio_42,
    inout gpio_38,
    inout gpio_28,







    inout gpio_20,
    inout gpio_10,


    inout gpio_12,
    inout gpio_21,
    inout gpio_13,
    inout gpio_19,
    inout gpio_18,
    inout gpio_11,
    inout gpio_9,
    inout gpio_6,
    inout gpio_44,
    inout gpio_4,
    inout gpio_3,
    inout gpio_48,
    inout gpio_45,
    inout gpio_47,
    inout gpio_46,
    inout gpio_2
);

    assign spi_cs = 1'b1;
    assign serial_txd = 1'b1;

    parameter F_CLK = 48_000_000;
    wire clk;
    SB_HFOSC int_osc_48m (.CLKHFPU(1'b1), .CLKHFEN(1'b1), .CLKHF(clk));

    wire pwm_red;
    wire pwm_blue;
    wire pwm_green;

    rgb_blink #(
        .COUNTER_BITS(16),
        .PRESCALER(10)
    ) blinker (
        clk,
        pwm_red,
        pwm_blue,
        pwm_green
    );


    SB_IO #(



        .PIN_TYPE(6'b0110_01),




        .PULLUP(1'b0) 











    ) led_pins [2:0] (
        .PACKAGE_PIN ({gpio_2, gpio_46, gpio_47}),



        .OUTPUT_CLK (clk),
        .OUTPUT_ENABLE (1'b1),
        .D_OUT_0 ({pwm_red, pwm_green, pwm_blue}),
        .D_OUT_1 ({pwm_red, pwm_green, pwm_blue})


    );







    SB_RGBA_DRV RGB_DRIVER (
      .RGBLEDEN(1'b1),


      .RGB0PWM (pwm_green),
      .RGB1PWM (pwm_blue),
      .RGB2PWM (pwm_red),

      .CURREN  (1'b1),


      .RGB0    (led_green),
      .RGB1    (led_blue),
      .RGB2    (led_red)
    );

    defparam RGB_DRIVER.RGB0_CURRENT = "0b000001";
    defparam RGB_DRIVER.RGB1_CURRENT = "0b000001";
    defparam RGB_DRIVER.RGB2_CURRENT = "0b000001";

endmodule
module Upduino (




    output led_green,
    output led_red,
    output led_blue,


    output serial_txd,
    input  serial_rxd,
    output spi_cs,


    inout gpio_23,
    inout gpio_25,
    inout gpio_26,
    inout gpio_27,
    inout gpio_32,
    inout gpio_35,
    inout gpio_31,
    inout gpio_37,
    inout gpio_34,
    inout gpio_43,
    inout gpio_36,
    inout gpio_42,
    inout gpio_38,
    inout gpio_28,







    inout gpio_20,
    inout gpio_10,


    inout gpio_12,
    inout gpio_21,
    inout gpio_13,
    inout gpio_19,
    inout gpio_18,
    inout gpio_11,
    inout gpio_9,
    inout gpio_6,
    inout gpio_44,
    inout gpio_4,
    inout gpio_3,
    inout gpio_48,
    inout gpio_45,
    inout gpio_47,
    inout gpio_46,
    inout gpio_2
);


    assign spi_cs = 1'b1;
    assign serial_txd = 1'b1;

    parameter F_CLK = 48_000_000;
    wire clk;
    SB_HFOSC int_osc_48m (.CLKHFPU(1'b1), .CLKHFEN(1'b1), .CLKHF(clk));

    wire pwm_red;
    wire pwm_blue;
    wire pwm_green;

    rgb_blink #(
        .COUNTER_BITS(16),
        .PRESCALER(10)
    ) blinker (
        clk,
        pwm_red,
        pwm_blue,
        pwm_green
    );


    SB_IO #(



        .PIN_TYPE(6'b0110_01),




        .PULLUP(1'b0) 











    ) led_pins [2:0] (
        .PACKAGE_PIN ({gpio_2, gpio_46, gpio_47}),



        .OUTPUT_CLK (clk),
        .OUTPUT_ENABLE (1'b1),
        .D_OUT_0 ({pwm_red, pwm_green, pwm_blue}),
        .D_OUT_1 ({pwm_red, pwm_green, pwm_blue})


    );







    SB_RGBA_DRV RGB_DRIVER (
      .RGBLEDEN(1'b1),


      .RGB0PWM (pwm_green),
      .RGB1PWM (pwm_blue),
      .RGB2PWM (pwm_red),

      .CURREN  (1'b1),


      .RGB0    (led_green),
      .RGB1    (led_blue),
      .RGB2    (led_red)
    );

    defparam RGB_DRIVER.RGB0_CURRENT = "0b000001";
    defparam RGB_DRIVER.RGB1_CURRENT = "0b000001";
    defparam RGB_DRIVER.RGB2_CURRENT = "0b000001";

endmodule