data/full_repos/permissive/418752214/C910_RTL_FACTORY/gen_rtl/pmu/rtl/ct_hpcp_adder_sel.v
data/verilator_xmls/733170f3-e65f-4e6c-b2b5-a88de5e55115.xml
module ct_hpcp_adder_sel(
  event01_adder,
  event02_adder,
  event03_adder,
  event04_adder,
  event05_adder,
  event06_adder,
  event07_adder,
  event08_adder,
  event09_adder,
  event10_adder,
  event11_adder,
  event12_adder,
  event13_adder,
  event14_adder,
  event15_adder,
  event16_adder,
  event17_adder,
  event18_adder,
  event19_adder,
  event20_adder,
  event21_adder,
  event22_adder,
  event23_adder,
  event24_adder,
  event25_adder,
  event26_adder,
  event27_adder,
  event28_adder,
  event29_adder,
  event30_adder,
  event31_adder,
  event32_adder,
  event33_adder,
  event34_adder,
  event35_adder,
  event36_adder,
  event37_adder,
  event38_adder,
  event39_adder,
  event40_adder,
  event41_adder,
  event42_adder,
  mhpmcntx_adder,
  mhpmevtx_value
);


input   [3 :0]  event01_adder; 
input   [3 :0]  event02_adder; 
input   [3 :0]  event03_adder; 
input   [3 :0]  event04_adder; 
input   [3 :0]  event05_adder; 
input   [3 :0]  event06_adder; 
input   [3 :0]  event07_adder; 
input   [3 :0]  event08_adder; 
input   [3 :0]  event09_adder; 
input   [3 :0]  event10_adder; 
input   [3 :0]  event11_adder; 
input   [3 :0]  event12_adder; 
input   [3 :0]  event13_adder; 
input   [3 :0]  event14_adder; 
input   [3 :0]  event15_adder; 
input   [3 :0]  event16_adder; 
input   [3 :0]  event17_adder; 
input   [3 :0]  event18_adder; 
input   [3 :0]  event19_adder; 
input   [3 :0]  event20_adder; 
input   [3 :0]  event21_adder; 
input   [3 :0]  event22_adder; 
input   [3 :0]  event23_adder; 
input   [3 :0]  event24_adder; 
input   [3 :0]  event25_adder; 
input   [3 :0]  event26_adder; 
input   [3 :0]  event27_adder; 
input   [3 :0]  event28_adder; 
input   [3 :0]  event29_adder; 
input   [3 :0]  event30_adder; 
input   [3 :0]  event31_adder; 
input   [3 :0]  event32_adder; 
input   [3 :0]  event33_adder; 
input   [3 :0]  event34_adder; 
input   [3 :0]  event35_adder; 
input   [3 :0]  event36_adder; 
input   [3 :0]  event37_adder; 
input   [3 :0]  event38_adder; 
input   [3 :0]  event39_adder; 
input   [3 :0]  event40_adder; 
input   [3 :0]  event41_adder; 
input   [3 :0]  event42_adder; 
input   [63:0]  mhpmevtx_value; 
output  [3 :0]  mhpmcntx_adder; 


reg     [3 :0]  mhpmcntx_adder; 


