data/full_repos/permissive/175393019/rtl/xprog_rom.v
1: b'%Error: data/full_repos/permissive/175393019/rtl/xprog_rom.v:2: Cannot find include file: xdefs.vh\n`include "xdefs.vh" \n         ^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/175393019/rtl,data/full_repos/permissive/175393019/xdefs.vh\n             data/full_repos/permissive/175393019/rtl,data/full_repos/permissive/175393019/xdefs.vh.v\n             data/full_repos/permissive/175393019/rtl,data/full_repos/permissive/175393019/xdefs.vh.sv\n             xdefs.vh\n             xdefs.vh.v\n             xdefs.vh.sv\n             obj_dir/xdefs.vh\n             obj_dir/xdefs.vh.v\n             obj_dir/xdefs.vh.sv\n%Error: data/full_repos/permissive/175393019/rtl/xprog_rom.v:3: Cannot find include file: xctrldefs.vh\n`include "xctrldefs.vh" \n         ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/175393019/rtl/xprog_rom.v:4: Cannot find include file: xprogdefs.vh\n`include "xprogdefs.vh" \n         ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/175393019/rtl/xprog_rom.v:8: Define or directive not defined: \'`PROG_ROM_ADDR_W\'\n     input [`PROG_ROM_ADDR_W-1:0] pc,\n            ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/175393019/rtl/xprog_rom.v:9: Define or directive not defined: \'`INSTR_W\'\n     output reg [`INSTR_W-1:0]   instruction\n                 ^~~~~~~~\n%Error: data/full_repos/permissive/175393019/rtl/xprog_rom.v:12: Define or directive not defined: \'`INSTR_W\'\n   reg [`INSTR_W-1:0]      mem [2**`PROG_ROM_ADDR_W-1:0];\n        ^~~~~~~~\n%Error: data/full_repos/permissive/175393019/rtl/xprog_rom.v:12: Define or directive not defined: \'`PROG_ROM_ADDR_W\'\n   reg [`INSTR_W-1:0]      mem [2**`PROG_ROM_ADDR_W-1:0];\n                                   ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/175393019/rtl/xprog_rom.v:18: Define or directive not defined: \'`PROG_ROM_ADDR_W\'\n   initial $readmemh("./bootrom.hex",mem,0,2**`PROG_ROM_ADDR_W-1);\n                                              ^~~~~~~~~~~~~~~~\n%Error: Exiting due to 8 error(s)\n'
module xprog_rom(
	    input 			 clk,
	    input [`PROG_ROM_ADDR_W-1:0] pc,
	    output reg [`INSTR_W-1:0] 	 instruction
	    );

   reg [`INSTR_W-1:0] 			  mem [2**`PROG_ROM_ADDR_W-1:0];
   wire 				  en;

   assign en = 1'b1;
 

   initial $readmemh("./bootrom.hex",mem,0,2**`PROG_ROM_ADDR_W-1);
 

   always @ (posedge clk)
      if (en)
	instruction <= mem[pc];
  
endmodule
module xprog_rom(
	    input 			 clk,
	    input [`PROG_ROM_ADDR_W-1:0] pc,
	    output reg [`INSTR_W-1:0] 	 instruction
	    );


   reg [`INSTR_W-1:0] 			  mem [2**`PROG_ROM_ADDR_W-1:0];
   wire 				  en;

   assign en = 1'b1;
 

   initial $readmemh("./bootrom.hex",mem,0,2**`PROG_ROM_ADDR_W-1);
 

   always @ (posedge clk)
      if (en)
	instruction <= mem[pc];
  
endmodule