data/full_repos/permissive/194847941/demo/12_game/sources/rtl/mcu/cpu.v
1: b"%Error: data/full_repos/permissive/194847941/demo/12_game/sources/rtl/mcu/cpu.v:97: Cannot find file containing module: 'fetch'\nfetch u_fetch\n^~~~~\n        ... Looked in:\n             data/full_repos/permissive/194847941/demo/12_game/sources/rtl/mcu,data/full_repos/permissive/194847941/fetch\n             data/full_repos/permissive/194847941/demo/12_game/sources/rtl/mcu,data/full_repos/permissive/194847941/fetch.v\n             data/full_repos/permissive/194847941/demo/12_game/sources/rtl/mcu,data/full_repos/permissive/194847941/fetch.sv\n             fetch\n             fetch.v\n             fetch.sv\n             obj_dir/fetch\n             obj_dir/fetch.v\n             obj_dir/fetch.sv\n%Error: data/full_repos/permissive/194847941/demo/12_game/sources/rtl/mcu/cpu.v:127: Cannot find file containing module: 'decode'\ndecode u_decode\n^~~~~~\n%Error: data/full_repos/permissive/194847941/demo/12_game/sources/rtl/mcu/cpu.v:141: Cannot find file containing module: 'execute'\nexecute u_execute\n^~~~~~~\n%Error: data/full_repos/permissive/194847941/demo/12_game/sources/rtl/mcu/cpu.v:190: Cannot find file containing module: 'alu'\nalu u_alu\n^~~\n%Error: data/full_repos/permissive/194847941/demo/12_game/sources/rtl/mcu/cpu.v:208: Cannot find file containing module: 'timer'\ntimer u_timer\n^~~~~\n%Error: data/full_repos/permissive/194847941/demo/12_game/sources/rtl/mcu/cpu.v:221: Cannot find file containing module: 'debug'\ndebug u_debug\n^~~~~\n%Error: Exiting due to 6 error(s)\n"
module cpu
(
    input   wire		clk,
    

	output	wire		rom_wen,
	output	wire [23:0]	rom_waddr,
	output	wire [7:0]	rom_wdata,
    output  wire		rom_ren,
	output  wire [23:0]	rom_raddr,
	input   wire [7:0]	rom_rdata,
    

	output	wire		ram_wen,
	output	wire [7:0]	ram_waddr,
	output	wire [7:0]	ram_wdata,
    output  wire		ram_ren,
	output  wire [7:0]	ram_raddr,
	input   wire [7:0]	ram_rdata,
    

	output	wire		bus_wen,
	output	wire [7:0]	bus_waddr,
	output	wire [7:0]	bus_wdata,
	output  wire		bus_ren,
	output  wire [7:0]	bus_raddr,
	input   wire [7:0]	bus_rdata,
    

	input	wire		recv_en,
	input	wire [7:0]	recv_cmd,
	input	wire [7:0]	recv_data,
    output  wire		send_en,
    output  wire [7:0]	send_cmd,
    output  wire [7:0]	send_data,
    input   wire		send_ready
);


wire pc_wen;
wire [23:0] pc_wdata;
wire inst_en;
wire [7:0] inst;


wire [39:0] decode_cmd;
wire [7:0] decode_data;


wire timer_wen;
wire [23:0] timer_wdata;
wire timer_state;


wire [10:0] alu_cmd;
wire [7:0] alu_in1;
wire [7:0] alu_in2;
wire [8:0] alu_out0;
wire [15:0] alu_out1;
wire [7:0] alu_out2;
wire [7:0] alu_out3;
wire [7:0] alu_out4;


wire dbg_en;
wire dbg_rom_ren;
wire [23:0] dbg_rom_raddr;
wire [7:0] dbg_rom_rdata;
wire dbg_inst_en;
wire [7:0] dbg_inst;
wire dbg_info_en;
wire [3:0] read_abcd;
wire [15:0] dbg_info;


fetch u_fetch
(
    .clk            (clk            ),
    

    .rom_ren        (rom_ren        ),
    .rom_raddr      (rom_raddr      ),
    .rom_rdata      (rom_rdata      ),
    

    .dbg_en			(dbg_en			),
    .dbg_rom_ren    (dbg_rom_ren    ),
    .dbg_rom_raddr  (dbg_rom_raddr  ),
    .dbg_rom_rdata  (dbg_rom_rdata  ),
    .dbg_inst_en    (dbg_inst_en    ),
    .dbg_inst       (dbg_inst       ),
    

    .timer_state    (timer_state    ),
    

    .pc_wen         (pc_wen         ),
    .pc_wdata       (pc_wdata       ),
    

    .inst_en        (inst_en        ),
    .inst           (inst           )
);