wire    [3 :0]  event01_adder; 
wire    [3 :0]  event02_adder; 
wire    [3 :0]  event03_adder; 
wire    [3 :0]  event04_adder; 
wire    [3 :0]  event05_adder; 
wire    [3 :0]  event06_adder; 
wire    [3 :0]  event07_adder; 
wire    [3 :0]  event08_adder; 
wire    [3 :0]  event09_adder; 
wire    [3 :0]  event10_adder; 
wire    [3 :0]  event11_adder; 
wire    [3 :0]  event12_adder; 
wire    [3 :0]  event13_adder; 
wire    [3 :0]  event14_adder; 
wire    [3 :0]  event15_adder; 
wire    [3 :0]  event16_adder; 
wire    [3 :0]  event17_adder; 
wire    [3 :0]  event18_adder; 
wire    [3 :0]  event19_adder; 
wire    [3 :0]  event20_adder; 
wire    [3 :0]  event21_adder; 
wire    [3 :0]  event22_adder; 
wire    [3 :0]  event23_adder; 
wire    [3 :0]  event24_adder; 
wire    [3 :0]  event25_adder; 
wire    [3 :0]  event26_adder; 
wire    [3 :0]  event27_adder; 
wire    [3 :0]  event28_adder; 
wire    [3 :0]  event29_adder; 
wire    [3 :0]  event30_adder; 
wire    [3 :0]  event31_adder; 
wire    [3 :0]  event32_adder; 
wire    [3 :0]  event33_adder; 
wire    [3 :0]  event34_adder; 
wire    [3 :0]  event35_adder; 
wire    [3 :0]  event36_adder; 
wire    [3 :0]  event37_adder; 
wire    [3 :0]  event38_adder; 
wire    [3 :0]  event39_adder; 
wire    [3 :0]  event40_adder; 
wire    [3 :0]  event41_adder; 
wire    [3 :0]  event42_adder; 
wire    [63:0]  mhpmevtx_value; 






always @( event03_adder[3:0]
       or event27_adder[3:0]
       or event36_adder[3:0]
       or event38_adder[3:0]
       or event35_adder[3:0]
       or event22_adder[3:0]
       or event28_adder[3:0]
       or event31_adder[3:0]
       or event15_adder[3:0]
       or event19_adder[3:0]
       or event09_adder[3:0]
       or event42_adder[3:0]
       or event37_adder[3:0]
       or event14_adder[3:0]
       or event12_adder[3:0]
       or event04_adder[3:0]
       or event23_adder[3:0]
       or event39_adder[3:0]
       or event01_adder[3:0]
       or event18_adder[3:0]
       or event06_adder[3:0]
       or event16_adder[3:0]
       or event07_adder[3:0]
       or event21_adder[3:0]
       or event08_adder[3:0]
       or event02_adder[3:0]
       or event11_adder[3:0]
       or event13_adder[3:0]
       or event05_adder[3:0]
       or event29_adder[3:0]
       or event41_adder[3:0]
       or event20_adder[3:0]
       or event40_adder[3:0]
       or event10_adder[3:0]
       or event33_adder[3:0]
       or mhpmevtx_value[5:0]
       or event17_adder[3:0]
       or event24_adder[3:0]
       or event34_adder[3:0]
       or event32_adder[3:0]
       or event25_adder[3:0]
       or event26_adder[3:0]
       or event30_adder[3:0])
