data/full_repos/permissive/142505464/top/picorv32_demo/picorv32_demo_top.v
1: b"%Error: data/full_repos/permissive/142505464/top/picorv32_demo/picorv32_demo_top.v:17: Cannot find file containing module: 'sys_clk'\nsys_clk #(\n^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/142505464/top/picorv32_demo,data/full_repos/permissive/142505464/sys_clk\n             data/full_repos/permissive/142505464/top/picorv32_demo,data/full_repos/permissive/142505464/sys_clk.v\n             data/full_repos/permissive/142505464/top/picorv32_demo,data/full_repos/permissive/142505464/sys_clk.sv\n             sys_clk\n             sys_clk.v\n             sys_clk.sv\n             obj_dir/sys_clk\n             obj_dir/sys_clk.v\n             obj_dir/sys_clk.sv\n%Error: data/full_repos/permissive/142505464/top/picorv32_demo/picorv32_demo_top.v:37: Cannot find file containing module: 'picorv32_demo_system'\npicorv32_demo_system #(\n^~~~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module picorv32_demo_top #(
    parameter firmware_file = "../../firmware/firmware.hex"
)
(
    input            sysclk_i,

    output [4:0]     gpio_led_o
);

wire clk_125;
wire clk_200;
wire locked;

wire rst = ~locked;
sys_clk #(
    .DIFF_CLKIN     ("FALSE"),
    .CLKIN_PERIOD   (83.33),
    .MULT           (62.500),
    .DIV0           (7.5),
    .DIV1           (7.5)
) cmp_sys_clk (
    .sysclk_p_i     (sysclk_i),
    .sysclk_n_i     (1'b0),
    .rst_i          (1'b0),
    .clk_out0_o     (clk_125),
    .clk_out1_o     (clk_200),
    .locked_o       (locked)
);

wire [31:0] gpio;
wire trap;
wire trace_valid;
wire [35:0] trace_data;
reg [31:0] irq = 0;
picorv32_demo_system #(
    .firmware_file  (firmware_file)
) cmp_picorv32_demo_system (
    .clk_i          (clk_125),
    .rst_i          (rst),
    .trap_o         (trap),
    .trace_valid_o  (trace_valid),
    .trace_data_o   (trace_data),
	.mem_instr_o    (mem_instr),

    .irq_i          (irq),

    .gpio_o         (gpio)
);

assign gpio_led_o[0] = gpio[0];
assign gpio_led_o[1] = gpio[1];

assign gpio_led_o[2] = ~gpio[2];
assign gpio_led_o[3] = ~gpio[3];
assign gpio_led_o[4] = ~trap;

endmodule
module picorv32_demo_top #(
    parameter firmware_file = "../../firmware/firmware.hex"
)
(
    input            sysclk_i,

    output [4:0]     gpio_led_o
);


wire clk_125;
wire clk_200;
wire locked;

wire rst = ~locked;
sys_clk #(
    .DIFF_CLKIN     ("FALSE"),
    .CLKIN_PERIOD   (83.33),
    .MULT           (62.500),
    .DIV0           (7.5),
    .DIV1           (7.5)
) cmp_sys_clk (
    .sysclk_p_i     (sysclk_i),
    .sysclk_n_i     (1'b0),
    .rst_i          (1'b0),
    .clk_out0_o     (clk_125),
    .clk_out1_o     (clk_200),
    .locked_o       (locked)
);

wire [31:0] gpio;
wire trap;
wire trace_valid;
wire [35:0] trace_data;
reg [31:0] irq = 0;
picorv32_demo_system #(
    .firmware_file  (firmware_file)
) cmp_picorv32_demo_system (
    .clk_i          (clk_125),
    .rst_i          (rst),
    .trap_o         (trap),
    .trace_valid_o  (trace_valid),
    .trace_data_o   (trace_data),
	.mem_instr_o    (mem_instr),

    .irq_i          (irq),

    .gpio_o         (gpio)
);

assign gpio_led_o[0] = gpio[0];
assign gpio_led_o[1] = gpio[1];

assign gpio_led_o[2] = ~gpio[2];
assign gpio_led_o[3] = ~gpio[3];
assign gpio_led_o[4] = ~trap;

endmodule