data/full_repos/permissive/183345139/projects/gpio_test/top.v
 line:115 column:17: Illegal character "'"
1: b"%Error: data/full_repos/permissive/183345139/projects/gpio_test/top.v:103: Cannot find file containing module: 'pll_50mhz'\npll_50mhz pll_50mhz_inst (\n^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/183345139/projects/gpio_test,data/full_repos/permissive/183345139/pll_50mhz\n             data/full_repos/permissive/183345139/projects/gpio_test,data/full_repos/permissive/183345139/pll_50mhz.v\n             data/full_repos/permissive/183345139/projects/gpio_test,data/full_repos/permissive/183345139/pll_50mhz.sv\n             pll_50mhz\n             pll_50mhz.v\n             pll_50mhz.sv\n             obj_dir/pll_50mhz\n             obj_dir/pll_50mhz.v\n             obj_dir/pll_50mhz.sv\n%Error: data/full_repos/permissive/183345139/projects/gpio_test/top.v:114: Cannot find file containing module: 'SB_IO'\nSB_IO #(\n^~~~~\n%Error: data/full_repos/permissive/183345139/projects/gpio_test/top.v:125: Cannot find file containing module: 'SB_IO'\nSB_IO #(\n^~~~~\n%Error: data/full_repos/permissive/183345139/projects/gpio_test/top.v:136: Cannot find file containing module: 'SB_IO'\nSB_IO #(\n^~~~~\n%Error: data/full_repos/permissive/183345139/projects/gpio_test/top.v:147: Cannot find file containing module: 'SB_IO'\nSB_IO #(\n^~~~~\n%Error: data/full_repos/permissive/183345139/projects/gpio_test/top.v:157: Cannot find file containing module: 'gpio_test'\ngpio_test # \n^~~~~~~~~\n%Error: Exiting due to 6 error(s)\n"
module top
(
    input wire  CLK_16MHZ,


    input wire  PIN_1,
    output wire PIN_2,
    output wire PIN_3,


    inout wire PIN_4,
    inout wire PIN_5,
    inout wire PIN_6,
    inout wire PIN_7,


    output wire LED
);


parameter integer CLK_FREQUENCY = 50_000_000;
parameter integer BAUD = 32'd115_200;

parameter integer DBUS_WIDTH = 8;
parameter integer PERIPH_ADDR_WIDTH = 4;
parameter integer REG_ADDR_WIDTH = 8;



wire clk;
wire locked;
wire rxd;
wire txd;
wire intr;

reg reset = 0;
reg [7:0] count = 0;

assign rxd = PIN_1;
assign PIN_2 = txd;
assign PIN_3 = intr;
assign LED = locked;


wire [3:0] slot1_gpio_out_en;
wire [3:0] slot1_gpio_out_sig;
wire [3:0] slot1_gpio_in_sig;




pll_50mhz pll_50mhz_inst (
    .clock_in(CLK_16MHZ),
    .clock_out(clk),
    .locked(locked)
);