begin
case(mhpmevtx_value[5:0])
  6'd1   : mhpmcntx_adder[3:0] = event01_adder[3:0];
  6'd2   : mhpmcntx_adder[3:0] = event02_adder[3:0];
  6'd3   : mhpmcntx_adder[3:0] = event03_adder[3:0];
  6'd4   : mhpmcntx_adder[3:0] = event04_adder[3:0];
  6'd5   : mhpmcntx_adder[3:0] = event05_adder[3:0];
  6'd6   : mhpmcntx_adder[3:0] = event06_adder[3:0];
  6'd7   : mhpmcntx_adder[3:0] = event07_adder[3:0];
  6'd8   : mhpmcntx_adder[3:0] = event08_adder[3:0];
  6'd9   : mhpmcntx_adder[3:0] = event09_adder[3:0];
  6'd10  : mhpmcntx_adder[3:0] = event10_adder[3:0];
  6'd11  : mhpmcntx_adder[3:0] = event11_adder[3:0];
  6'd12  : mhpmcntx_adder[3:0] = event12_adder[3:0];
  6'd13  : mhpmcntx_adder[3:0] = event13_adder[3:0];
  6'd14  : mhpmcntx_adder[3:0] = event14_adder[3:0];
  6'd15  : mhpmcntx_adder[3:0] = event15_adder[3:0];
  6'd16  : mhpmcntx_adder[3:0] = event16_adder[3:0];
  6'd17  : mhpmcntx_adder[3:0] = event17_adder[3:0];
  6'd18  : mhpmcntx_adder[3:0] = event18_adder[3:0];
  6'd19  : mhpmcntx_adder[3:0] = event19_adder[3:0];
  6'd20  : mhpmcntx_adder[3:0] = event20_adder[3:0];
  6'd21  : mhpmcntx_adder[3:0] = event21_adder[3:0];
  6'd22  : mhpmcntx_adder[3:0] = event22_adder[3:0];
  6'd23  : mhpmcntx_adder[3:0] = event23_adder[3:0];
  6'd24  : mhpmcntx_adder[3:0] = event24_adder[3:0];
  6'd25  : mhpmcntx_adder[3:0] = event25_adder[3:0];
  6'd26  : mhpmcntx_adder[3:0] = event26_adder[3:0];
  6'd27  : mhpmcntx_adder[3:0] = event27_adder[3:0];
  6'd28  : mhpmcntx_adder[3:0] = event28_adder[3:0];
  6'd29  : mhpmcntx_adder[3:0] = event29_adder[3:0];
  6'd30  : mhpmcntx_adder[3:0] = event30_adder[3:0];
  6'd31  : mhpmcntx_adder[3:0] = event31_adder[3:0];
  6'd32  : mhpmcntx_adder[3:0] = event32_adder[3:0];
  6'd33  : mhpmcntx_adder[3:0] = event33_adder[3:0];
  6'd34  : mhpmcntx_adder[3:0] = event34_adder[3:0];
  6'd35  : mhpmcntx_adder[3:0] = event35_adder[3:0];
  6'd36  : mhpmcntx_adder[3:0] = event36_adder[3:0];
  6'd37  : mhpmcntx_adder[3:0] = event37_adder[3:0];
  6'd38  : mhpmcntx_adder[3:0] = event38_adder[3:0];
  6'd39  : mhpmcntx_adder[3:0] = event39_adder[3:0];
  6'd40  : mhpmcntx_adder[3:0] = event40_adder[3:0];
  6'd41  : mhpmcntx_adder[3:0] = event41_adder[3:0];
  6'd42  : mhpmcntx_adder[3:0] = event42_adder[3:0];
  default: mhpmcntx_adder[3:0] = {4{1'bx}};
endcase

end


endmodule
module ct_hpcp_adder_sel(
  event01_adder,
  event02_adder,
  event03_adder,
  event04_adder,
  event05_adder,
  event06_adder,
  event07_adder,
  event08_adder,
  event09_adder,
  event10_adder,
  event11_adder,
  event12_adder,
  event13_adder,
  event14_adder,
  event15_adder,
  event16_adder,
  event17_adder,
  event18_adder,
  event19_adder,
  event20_adder,
  event21_adder,
  event22_adder,
  event23_adder,
  event24_adder,
  event25_adder,
  event26_adder,
  event27_adder,
  event28_adder,
  event29_adder,
  event30_adder,
  event31_adder,
  event32_adder,
  event33_adder,
  event34_adder,
  event35_adder,
  event36_adder,
  event37_adder,
  event38_adder,
  event39_adder,
  event40_adder,
  event41_adder,
  event42_adder,
  mhpmcntx_adder,
  mhpmevtx_value
);



input   [3 :0]  event01_adder; 
input   [3 :0]  event02_adder; 
input   [3 :0]  event03_adder; 
input   [3 :0]  event04_adder; 
input   [3 :0]  event05_adder; 
input   [3 :0]  event06_adder; 
input   [3 :0]  event07_adder; 
input   [3 :0]  event08_adder; 
input   [3 :0]  event09_adder; 
input   [3 :0]  event10_adder; 
input   [3 :0]  event11_adder; 
input   [3 :0]  event12_adder; 
input   [3 :0]  event13_adder; 
input   [3 :0]  event14_adder; 
input   [3 :0]  event15_adder; 
input   [3 :0]  event16_adder; 
input   [3 :0]  event17_adder; 
input   [3 :0]  event18_adder; 
input   [3 :0]  event19_adder; 
input   [3 :0]  event20_adder; 
input   [3 :0]  event21_adder; 
input   [3 :0]  event22_adder; 
input   [3 :0]  event23_adder; 
input   [3 :0]  event24_adder; 
input   [3 :0]  event25_adder; 
input   [3 :0]  event26_adder; 
input   [3 :0]  event27_adder; 
input   [3 :0]  event28_adder; 
input   [3 :0]  event29_adder; 
input   [3 :0]  event30_adder; 
input   [3 :0]  event31_adder; 
input   [3 :0]  event32_adder; 
input   [3 :0]  event33_adder; 
input   [3 :0]  event34_adder; 
input   [3 :0]  event35_adder; 
input   [3 :0]  event36_adder; 
input   [3 :0]  event37_adder; 
input   [3 :0]  event38_adder; 
input   [3 :0]  event39_adder; 
input   [3 :0]  event40_adder; 
input   [3 :0]  event41_adder; 
input   [3 :0]  event42_adder; 
input   [63:0]  mhpmevtx_value; 
output  [3 :0]  mhpmcntx_adder; 


reg     [3 :0]  mhpmcntx_adder; 


wire    [3 :0]  event01_adder; 
wire    [3 :0]  event02_adder; 
wire    [3 :0]  event03_adder; 
wire    [3 :0]  event04_adder; 
wire    [3 :0]  event05_adder; 
wire    [3 :0]  event06_adder; 
wire    [3 :0]  event07_adder; 
wire    [3 :0]  event08_adder; 
wire    [3 :0]  event09_adder; 
wire    [3 :0]  event10_adder; 
wire    [3 :0]  event11_adder; 
wire    [3 :0]  event12_adder; 
wire    [3 :0]  event13_adder; 
wire    [3 :0]  event14_adder; 
wire    [3 :0]  event15_adder; 
wire    [3 :0]  event16_adder; 
wire    [3 :0]  event17_adder; 
wire    [3 :0]  event18_adder; 
wire    [3 :0]  event19_adder; 
wire    [3 :0]  event20_adder; 
wire    [3 :0]  event21_adder; 
wire    [3 :0]  event22_adder; 
wire    [3 :0]  event23_adder; 
wire    [3 :0]  event24_adder; 
wire    [3 :0]  event25_adder; 
wire    [3 :0]  event26_adder; 
wire    [3 :0]  event27_adder; 
wire    [3 :0]  event28_adder; 
wire    [3 :0]  event29_adder; 
wire    [3 :0]  event30_adder; 
wire    [3 :0]  event31_adder; 
wire    [3 :0]  event32_adder; 
wire    [3 :0]  event33_adder; 
wire    [3 :0]  event34_adder; 
wire    [3 :0]  event35_adder; 
wire    [3 :0]  event36_adder; 
wire    [3 :0]  event37_adder; 
wire    [3 :0]  event38_adder; 
wire    [3 :0]  event39_adder; 
wire    [3 :0]  event40_adder; 
wire    [3 :0]  event41_adder; 
wire    [3 :0]  event42_adder; 
wire    [63:0]  mhpmevtx_value; 






always @( event03_adder[3:0]
       or event27_adder[3:0]
       or event36_adder[3:0]
       or event38_adder[3:0]
       or event35_adder[3:0]
       or event22_adder[3:0]
       or event28_adder[3:0]
       or event31_adder[3:0]
       or event15_adder[3:0]
       or event19_adder[3:0]
       or event09_adder[3:0]
       or event42_adder[3:0]
       or event37_adder[3:0]
       or event14_adder[3:0]
       or event12_adder[3:0]
       or event04_adder[3:0]
       or event23_adder[3:0]
       or event39_adder[3:0]
       or event01_adder[3:0]
       or event18_adder[3:0]
       or event06_adder[3:0]
       or event16_adder[3:0]
       or event07_adder[3:0]
       or event21_adder[3:0]
       or event08_adder[3:0]
       or event02_adder[3:0]
       or event11_adder[3:0]
       or event13_adder[3:0]
       or event05_adder[3:0]
       or event29_adder[3:0]
       or event41_adder[3:0]
       or event20_adder[3:0]
       or event40_adder[3:0]
       or event10_adder[3:0]
       or event33_adder[3:0]
       or mhpmevtx_value[5:0]
       or event17_adder[3:0]
       or event24_adder[3:0]
       or event34_adder[3:0]
       or event32_adder[3:0]
       or event25_adder[3:0]
       or event26_adder[3:0]
       or event30_adder[3:0])
begin
case(mhpmevtx_value[5:0])
  6'd1   : mhpmcntx_adder[3:0] = event01_adder[3:0];
  6'd2   : mhpmcntx_adder[3:0] = event02_adder[3:0];
  6'd3   : mhpmcntx_adder[3:0] = event03_adder[3:0];
  6'd4   : mhpmcntx_adder[3:0] = event04_adder[3:0];
  6'd5   : mhpmcntx_adder[3:0] = event05_adder[3:0];
  6'd6   : mhpmcntx_adder[3:0] = event06_adder[3:0];
  6'd7   : mhpmcntx_adder[3:0] = event07_adder[3:0];
  6'd8   : mhpmcntx_adder[3:0] = event08_adder[3:0];
  6'd9   : mhpmcntx_adder[3:0] = event09_adder[3:0];
  6'd10  : mhpmcntx_adder[3:0] = event10_adder[3:0];
  6'd11  : mhpmcntx_adder[3:0] = event11_adder[3:0];
  6'd12  : mhpmcntx_adder[3:0] = event12_adder[3:0];
  6'd13  : mhpmcntx_adder[3:0] = event13_adder[3:0];
  6'd14  : mhpmcntx_adder[3:0] = event14_adder[3:0];
  6'd15  : mhpmcntx_adder[3:0] = event15_adder[3:0];
  6'd16  : mhpmcntx_adder[3:0] = event16_adder[3:0];
  6'd17  : mhpmcntx_adder[3:0] = event17_adder[3:0];
  6'd18  : mhpmcntx_adder[3:0] = event18_adder[3:0];
  6'd19  : mhpmcntx_adder[3:0] = event19_adder[3:0];
  6'd20  : mhpmcntx_adder[3:0] = event20_adder[3:0];
  6'd21  : mhpmcntx_adder[3:0] = event21_adder[3:0];
  6'd22  : mhpmcntx_adder[3:0] = event22_adder[3:0];
  6'd23  : mhpmcntx_adder[3:0] = event23_adder[3:0];
  6'd24  : mhpmcntx_adder[3:0] = event24_adder[3:0];
  6'd25  : mhpmcntx_adder[3:0] = event25_adder[3:0];
  6'd26  : mhpmcntx_adder[3:0] = event26_adder[3:0];
  6'd27  : mhpmcntx_adder[3:0] = event27_adder[3:0];
  6'd28  : mhpmcntx_adder[3:0] = event28_adder[3:0];
  6'd29  : mhpmcntx_adder[3:0] = event29_adder[3:0];
  6'd30  : mhpmcntx_adder[3:0] = event30_adder[3:0];
  6'd31  : mhpmcntx_adder[3:0] = event31_adder[3:0];
  6'd32  : mhpmcntx_adder[3:0] = event32_adder[3:0];
  6'd33  : mhpmcntx_adder[3:0] = event33_adder[3:0];
  6'd34  : mhpmcntx_adder[3:0] = event34_adder[3:0];
  6'd35  : mhpmcntx_adder[3:0] = event35_adder[3:0];
  6'd36  : mhpmcntx_adder[3:0] = event36_adder[3:0];
  6'd37  : mhpmcntx_adder[3:0] = event37_adder[3:0];
  6'd38  : mhpmcntx_adder[3:0] = event38_adder[3:0];
  6'd39  : mhpmcntx_adder[3:0] = event39_adder[3:0];
  6'd40  : mhpmcntx_adder[3:0] = event40_adder[3:0];
  6'd41  : mhpmcntx_adder[3:0] = event41_adder[3:0];
  6'd42  : mhpmcntx_adder[3:0] = event42_adder[3:0];
  default: mhpmcntx_adder[3:0] = {4{1'bx}};
endcase

end


endmodule