data/full_repos/permissive/183345139/projects/tablebot/romi-board/top.v
 line:189 column:17: Illegal character "'"
1: b"%Error: data/full_repos/permissive/183345139/projects/tablebot/romi-board/top.v:146: Cannot find file containing module: 'pll_60mhz'\npll_60mhz pll_60mhz_inst (\n^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/183345139/projects/tablebot/romi-board,data/full_repos/permissive/183345139/pll_60mhz\n             data/full_repos/permissive/183345139/projects/tablebot/romi-board,data/full_repos/permissive/183345139/pll_60mhz.v\n             data/full_repos/permissive/183345139/projects/tablebot/romi-board,data/full_repos/permissive/183345139/pll_60mhz.sv\n             pll_60mhz\n             pll_60mhz.v\n             pll_60mhz.sv\n             obj_dir/pll_60mhz\n             obj_dir/pll_60mhz.v\n             obj_dir/pll_60mhz.sv\n%Error: data/full_repos/permissive/183345139/projects/tablebot/romi-board/top.v:153: Cannot find file containing module: 'hba_system'\nhba_system # \n^~~~~~~~~~\n%Error: data/full_repos/permissive/183345139/projects/tablebot/romi-board/top.v:188: Cannot find file containing module: 'SB_IO'\nSB_IO #(\n^~~~~\n%Error: data/full_repos/permissive/183345139/projects/tablebot/romi-board/top.v:199: Cannot find file containing module: 'SB_IO'\nSB_IO #(\n^~~~~\n%Error: Exiting due to 4 error(s)\n"
module top
(
    input wire  CLK_16MHZ,

    output wire BLED,




    input wire PIN_1,
    input wire PIN_2,
    output wire [7:0] LED,


    inout wire PIN_14,
    inout wire PIN_15,
    inout wire PIN_16,
    inout wire PIN_17,



    output wire PIN_7,
    output wire PIN_6,
    output wire PIN_5,

    output wire PIN_10,
    output wire PIN_9,
    output wire PIN_8,


    output wire PIN_21,
    input  wire PIN_20,
    output wire PIN_19,
    input  wire PIN_18

);


parameter integer CLK_FREQUENCY = 60_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 [7:0] basicio_led;
wire [7:0] basicio_button;

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

assign basicio_button[0] = PIN_1;
assign basicio_button[1] = PIN_2;
assign basicio_button[7:2] = 0;
assign LED = basicio_led;
assign BLED = basicio_led[0];



wire [1:0] sonar_trig;
wire [1:0] sonar_echo;

assign PIN_21 = sonar_trig[0];
assign sonar_echo[0] = PIN_20;
assign PIN_19 = sonar_trig[1];
assign sonar_echo[1] = PIN_18;


wire [1:0] slot2_qtr_out_en;
wire [1:0] slot2_qtr_out_sig;
wire [1:0] slot2_qtr_in_sig;
wire [1:0] slot2_qtr_ctrl;
assign PIN_15 = slot2_qtr_ctrl[0];
assign PIN_14 = slot2_qtr_ctrl[1];


wire [1:0] motor_pwm;
wire [1:0] motor_dir;
wire [1:0] motor_float_n;
assign PIN_7 = motor_pwm[0];
assign PIN_6 = motor_dir[0];
assign PIN_5 = motor_float_n[0];
assign PIN_10 = motor_pwm[1];
assign PIN_9 = motor_dir[1];
assign PIN_8 = motor_float_n[1];




pll_60mhz pll_60mhz_inst (
    .clock_in(CLK_16MHZ),
    .clock_out(clk),
    .locked(locked)
);


hba_system # 
(
    .CLK_FREQUENCY(CLK_FREQUENCY),
    .BAUD(BAUD),
    .DBUS_WIDTH(DBUS_WIDTH),
    .PERIPH_ADDR_WIDTH(PERIPH_ADDR_WIDTH),
    .REG_ADDR_WIDTH(REG_ADDR_WIDTH)
) hba_system_inst
(
    .clk(clk),
    .reset(reset),




    .basicio_led(basicio_led),
    .basicio_button(basicio_button),


    .qtr_out_en(slot2_qtr_out_en),
    .qtr_out_sig(slot2_qtr_out_sig),
    .qtr_in_sig(slot2_qtr_in_sig),
    .qtr_ctrl(slot2_qtr_ctrl),


    .motor_pwm(motor_pwm[1:0]),
    .motor_dir(motor_dir[1:0]),
    .motor_float_n(motor_float_n[1:0]),


    .sonar_trig(sonar_trig),
    .sonar_echo(sonar_echo)
);