decode u_decode
(
    .clk        	(clk        	),
    

    .inst_en    	(inst_en    	),
    .inst       	(inst       	),
    

    .decode_cmd		(decode_cmd 	),
    .decode_data	(decode_data	)
);


execute u_execute
(
    .clk        	(clk        	),
    

    .decode_cmd 	(decode_cmd 	),
    .decode_data	(decode_data	),


    .ram_wen    	(ram_wen    	),
    .ram_waddr  	(ram_waddr  	),
    .ram_wdata  	(ram_wdata  	),
    .ram_ren    	(ram_ren    	),
    .ram_raddr  	(ram_raddr  	),
    .ram_rdata  	(ram_rdata  	),
    

    .bus_wen    	(bus_wen    	),
    .bus_waddr  	(bus_waddr  	),
    .bus_wdata  	(bus_wdata  	),
    .bus_ren    	(bus_ren    	),
    .bus_raddr  	(bus_raddr  	),
    .bus_rdata  	(bus_rdata  	),
    

    .alu_cmd    	(alu_cmd    	),
    .alu_in1    	(alu_in1    	),
    .alu_in2    	(alu_in2    	),
    .alu_out0   	(alu_out0   	), 
    .alu_out1   	(alu_out1   	), 
    .alu_out2   	(alu_out2   	), 
    .alu_out3   	(alu_out3   	), 
    .alu_out4   	(alu_out4   	), 
    

    .pc_wen     	(pc_wen     	),
    .pc_wdata   	(pc_wdata   	),
    

    .read_abcd      (read_abcd      ),
    .dbg_info_en	(dbg_info_en	),
    .dbg_info		(dbg_info		),
    

    .timer_wen  	(timer_wen  	),
    .timer_wdata	(timer_wdata	)
);


alu u_alu
(
    .clk            (clk            ),
    

    .alu_cmd        (alu_cmd        ),
    .alu_in1        (alu_in1        ),
    .alu_in2        (alu_in2        ),
    

    .alu_out0       (alu_out0       ),
    .alu_out1       (alu_out1       ),
    .alu_out2       (alu_out2       ),
    .alu_out3       (alu_out3       ),
    .alu_out4       (alu_out4       )
);


timer u_timer
(
    .clk            (clk            ),
    

    .timer_wen		(timer_wen      ),
    .timer_wdata	(timer_wdata    ),
    
    .timer_state    (timer_state    )
);



debug u_debug
(
    .clk            (clk            ),


    .rom_wen        (rom_wen        ),
    .rom_waddr      (rom_waddr      ),
    .rom_wdata      (rom_wdata      ),
    

    .rom_ren        (dbg_rom_ren    ),
    .rom_raddr      (dbg_rom_raddr  ),
    .rom_rdata      (dbg_rom_rdata  ),
    

    .dbg_en			(dbg_en			),
    .dbg_inst_en    (dbg_inst_en    ),
    .dbg_inst       (dbg_inst       ),
    

    .read_abcd      (read_abcd      ),
    .dbg_info_en	(dbg_info_en	),
    .dbg_info		(dbg_info		),


    .recv_en        (recv_en        ),
    .recv_cmd		(recv_cmd		),
    .recv_data      (recv_data      ),
    .send_en        (send_en        ),
    .send_cmd		(send_cmd		),
    .send_data		(send_data		),
    .send_ready     (send_ready     )
);

endmodule
module cpu
(
    input   wire		clk,
    

	output	wire		rom_wen,
	output	wire [23:0]	rom_waddr,
	output	wire [7:0]	rom_wdata,
    output  wire		rom_ren,
	output  wire [23:0]	rom_raddr,
	input   wire [7:0]	rom_rdata,
    

	output	wire		ram_wen,
	output	wire [7:0]	ram_waddr,
	output	wire [7:0]	ram_wdata,
    output  wire		ram_ren,
	output  wire [7:0]	ram_raddr,
	input   wire [7:0]	ram_rdata,
    

	output	wire		bus_wen,
	output	wire [7:0]	bus_waddr,
	output	wire [7:0]	bus_wdata,
	output  wire		bus_ren,
	output  wire [7:0]	bus_raddr,
	input   wire [7:0]	bus_rdata,
    

	input	wire		recv_en,
	input	wire [7:0]	recv_cmd,
	input	wire [7:0]	recv_data,
    output  wire		send_en,
    output  wire [7:0]	send_cmd,
    output  wire [7:0]	send_data,
    input   wire		send_ready
);



wire pc_wen;
wire [23:0] pc_wdata;
wire inst_en;
wire [7:0] inst;


wire [39:0] decode_cmd;
wire [7:0] decode_data;


wire timer_wen;
wire [23:0] timer_wdata;
wire timer_state;


