data/full_repos/permissive/114459345/srcCache/inst_rom.v
1: b'%Error: data/full_repos/permissive/114459345/srcCache/inst_rom.v:2: Cannot find include file: defs.v\n`include "defs.v" \n         ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/114459345/srcCache,data/full_repos/permissive/114459345/defs.v\n             data/full_repos/permissive/114459345/srcCache,data/full_repos/permissive/114459345/defs.v.v\n             data/full_repos/permissive/114459345/srcCache,data/full_repos/permissive/114459345/defs.v.sv\n             defs.v\n             defs.v.v\n             defs.v.sv\n             obj_dir/defs.v\n             obj_dir/defs.v.v\n             obj_dir/defs.v.sv\n%Error: data/full_repos/permissive/114459345/srcCache/inst_rom.v:7: Define or directive not defined: \'`InstAddrBus\'\n input wire[`InstAddrBus] addr,\n            ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/114459345/srcCache/inst_rom.v:7: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n input wire[`InstAddrBus] addr,\n                        ^\n%Error: data/full_repos/permissive/114459345/srcCache/inst_rom.v:10: Define or directive not defined: \'`InstBus\'\n output reg[`InstBus] inst\n            ^~~~~~~~\n%Error: data/full_repos/permissive/114459345/srcCache/inst_rom.v:14: Define or directive not defined: \'`InstBus\'\n reg[`InstBus] inst_mem[0:`InstMemNum-1];\n     ^~~~~~~~\n%Error: data/full_repos/permissive/114459345/srcCache/inst_rom.v:14: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n reg[`InstBus] inst_mem[0:`InstMemNum-1];\n             ^\n%Error: data/full_repos/permissive/114459345/srcCache/inst_rom.v:14: Define or directive not defined: \'`InstMemNum\'\n reg[`InstBus] inst_mem[0:`InstMemNum-1];\n                          ^~~~~~~~~~~\n%Error: data/full_repos/permissive/114459345/srcCache/inst_rom.v:25: Define or directive not defined: \'`ChipDisable\'\n  if(ce == `ChipDisable)  begin\n           ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/114459345/srcCache/inst_rom.v:26: Define or directive not defined: \'`NopInst\'\n   inst <= `NopInst;\n           ^~~~~~~~\n%Error: Exiting due to 9 error(s)\n'
module inst_rom(

	input wire ce,
	input wire[`InstAddrBus] addr,
	

	output reg[`InstBus] inst

);
	
	reg[`InstBus] inst_mem[0:`InstMemNum-1];
	
	initial begin




		$readmemh("D:\\Coding\\cpu-risc-v\\inst_test\\helloworld.s", inst_mem);	
	end
	
	always @ (*) begin
		if(ce == `ChipDisable)  begin
			inst <= `NopInst;
		end
		else begin
			inst <= {inst_mem[addr >> 2][7:0], inst_mem[addr >> 2][15:8], inst_mem[addr >> 2][23:16], inst_mem[addr >> 2][31:24]};
		end
	end

endmodule
module inst_rom(

	input wire ce,
	input wire[`InstAddrBus] addr,
	

	output reg[`InstBus] inst

);

	
	reg[`InstBus] inst_mem[0:`InstMemNum-1];
	
	initial begin




		$readmemh("D:\\Coding\\cpu-risc-v\\inst_test\\helloworld.s", inst_mem);	
	end
	
	always @ (*) begin
		if(ce == `ChipDisable)  begin
			inst <= `NopInst;
		end
		else begin
			inst <= {inst_mem[addr >> 2][7:0], inst_mem[addr >> 2][15:8], inst_mem[addr >> 2][23:16], inst_mem[addr >> 2][31:24]};
		end
	end

endmodule