SB_IO #(
    .PIN_TYPE(6'b 1010_01),
    .PULLUP(1'b1)
) slot2_qtr_port0_inst  (
    .PACKAGE_PIN(PIN_17),
    .OUTPUT_ENABLE(slot2_qtr_out_en[0]),
    .D_OUT_0(slot2_qtr_out_sig[0]),
    .D_IN_0(slot2_qtr_in_sig[0])
);


SB_IO #(
    .PIN_TYPE(6'b 1010_01),
    .PULLUP(1'b1)
) slot2_qtr_port1_inst  (
    .PACKAGE_PIN(PIN_16),
    .OUTPUT_ENABLE(slot2_qtr_out_en[1]),
    .D_OUT_0(slot2_qtr_out_sig[1]),
    .D_IN_0(slot2_qtr_in_sig[1])
);






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,

    output wire BLED,




    input wire PIN_1,
    input wire PIN_2,
    output wire [7:0] LED,


    inout wire PIN_14,
    inout wire PIN_15,
    inout wire PIN_16,
    inout wire PIN_17,



    output wire PIN_7,
    output wire PIN_6,
    output wire PIN_5,

    output wire PIN_10,
    output wire PIN_9,
    output wire PIN_8,


    output wire PIN_21,
    input  wire PIN_20,
    output wire PIN_19,
    input  wire PIN_18

);



parameter integer CLK_FREQUENCY = 60_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 [7:0] basicio_led;
wire [7:0] basicio_button;

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

assign basicio_button[0] = PIN_1;
assign basicio_button[1] = PIN_2;
assign basicio_button[7:2] = 0;
assign LED = basicio_led;
assign BLED = basicio_led[0];



wire [1:0] sonar_trig;
wire [1:0] sonar_echo;

assign PIN_21 = sonar_trig[0];
assign sonar_echo[0] = PIN_20;
assign PIN_19 = sonar_trig[1];
assign sonar_echo[1] = PIN_18;


wire [1:0] slot2_qtr_out_en;
wire [1:0] slot2_qtr_out_sig;
wire [1:0] slot2_qtr_in_sig;
wire [1:0] slot2_qtr_ctrl;
assign PIN_15 = slot2_qtr_ctrl[0];
assign PIN_14 = slot2_qtr_ctrl[1];


wire [1:0] motor_pwm;
wire [1:0] motor_dir;
wire [1:0] motor_float_n;
assign PIN_7 = motor_pwm[0];
assign PIN_6 = motor_dir[0];
assign PIN_5 = motor_float_n[0];
assign PIN_10 = motor_pwm[1];
assign PIN_9 = motor_dir[1];
assign PIN_8 = motor_float_n[1];




pll_60mhz pll_60mhz_inst (
    .clock_in(CLK_16MHZ),
    .clock_out(clk),
    .locked(locked)
);


hba_system # 
(
    .CLK_FREQUENCY(CLK_FREQUENCY),
    .BAUD(BAUD),
    .DBUS_WIDTH(DBUS_WIDTH),
    .PERIPH_ADDR_WIDTH(PERIPH_ADDR_WIDTH),
    .REG_ADDR_WIDTH(REG_ADDR_WIDTH)
) hba_system_inst
(
    .clk(clk),
    .reset(reset),




    .basicio_led(basicio_led),
    .basicio_button(basicio_button),


    .qtr_out_en(slot2_qtr_out_en),
    .qtr_out_sig(slot2_qtr_out_sig),
    .qtr_in_sig(slot2_qtr_in_sig),
    .qtr_ctrl(slot2_qtr_ctrl),


    .motor_pwm(motor_pwm[1:0]),
    .motor_dir(motor_dir[1:0]),
    .motor_float_n(motor_float_n[1:0]),


    .sonar_trig(sonar_trig),
    .sonar_echo(sonar_echo)
);


SB_IO #(
    .PIN_TYPE(6'b 1010_01),
    .PULLUP(1'b1)
) slot2_qtr_port0_inst  (
    .PACKAGE_PIN(PIN_17),
    .OUTPUT_ENABLE(slot2_qtr_out_en[0]),
    .D_OUT_0(slot2_qtr_out_sig[0]),
    .D_IN_0(slot2_qtr_in_sig[0])
);


SB_IO #(
    .PIN_TYPE(6'b 1010_01),
    .PULLUP(1'b1)
) slot2_qtr_port1_inst  (
    .PACKAGE_PIN(PIN_16),
    .OUTPUT_ENABLE(slot2_qtr_out_en[1]),
    .D_OUT_0(slot2_qtr_out_sig[1]),
    .D_IN_0(slot2_qtr_in_sig[1])
);






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

endmodule