data/full_repos/permissive/168395472/problems/09_cpu_v3/cpu_top.v
1: b"%Error: data/full_repos/permissive/168395472/problems/09_cpu_v3/cpu_top.v:9: Cannot find file containing module: 'rom'\nrom rom(.clk(clk), .addr(instr_addr), .q(instr_data));\n^~~\n        ... Looked in:\n             data/full_repos/permissive/168395472/problems/09_cpu_v3,data/full_repos/permissive/168395472/rom\n             data/full_repos/permissive/168395472/problems/09_cpu_v3,data/full_repos/permissive/168395472/rom.v\n             data/full_repos/permissive/168395472/problems/09_cpu_v3,data/full_repos/permissive/168395472/rom.sv\n             rom\n             rom.v\n             rom.sv\n             obj_dir/rom\n             obj_dir/rom.v\n             obj_dir/rom.sv\n%Error: data/full_repos/permissive/168395472/problems/09_cpu_v3/cpu_top.v:14: Cannot find file containing module: 'mem_ctrl'\nmem_ctrl mem_ctrl(\n^~~~~~~~\n%Error: data/full_repos/permissive/168395472/problems/09_cpu_v3/cpu_top.v:19: Cannot find file containing module: 'core'\ncore core(\n^~~~\n%Error: Exiting due to 3 error(s)\n"
module cpu_top(
    input clk,

    output [15:0]data_out
);

wire [31:0]instr_addr;
wire [31:0]instr_data;
rom rom(.clk(clk), .addr(instr_addr), .q(instr_data));

wire [31:0]mem_addr;
wire [31:0]mem_data;
wire mem_we;
mem_ctrl mem_ctrl(
    .clk(clk), .addr(mem_addr), .data(mem_data),
    .we(mem_we), .data_out(data_out)
);

core core(
    .clk(clk),
    .instr_data(instr_data), .last_pc(31),
    .instr_addr(instr_addr),
    .mem_addr(mem_addr), .mem_data(mem_data),
    .mem_we(mem_we)
);

endmodule
module cpu_top(
    input clk,

    output [15:0]data_out
);


wire [31:0]instr_addr;
wire [31:0]instr_data;
rom rom(.clk(clk), .addr(instr_addr), .q(instr_data));

wire [31:0]mem_addr;
wire [31:0]mem_data;
wire mem_we;
mem_ctrl mem_ctrl(
    .clk(clk), .addr(mem_addr), .data(mem_data),
    .we(mem_we), .data_out(data_out)
);

core core(
    .clk(clk),
    .instr_data(instr_data), .last_pc(31),
    .instr_addr(instr_addr),
    .mem_addr(mem_addr), .mem_data(mem_data),
    .mem_we(mem_we)
);

endmodule