data/full_repos/permissive/49989726/barrel_shifter_left.v
1: b'%Error: data/full_repos/permissive/49989726/barrel_shifter_left.v:1: Cannot find include file: cordic.vh\n`include "cordic.vh" \n         ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/49989726,data/full_repos/permissive/49989726/cordic.vh\n             data/full_repos/permissive/49989726,data/full_repos/permissive/49989726/cordic.vh.v\n             data/full_repos/permissive/49989726,data/full_repos/permissive/49989726/cordic.vh.sv\n             cordic.vh\n             cordic.vh.v\n             cordic.vh.sv\n             obj_dir/cordic.vh\n             obj_dir/cordic.vh.v\n             obj_dir/cordic.vh.sv\n%Error: Exiting due to 1 error(s)\n'
module barrel_shifter_left
#(
  parameter N=16
)
(
  a,
  shift,
  o
);

  localparam LOG_N = $clog2(N);

  input [N-1:0] a;
  input [LOG_N:0] shift;
  output [N-1:0] o;


  wire [N-1:0] ai[LOG_N+1:0];

  assign ai[0] = a;

  genvar i;
  generate
    for (i = 0; i < LOG_N+1; i = i + 1) begin:loop1
      assign ai[i+1] = (shift[i])?(ai[i]>>2**i):(ai[i]);
    end
  endgenerate

  assign o = ai[LOG_N+1];

endmodule
module barrel_shifter_left
#(
  parameter N=16
)
(
  a,
  shift,
  o
);


  localparam LOG_N = $clog2(N);

  input [N-1:0] a;
  input [LOG_N:0] shift;
  output [N-1:0] o;


  wire [N-1:0] ai[LOG_N+1:0];

  assign ai[0] = a;

  genvar i;
  generate
    for (i = 0; i < LOG_N+1; i = i + 1) begin:loop1
      assign ai[i+1] = (shift[i])?(ai[i]>>2**i):(ai[i]);
    end
  endgenerate

  assign o = ai[LOG_N+1];

endmodule