data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/a23/a23_barrel_shift.v
1: b'%Error: data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/a23/a23_barrel_shift.v:54: Cannot find include file: a23_localparams.vh\n`include "a23_localparams.vh" \n         ^~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/a23,data/full_repos/permissive/486954482/a23_localparams.vh\n             data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/a23,data/full_repos/permissive/486954482/a23_localparams.vh.v\n             data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/a23,data/full_repos/permissive/486954482/a23_localparams.vh.sv\n             a23_localparams.vh\n             a23_localparams.vh.v\n             a23_localparams.vh.sv\n             obj_dir/a23_localparams.vh\n             obj_dir/a23_localparams.vh.v\n             obj_dir/a23_localparams.vh.sv\n%Error: Exiting due to 1 error(s)\n'
module a23_barrel_shift (

input       [31:0]          i_in,
input                       i_carry_in,
input       [7:0]           i_shift_amount,
input       [1:0]           i_function,

output      [31:0]          o_out,
output                      o_carry_out

);

`include "a23_localparams.vh"


wire [32:0] lsl_out;
wire [32:0] lsr_out;
wire [32:0] asr_out;
wire [32:0] ror_out;











































                                            

wire [32:0] lsl_out_struct;
lsl_struct #(.CTRL(5)) u_lsl_struct(i_in, i_shift_amount[4:0], lsl_out_struct);

assign lsl_out[32] = i_shift_amount == 5'd0  ? i_carry_in: lsl_out_struct[32];
assign lsl_out[31:0] = lsl_out_struct[31:0];










































wire [32:0] lsr_out_struct;
lsr_struct #(.CTRL(5)) u_lsr_struct(i_in, i_shift_amount[4:0], lsr_out_struct);

assign lsr_out[32] = i_shift_amount == 5'd0  ? i_carry_in: lsr_out_struct[32];
assign lsr_out[31:0] = lsr_out_struct[31:0];










































                                            

wire [32:0] asr_out_struct;
asr_struct #(.CTRL(5)) u_asr_struct(i_in, i_shift_amount[4:0], asr_out_struct);

assign asr_out[32] = i_shift_amount == 5'd0  ? i_carry_in: asr_out_struct[32];
assign asr_out[31:0] = asr_out_struct[31:0];




































                 
wire [32:0] ror_out_struct;
ror_struct #(.CTRL(5)) u_ror_struct(i_in, i_shift_amount[4:0], ror_out_struct);


assign ror_out[32] = i_shift_amount == 5'd0  ? i_carry_in: ror_out_struct[32];
assign ror_out[31:0] = ror_out_struct[31:0];

 
assign {o_carry_out, o_out} = i_function == LSL ? lsl_out :
                              i_function == LSR ? lsr_out :
                              i_function == ASR ? asr_out :
                                                  ror_out ;

endmodule
module a23_barrel_shift (

input       [31:0]          i_in,
input                       i_carry_in,
input       [7:0]           i_shift_amount,
input       [1:0]           i_function,

output      [31:0]          o_out,
output                      o_carry_out

);


`include "a23_localparams.vh"


wire [32:0] lsl_out;
wire [32:0] lsr_out;
wire [32:0] asr_out;
wire [32:0] ror_out;











































                                            

wire [32:0] lsl_out_struct;
lsl_struct #(.CTRL(5)) u_lsl_struct(i_in, i_shift_amount[4:0], lsl_out_struct);

assign lsl_out[32] = i_shift_amount == 5'd0  ? i_carry_in: lsl_out_struct[32];
assign lsl_out[31:0] = lsl_out_struct[31:0];










































wire [32:0] lsr_out_struct;
lsr_struct #(.CTRL(5)) u_lsr_struct(i_in, i_shift_amount[4:0], lsr_out_struct);

assign lsr_out[32] = i_shift_amount == 5'd0  ? i_carry_in: lsr_out_struct[32];
assign lsr_out[31:0] = lsr_out_struct[31:0];










































                                            

wire [32:0] asr_out_struct;
asr_struct #(.CTRL(5)) u_asr_struct(i_in, i_shift_amount[4:0], asr_out_struct);

assign asr_out[32] = i_shift_amount == 5'd0  ? i_carry_in: asr_out_struct[32];
assign asr_out[31:0] = asr_out_struct[31:0];




































                 
wire [32:0] ror_out_struct;
ror_struct #(.CTRL(5)) u_ror_struct(i_in, i_shift_amount[4:0], ror_out_struct);


assign ror_out[32] = i_shift_amount == 5'd0  ? i_carry_in: ror_out_struct[32];
assign ror_out[31:0] = ror_out_struct[31:0];

 
assign {o_carry_out, o_out} = i_function == LSL ? lsl_out :
                              i_function == LSR ? lsr_out :
                              i_function == ASR ? asr_out :
                                                  ror_out ;

endmodule