SB_IO #(
    .PIN_TYPE(6'b 1010_01),
    .PULLUP(1'b1)
) slot1_gpio_port0_inst  (
    .PACKAGE_PIN(PIN_4),
    .OUTPUT_ENABLE(slot1_gpio_out_en[0]),
    .D_OUT_0(slot1_gpio_out_sig[0]),
    .D_IN_0(slot1_gpio_in_sig[0])
);


SB_IO #(
    .PIN_TYPE(6'b 1010_01),
    .PULLUP(1'b1)
) slot1_gpio_port1_inst  (
    .PACKAGE_PIN(PIN_5),
    .OUTPUT_ENABLE(slot1_gpio_out_en[1]),
    .D_OUT_0(slot1_gpio_out_sig[1]),
    .D_IN_0(slot1_gpio_in_sig[1])
);


SB_IO #(
    .PIN_TYPE(6'b 1010_01),
    .PULLUP(1'b1)
) slot1_gpio_port2_inst  (
    .PACKAGE_PIN(PIN_6),
    .OUTPUT_ENABLE(slot1_gpio_out_en[2]),
    .D_OUT_0(slot1_gpio_out_sig[2]),
    .D_IN_0(slot1_gpio_in_sig[2])
);


SB_IO #(
    .PIN_TYPE(6'b 1010_01),
    .PULLUP(1'b1)
) slot1_gpio_port3_inst  (
    .PACKAGE_PIN(PIN_7),
    .OUTPUT_ENABLE(slot1_gpio_out_en[3]),
    .D_OUT_0(slot1_gpio_out_sig[3]),
    .D_IN_0(slot1_gpio_in_sig[3])
);

gpio_test # 
(
    .CLK_FREQUENCY(CLK_FREQUENCY),
    .BAUD(BAUD),
    .DBUS_WIDTH(DBUS_WIDTH),
    .PERIPH_ADDR_WIDTH(PERIPH_ADDR_WIDTH),
    .REG_ADDR_WIDTH(REG_ADDR_WIDTH)
) serial_test_inst (
    .clk(clk),
    .reset(reset),
    .rxd(rxd),
    .txd(txd),
    .intr(intr),
    .gpio_out_en(slot1_gpio_out_en),
    .gpio_out_sig(slot1_gpio_out_sig),
    .gpio_in_sig(slot1_gpio_in_sig)
);






always @ (posedge clk)
begin
    if (count < 10) begin
        reset <= 1;
        count <= count + 1;
    end else begin
        reset <= 0;
    end
end

endmodule
module top
(
    input wire  CLK_16MHZ,


    input wire  PIN_1,
    output wire PIN_2,
    output wire PIN_3,


    inout wire PIN_4,
    inout wire PIN_5,
    inout wire PIN_6,
    inout wire PIN_7,


    output wire LED
);



parameter integer CLK_FREQUENCY = 50_000_000;
parameter integer BAUD = 32'd115_200;

parameter integer DBUS_WIDTH = 8;
parameter integer PERIPH_ADDR_WIDTH = 4;
parameter integer REG_ADDR_WIDTH = 8;



wire clk;
wire locked;
wire rxd;
wire txd;
wire intr;

reg reset = 0;
reg [7:0] count = 0;

assign rxd = PIN_1;
assign PIN_2 = txd;
assign PIN_3 = intr;
assign LED = locked;


wire [3:0] slot1_gpio_out_en;
wire [3:0] slot1_gpio_out_sig;
wire [3:0] slot1_gpio_in_sig;




pll_50mhz pll_50mhz_inst (
    .clock_in(CLK_16MHZ),
    .clock_out(clk),
    .locked(locked)
);






SB_IO #(
    .PIN_TYPE(6'b 1010_01),
    .PULLUP(1'b1)
) slot1_gpio_port0_inst  (
    .PACKAGE_PIN(PIN_4),
    .OUTPUT_ENABLE(slot1_gpio_out_en[0]),
    .D_OUT_0(slot1_gpio_out_sig[0]),
    .D_IN_0(slot1_gpio_in_sig[0])
);


SB_IO #(
    .PIN_TYPE(6'b 1010_01),
    .PULLUP(1'b1)
) slot1_gpio_port1_inst  (
    .PACKAGE_PIN(PIN_5),
    .OUTPUT_ENABLE(slot1_gpio_out_en[1]),
    .D_OUT_0(slot1_gpio_out_sig[1]),
    .D_IN_0(slot1_gpio_in_sig[1])
);


SB_IO #(
    .PIN_TYPE(6'b 1010_01),
    .PULLUP(1'b1)
) slot1_gpio_port2_inst  (
    .PACKAGE_PIN(PIN_6),
    .OUTPUT_ENABLE(slot1_gpio_out_en[2]),
    .D_OUT_0(slot1_gpio_out_sig[2]),
    .D_IN_0(slot1_gpio_in_sig[2])
);


SB_IO #(
    .PIN_TYPE(6'b 1010_01),
    .PULLUP(1'b1)
) slot1_gpio_port3_inst  (
    .PACKAGE_PIN(PIN_7),
    .OUTPUT_ENABLE(slot1_gpio_out_en[3]),
    .D_OUT_0(slot1_gpio_out_sig[3]),
    .D_IN_0(slot1_gpio_in_sig[3])
);

gpio_test # 
(
    .CLK_FREQUENCY(CLK_FREQUENCY),
    .BAUD(BAUD),
    .DBUS_WIDTH(DBUS_WIDTH),
    .PERIPH_ADDR_WIDTH(PERIPH_ADDR_WIDTH),
    .REG_ADDR_WIDTH(REG_ADDR_WIDTH)
) serial_test_inst (
    .clk(clk),
    .reset(reset),
    .rxd(rxd),
    .txd(txd),
    .intr(intr),
    .gpio_out_en(slot1_gpio_out_en),
    .gpio_out_sig(slot1_gpio_out_sig),
    .gpio_in_sig(slot1_gpio_in_sig)
);






always @ (posedge clk)
begin
    if (count < 10) begin
        reset <= 1;
        count <= count + 1;
    end else begin
        reset <= 0;
    end
end

endmodule