data/full_repos/permissive/188068190/ridecore-src-buggy/srcopr_manager.v
1: b'%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/srcopr_manager.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/srcopr_manager.v:5: Define or directive not defined: \'`DATA_LEN\'\n   input wire [`DATA_LEN-1:0]  arfdata,\n               ^~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/srcopr_manager.v:8: Define or directive not defined: \'`RRF_SEL\'\n   input wire [`RRF_SEL-1:0]   rrftag,\n               ^~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/srcopr_manager.v:9: Define or directive not defined: \'`DATA_LEN\'\n   input wire [`DATA_LEN-1:0]  rrfdata,\n               ^~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/srcopr_manager.v:10: Define or directive not defined: \'`RRF_SEL\'\n   input wire [`RRF_SEL-1:0]   dst1_renamed,\n               ^~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/srcopr_manager.v:13: Define or directive not defined: \'`DATA_LEN\'\n   output wire [`DATA_LEN-1:0] src,\n                ^~~~~~~~~\n%Error: data/full_repos/permissive/188068190/ridecore-src-buggy/srcopr_manager.v:17: Define or directive not defined: \'`DATA_LEN\'\n   assign src = src_eq_0 ? `DATA_LEN\'b0 :\n                           ^~~~~~~~~\n%Error: Exiting due to 7 error(s)\n'
module sourceoperand_manager
  (
   input wire [`DATA_LEN-1:0]  arfdata,
   input wire 		       arf_busy,
   input wire 		       rrf_valid,
   input wire [`RRF_SEL-1:0]   rrftag,
   input wire [`DATA_LEN-1:0]  rrfdata,
   input wire [`RRF_SEL-1:0]   dst1_renamed,
   input wire 		       src_eq_dst1,
   input wire 		       src_eq_0,
   output wire [`DATA_LEN-1:0] src,
   output wire 		       rdy
   );

   assign src = src_eq_0 ? `DATA_LEN'b0 :
		src_eq_dst1 ? dst1_renamed :
		~arf_busy ? arfdata :
		rrf_valid ? rrfdata :
		rrftag;
   assign rdy = src_eq_0 | (~src_eq_dst1 & (~arf_busy | rrf_valid));

endmodule
module sourceoperand_manager
  (
   input wire [`DATA_LEN-1:0]  arfdata,
   input wire 		       arf_busy,
   input wire 		       rrf_valid,
   input wire [`RRF_SEL-1:0]   rrftag,
   input wire [`DATA_LEN-1:0]  rrfdata,
   input wire [`RRF_SEL-1:0]   dst1_renamed,
   input wire 		       src_eq_dst1,
   input wire 		       src_eq_0,
   output wire [`DATA_LEN-1:0] src,
   output wire 		       rdy
   );


   assign src = src_eq_0 ? `DATA_LEN'b0 :
		src_eq_dst1 ? dst1_renamed :
		~arf_busy ? arfdata :
		rrf_valid ? rrfdata :
		rrftag;
   assign rdy = src_eq_0 | (~src_eq_dst1 & (~arf_busy | rrf_valid));

endmodule