data/full_repos/permissive/188068190/ridecore-src-buggy/imem.v
1: b'%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/imem.v:1: Cannot find include file: constants.vh\n`include "constants.vh" \n         ^~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/188068190/ridecore-src-buggy,data/full_repos/permissive/188068190/constants.vh\n             data/full_repos/permissive/188068190/ridecore-src-buggy,data/full_repos/permissive/188068190/constants.vh.v\n             data/full_repos/permissive/188068190/ridecore-src-buggy,data/full_repos/permissive/188068190/constants.vh.sv\n             constants.vh\n             constants.vh.v\n             constants.vh.sv\n             obj_dir/constants.vh\n             obj_dir/constants.vh.v\n             obj_dir/constants.vh.sv\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/imem.v:7: Define or directive not defined: \'`INSN_LEN\'\n     output reg [`INSN_LEN*4-1:0] data\n                 ^~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/imem.v:7: syntax error, unexpected \'*\', expecting TYPE-IDENTIFIER\n     output reg [`INSN_LEN*4-1:0] data\n                          ^\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/imem.v:9: Define or directive not defined: \'`INSN_LEN\'\n   reg [`INSN_LEN*4-1:0]    mem[0:511];\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/imem.v:9: syntax error, unexpected \'*\', expecting TYPE-IDENTIFIER\n   reg [`INSN_LEN*4-1:0]    mem[0:511];\n                 ^\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/imem.v:18: Define or directive not defined: \'`INSN_LEN\'\n        output reg [4*`INSN_LEN-1:0] rdata,\n                      ^~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/imem.v:19: Define or directive not defined: \'`INSN_LEN\'\n        input wire [4*`INSN_LEN-1:0] wdata,\n                      ^~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/imem.v:22: Define or directive not defined: \'`INSN_LEN\'\n   reg [`INSN_LEN*4-1:0]    mem[0:511];\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/imem.v:22: syntax error, unexpected \'*\', expecting TYPE-IDENTIFIER\n   reg [`INSN_LEN*4-1:0]    mem[0:511];\n                 ^\n%Error: Exiting due to 9 error(s)\n'
module imem_ld(
	       input wire 		    clk,
	       input wire [8:0] 	    addr,
	       output reg [4*`INSN_LEN-1:0] rdata,
	       input wire [4*`INSN_LEN-1:0] wdata,
	       input wire we
	       );
   reg [`INSN_LEN*4-1:0] 		 mem[0:511];
   always @ (posedge clk) begin
      rdata <= mem[addr];
      if (we) begin
	 mem[addr] <= wdata;
      end
   end
endmodule
module imem_ld(
	       input wire 		    clk,
	       input wire [8:0] 	    addr,
	       output reg [4*`INSN_LEN-1:0] rdata,
	       input wire [4*`INSN_LEN-1:0] wdata,
	       input wire we
	       );

   reg [`INSN_LEN*4-1:0] 		 mem[0:511];
   always @ (posedge clk) begin
      rdata <= mem[addr];
      if (we) begin
	 mem[addr] <= wdata;
      end
   end
endmodule