data/full_repos/permissive/435885222/sources/NCUT_MiniSys.v
1: b"%Error: data/full_repos/permissive/435885222/sources/NCUT_MiniSys.v:21: Cannot find file containing module: 'cpu'\n    cpu cpu0(\n    ^~~\n        ... Looked in:\n             data/full_repos/permissive/435885222/sources,data/full_repos/permissive/435885222/cpu\n             data/full_repos/permissive/435885222/sources,data/full_repos/permissive/435885222/cpu.v\n             data/full_repos/permissive/435885222/sources,data/full_repos/permissive/435885222/cpu.sv\n             cpu\n             cpu.v\n             cpu.sv\n             obj_dir/cpu\n             obj_dir/cpu.v\n             obj_dir/cpu.sv\n%Error: data/full_repos/permissive/435885222/sources/NCUT_MiniSys.v:33: Cannot find file containing module: 'inst_rom'\n    inst_rom inst_rom0(\n    ^~~~~~~~\n%Error: data/full_repos/permissive/435885222/sources/NCUT_MiniSys.v:38: Cannot find file containing module: 'data_ram'\n    data_ram data_ram0(\n    ^~~~~~~~\n%Error: Exiting due to 3 error(s)\n"
module NCUT_MiniSys(
    input clk,
    input rst
    );

    wire[31:0] inst_addr;
    wire[31:0] inst;
    wire rom_ce;
    wire[31:0] mem_data_out;
    wire[31:0] mem_addr_in;
    wire[31:0] mem_data_in;
    wire mem_we_in;
    wire mem_ce_in;
    cpu cpu0(
        .clk(clk),
        .rst(rst),
        .rom_data_in(inst),
        .ram_data_in(mem_data_out),
        .rom_addr_out(inst_addr),
        .rom_ce_out(rom_ce),
        .ram_addr_out(mem_addr_in),
        .ram_data_out(mem_data_in),
        .ram_we_out(mem_we_in),
        .ram_ce_out(mem_ce_in)
    );
    inst_rom inst_rom0(
        .ce(rom_ce),
        .addr(inst_addr),
        .inst(inst)
    );
    data_ram data_ram0(
        .clk(clk),
        .ce(mem_ce_in),
        .we(mem_we_in),
        .addr(mem_addr_in),
        .data_in(mem_data_in),
        .data_out(mem_data_out)
    );
endmodule
module NCUT_MiniSys(
    input clk,
    input rst
    );


    wire[31:0] inst_addr;
    wire[31:0] inst;
    wire rom_ce;
    wire[31:0] mem_data_out;
    wire[31:0] mem_addr_in;
    wire[31:0] mem_data_in;
    wire mem_we_in;
    wire mem_ce_in;
    cpu cpu0(
        .clk(clk),
        .rst(rst),
        .rom_data_in(inst),
        .ram_data_in(mem_data_out),
        .rom_addr_out(inst_addr),
        .rom_ce_out(rom_ce),
        .ram_addr_out(mem_addr_in),
        .ram_data_out(mem_data_in),
        .ram_we_out(mem_we_in),
        .ram_ce_out(mem_ce_in)
    );
    inst_rom inst_rom0(
        .ce(rom_ce),
        .addr(inst_addr),
        .inst(inst)
    );
    data_ram data_ram0(
        .clk(clk),
        .ce(mem_ce_in),
        .we(mem_we_in),
        .addr(mem_addr_in),
        .data_in(mem_data_in),
        .data_out(mem_data_out)
    );
endmodule