data/full_repos/permissive/117179686/src/openmips_min_sopc.v
1: b'%Error: data/full_repos/permissive/117179686/src/openmips_min_sopc.v:1: Cannot find include file: defines.v\n`include "defines.v" \n         ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/117179686/src,data/full_repos/permissive/117179686/defines.v\n             data/full_repos/permissive/117179686/src,data/full_repos/permissive/117179686/defines.v.v\n             data/full_repos/permissive/117179686/src,data/full_repos/permissive/117179686/defines.v.sv\n             defines.v\n             defines.v.v\n             defines.v.sv\n             obj_dir/defines.v\n             obj_dir/defines.v.v\n             obj_dir/defines.v.sv\n%Error: data/full_repos/permissive/117179686/src/openmips_min_sopc.v:10: Define or directive not defined: \'`InstAddrBus\'\n wire[`InstAddrBus] inst_addr;\n      ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/117179686/src/openmips_min_sopc.v:10: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n wire[`InstAddrBus] inst_addr;\n                  ^\n%Error: data/full_repos/permissive/117179686/src/openmips_min_sopc.v:11: Define or directive not defined: \'`InstBus\'\n wire[`InstBus] inst;\n      ^~~~~~~~\n%Error: data/full_repos/permissive/117179686/src/openmips_min_sopc.v:11: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n wire[`InstBus] inst;\n              ^\n%Error: data/full_repos/permissive/117179686/src/openmips_min_sopc.v:14: Define or directive not defined: \'`RegBus\'\n wire[`RegBus] mem_addr_i;\n      ^~~~~~~\n%Error: data/full_repos/permissive/117179686/src/openmips_min_sopc.v:14: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n wire[`RegBus] mem_addr_i;\n             ^\n%Error: data/full_repos/permissive/117179686/src/openmips_min_sopc.v:15: Define or directive not defined: \'`RegBus\'\n wire[`RegBus] mem_data_i;\n      ^~~~~~~\n%Error: data/full_repos/permissive/117179686/src/openmips_min_sopc.v:15: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n wire[`RegBus] mem_data_i;\n             ^\n%Error: data/full_repos/permissive/117179686/src/openmips_min_sopc.v:16: Define or directive not defined: \'`RegBus\'\n wire[`RegBus] mem_data_o;\n      ^~~~~~~\n%Error: data/full_repos/permissive/117179686/src/openmips_min_sopc.v:16: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n wire[`RegBus] mem_data_o;\n             ^\n%Error: Exiting due to 11 error(s)\n'
module openmips_min_sopc(

	input wire clk,
	input wire rst
	
);

	wire[`InstAddrBus] inst_addr;
	wire[`InstBus] inst;
	wire rom_ce;
	wire mem_we_i;
	wire[`RegBus] mem_addr_i;
	wire[`RegBus] mem_data_i;
	wire[`RegBus] mem_data_o;
	wire[3:0] mem_sel_i;  
	wire mem_ce_i;
	wire arti;  

	openmips openmips0(
		.clk(clk),
		.rst(rst),
	
		.rom_addr_o(inst_addr),
		.rom_data_i(inst),
		.rom_ce_o(rom_ce),

		.ram_we_o(mem_we_i),
		.ram_addr_o(mem_addr_i),
		.ram_sel_o(mem_sel_i),
		.ram_data_o(mem_data_i),
		.ram_data_i(mem_data_o),
		.ram_ce_o(mem_ce_i),
		.artificial_go_out(arti)
	
	);

	data_ram data_ram0(
		.clk(clk),
		.we(mem_we_i),
		.mem_addr(mem_addr_i),
		.pc_addr(inst_addr),
		.sel(mem_sel_i),
		.data_i(mem_data_i),
		.data_o(mem_data_o),
		.mem_ce(mem_ce_i),
		.pc_ce(rom_ce),
		.inst(inst),
		.who(arti)	
	);

endmodule
module openmips_min_sopc(

	input wire clk,
	input wire rst
	
);


	wire[`InstAddrBus] inst_addr;
	wire[`InstBus] inst;
	wire rom_ce;
	wire mem_we_i;
	wire[`RegBus] mem_addr_i;
	wire[`RegBus] mem_data_i;
	wire[`RegBus] mem_data_o;
	wire[3:0] mem_sel_i;  
	wire mem_ce_i;
	wire arti;  

	openmips openmips0(
		.clk(clk),
		.rst(rst),
	
		.rom_addr_o(inst_addr),
		.rom_data_i(inst),
		.rom_ce_o(rom_ce),

		.ram_we_o(mem_we_i),
		.ram_addr_o(mem_addr_i),
		.ram_sel_o(mem_sel_i),
		.ram_data_o(mem_data_i),
		.ram_data_i(mem_data_o),
		.ram_ce_o(mem_ce_i),
		.artificial_go_out(arti)
	
	);

	data_ram data_ram0(
		.clk(clk),
		.we(mem_we_i),
		.mem_addr(mem_addr_i),
		.pc_addr(inst_addr),
		.sel(mem_sel_i),
		.data_i(mem_data_i),
		.data_o(mem_data_o),
		.mem_ce(mem_ce_i),
		.pc_ce(rom_ce),
		.inst(inst),
		.who(arti)	
	);

endmodule