wire [10:0] alu_cmd;
wire [7:0] alu_in1;
wire [7:0] alu_in2;
wire [8:0] alu_out0;
wire [15:0] alu_out1;
wire [7:0] alu_out2;
wire [7:0] alu_out3;
wire [7:0] alu_out4;


wire dbg_en;
wire dbg_rom_ren;
wire [23:0] dbg_rom_raddr;
wire [7:0] dbg_rom_rdata;
wire dbg_inst_en;
wire [7:0] dbg_inst;
wire dbg_info_en;
wire [3:0] read_abcd;
wire [15:0] dbg_info;


fetch u_fetch
(
    .clk            (clk            ),
    

    .rom_ren        (rom_ren        ),
    .rom_raddr      (rom_raddr      ),
    .rom_rdata      (rom_rdata      ),
    

    .dbg_en			(dbg_en			),
    .dbg_rom_ren    (dbg_rom_ren    ),
    .dbg_rom_raddr  (dbg_rom_raddr  ),
    .dbg_rom_rdata  (dbg_rom_rdata  ),
    .dbg_inst_en    (dbg_inst_en    ),
    .dbg_inst       (dbg_inst       ),
    

    .timer_state    (timer_state    ),
    

    .pc_wen         (pc_wen         ),
    .pc_wdata       (pc_wdata       ),
    

    .inst_en        (inst_en        ),
    .inst           (inst           )
);


decode u_decode
(
    .clk        	(clk        	),
    

    .inst_en    	(inst_en    	),
    .inst       	(inst       	),
    

    .decode_cmd		(decode_cmd 	),
    .decode_data	(decode_data	)
);


execute u_execute
(
    .clk        	(clk        	),
    

    .decode_cmd 	(decode_cmd 	),
    .decode_data	(decode_data	),


    .ram_wen    	(ram_wen    	),
    .ram_waddr  	(ram_waddr  	),
    .ram_wdata  	(ram_wdata  	),
    .ram_ren    	(ram_ren    	),
    .ram_raddr  	(ram_raddr  	),
    .ram_rdata  	(ram_rdata  	),
    

    .bus_wen    	(bus_wen    	),
    .bus_waddr  	(bus_waddr  	),
    .bus_wdata  	(bus_wdata  	),
    .bus_ren    	(bus_ren    	),
    .bus_raddr  	(bus_raddr  	),
    .bus_rdata  	(bus_rdata  	),
    

    .alu_cmd    	(alu_cmd    	),
    .alu_in1    	(alu_in1    	),
    .alu_in2    	(alu_in2    	),
    .alu_out0   	(alu_out0   	), 
    .alu_out1   	(alu_out1   	), 
    .alu_out2   	(alu_out2   	), 
    .alu_out3   	(alu_out3   	), 
    .alu_out4   	(alu_out4   	), 
    

    .pc_wen     	(pc_wen     	),
    .pc_wdata   	(pc_wdata   	),
    

    .read_abcd      (read_abcd      ),
    .dbg_info_en	(dbg_info_en	),
    .dbg_info		(dbg_info		),
    

    .timer_wen  	(timer_wen  	),
    .timer_wdata	(timer_wdata	)
);


alu u_alu
(
    .clk            (clk            ),
    

    .alu_cmd        (alu_cmd        ),
    .alu_in1        (alu_in1        ),
    .alu_in2        (alu_in2        ),
    

    .alu_out0       (alu_out0       ),
    .alu_out1       (alu_out1       ),
    .alu_out2       (alu_out2       ),
    .alu_out3       (alu_out3       ),
    .alu_out4       (alu_out4       )
);


timer u_timer
(
    .clk            (clk            ),
    

    .timer_wen		(timer_wen      ),
    .timer_wdata	(timer_wdata    ),
    
    .timer_state    (timer_state    )
);



debug u_debug
(
    .clk            (clk            ),


    .rom_wen        (rom_wen        ),
    .rom_waddr      (rom_waddr      ),
    .rom_wdata      (rom_wdata      ),
    

    .rom_ren        (dbg_rom_ren    ),
    .rom_raddr      (dbg_rom_raddr  ),
    .rom_rdata      (dbg_rom_rdata  ),
    

    .dbg_en			(dbg_en			),
    .dbg_inst_en    (dbg_inst_en    ),
    .dbg_inst       (dbg_inst       ),
    

    .read_abcd      (read_abcd      ),
    .dbg_info_en	(dbg_info_en	),
    .dbg_info		(dbg_info		),


    .recv_en        (recv_en        ),
    .recv_cmd		(recv_cmd		),
    .recv_data      (recv_data      ),
    .send_en        (send_en        ),
    .send_cmd		(send_cmd		),
    .send_data		(send_data		),
    .send_ready     (send_ready     )
);

endmodule