data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v
1: b'%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.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/gshare.v:10: Define or directive not defined: \'`GSH_BHR_LEN\'\n    input wire [`GSH_BHR_LEN-1:0] bhr0,\n                ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:11: Define or directive not defined: \'`GSH_BHR_LEN\'\n    input wire [`GSH_BHR_LEN-1:0] bhr1,\n                ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:12: Define or directive not defined: \'`GSH_BHR_LEN\'\n    input wire [`GSH_BHR_LEN-1:0] bhr2,\n                ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:13: Define or directive not defined: \'`GSH_BHR_LEN\'\n    input wire [`GSH_BHR_LEN-1:0] bhr3,\n                ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:14: Define or directive not defined: \'`GSH_BHR_LEN\'\n    input wire [`GSH_BHR_LEN-1:0] bhr4,\n                ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:15: Define or directive not defined: \'`GSH_BHR_LEN\'\n    output reg [`GSH_BHR_LEN-1:0] out\n                ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:36: Define or directive not defined: \'`ADDR_LEN\'\n   input wire [`ADDR_LEN-1:0]   pc,\n               ^~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:41: Define or directive not defined: \'`GSH_PHT_SEL\'\n   input wire [`GSH_PHT_SEL-1:0] went,\n               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:42: Define or directive not defined: \'`SPECTAG_LEN\'\n   input wire [`SPECTAG_LEN-1:0] mpft_valid,\n               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:45: Define or directive not defined: \'`SPECTAG_LEN\'\n   input wire [`SPECTAG_LEN-1:0] prtag,\n               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:46: Define or directive not defined: \'`GSH_BHR_LEN\'\n   output reg [`GSH_BHR_LEN-1:0] bhr_master,\n               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:47: Define or directive not defined: \'`SPECTAG_LEN\'\n   input wire [`SPECTAG_LEN-1:0] spectagnow\n               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:50: Define or directive not defined: \'`GSH_BHR_LEN\'\n   reg [`GSH_BHR_LEN-1:0]   bhr0;\n        ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:51: Define or directive not defined: \'`GSH_BHR_LEN\'\n   reg [`GSH_BHR_LEN-1:0]   bhr1;\n        ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:52: Define or directive not defined: \'`GSH_BHR_LEN\'\n   reg [`GSH_BHR_LEN-1:0]   bhr2;\n        ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:53: Define or directive not defined: \'`GSH_BHR_LEN\'\n   reg [`GSH_BHR_LEN-1:0]   bhr3;\n        ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:54: Define or directive not defined: \'`GSH_BHR_LEN\'\n   reg [`GSH_BHR_LEN-1:0]   bhr4;\n        ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:55: Define or directive not defined: \'`GSH_BHR_LEN\'\n   wire [`GSH_BHR_LEN-1:0]   bhr_fix;\n         ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:87: Define or directive not defined: \'`GSH_BHR_LEN\'\n  bhr0 <= (prtag == 5\'b00001) ? {bhr_master[`GSH_BHR_LEN-2:0], predict_cond} : bhr0; \n                                            ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:88: Define or directive not defined: \'`GSH_BHR_LEN\'\n  bhr1 <= (prtag == 5\'b00010) ? {bhr_master[`GSH_BHR_LEN-2:0], predict_cond} : bhr1;\n                                            ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:89: Define or directive not defined: \'`GSH_BHR_LEN\'\n  bhr2 <= (prtag == 5\'b00100) ? {bhr_master[`GSH_BHR_LEN-2:0], predict_cond} : bhr2;\n                                            ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:90: Define or directive not defined: \'`GSH_BHR_LEN\'\n  bhr3 <= (prtag == 5\'b01000) ? {bhr_master[`GSH_BHR_LEN-2:0], predict_cond} : bhr3;\n                                            ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:91: Define or directive not defined: \'`GSH_BHR_LEN\'\n  bhr4 <= (prtag == 5\'b10000) ? {bhr_master[`GSH_BHR_LEN-2:0], predict_cond} : bhr4;\n                                            ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:94: Define or directive not defined: \'`GSH_BHR_LEN\'\n     bhr0 <= {bhr0[`GSH_BHR_LEN-2:0], predict_cond};\n                   ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:97: Define or directive not defined: \'`GSH_BHR_LEN\'\n     bhr1 <= {bhr1[`GSH_BHR_LEN-2:0], predict_cond};\n                   ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:100: Define or directive not defined: \'`GSH_BHR_LEN\'\n     bhr2 <= {bhr2[`GSH_BHR_LEN-2:0], predict_cond};\n                   ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:103: Define or directive not defined: \'`GSH_BHR_LEN\'\n     bhr3 <= {bhr3[`GSH_BHR_LEN-2:0], predict_cond};\n                   ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:106: Define or directive not defined: \'`GSH_BHR_LEN\'\n     bhr4 <= {bhr4[`GSH_BHR_LEN-2:0], predict_cond};\n                   ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:109: Define or directive not defined: \'`GSH_BHR_LEN\'\n     bhr_master <= {bhr_master[`GSH_BHR_LEN-2:0], predict_cond};\n                               ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:122: Define or directive not defined: \'`GSH_BHR_LEN\'\n      .raddr_if(pc[2+:`GSH_BHR_LEN] ^ bhr_master),\n                      ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:122: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n      .raddr_if(pc[2+:`GSH_BHR_LEN] ^ bhr_master),\n                                  ^\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:136: Define or directive not defined: \'`GSH_PHT_SEL\'\n    input wire [`GSH_PHT_SEL-1:0] raddr_if,\n                ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:137: Define or directive not defined: \'`GSH_PHT_SEL\'\n    input wire [`GSH_PHT_SEL-1:0] raddr_ex,\n                ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:138: Define or directive not defined: \'`GSH_PHT_SEL\'\n    input wire [`GSH_PHT_SEL-1:0] waddr_ex,\n                ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:145: Define or directive not defined: \'`GSH_PHT_SEL\'\n   true_dualport_ram #(`GSH_PHT_SEL, 2, `GSH_PHT_NUM) pht0\n                       ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:145: Define or directive not defined: \'`GSH_PHT_NUM\'\n   true_dualport_ram #(`GSH_PHT_SEL, 2, `GSH_PHT_NUM) pht0\n                                        ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:159: Define or directive not defined: \'`GSH_PHT_SEL\'\n   true_dualport_ram #(`GSH_PHT_SEL, 2, `GSH_PHT_NUM) pht1\n                       ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/gshare.v:159: Define or directive not defined: \'`GSH_PHT_NUM\'\n   true_dualport_ram #(`GSH_PHT_SEL, 2, `GSH_PHT_NUM) pht1\n                                        ^~~~~~~~~~~~\n%Error: Exiting due to 39 error(s)\n'
module sel_bhrfix(
		  input wire [4:0] 		sel,
		  input wire [`GSH_BHR_LEN-1:0] bhr0,
		  input wire [`GSH_BHR_LEN-1:0] bhr1,
		  input wire [`GSH_BHR_LEN-1:0] bhr2,
		  input wire [`GSH_BHR_LEN-1:0] bhr3,
		  input wire [`GSH_BHR_LEN-1:0] bhr4,
		  output reg [`GSH_BHR_LEN-1:0] out
		  );
   always @ (*) begin
      out = 0;
      case (sel)
	5'b00001 : out = bhr0;
	5'b00010 : out = bhr1;
	5'b00100 : out = bhr2;
	5'b01000 : out = bhr3;
	5'b10000 : out = bhr4;
	default : out = 0;
      endcase
   end
   
endmodule
module sel_bhrfix(
		  input wire [4:0] 		sel,
		  input wire [`GSH_BHR_LEN-1:0] bhr0,
		  input wire [`GSH_BHR_LEN-1:0] bhr1,
		  input wire [`GSH_BHR_LEN-1:0] bhr2,
		  input wire [`GSH_BHR_LEN-1:0] bhr3,
		  input wire [`GSH_BHR_LEN-1:0] bhr4,
		  output reg [`GSH_BHR_LEN-1:0] out
		  );

   always @ (*) begin
      out = 0;
      case (sel)
	5'b00001 : out = bhr0;
	5'b00010 : out = bhr1;
	5'b00100 : out = bhr2;
	5'b01000 : out = bhr3;
	5'b10000 : out = bhr4;
	default : out = 0;
      endcase
   end
   
endmodule