data/full_repos/permissive/418752214/C910_RTL_FACTORY/gen_rtl/vfalu/rtl/ct_fcnvt_stod_sh.v
data/verilator_xmls/34881c9c-2099-4e6d-b002-84a120d70259.xml
module ct_fcnvt_stod_sh(
  stod_sh_cnt,
  stod_sh_f_v,
  stod_sh_src
);


input   [22:0]  stod_sh_src; 
output  [11:0]  stod_sh_cnt; 
output  [23:0]  stod_sh_f_v; 


reg     [11:0]  stod_sh_cnt; 
reg     [23:0]  stod_sh_f_v; 


wire    [22:0]  stod_sh_src; 



always @( stod_sh_src[22:0])
begin
casez(stod_sh_src[22:0])
  23'b1??????????????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[22:0],1'b0};
    stod_sh_cnt[11:0]  = 12'hf81;
  end
  23'b01?????????????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[21:0],2'b0};
    stod_sh_cnt[11:0]  = 12'hf80;
  end
  23'b001????????????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[20:0],3'b0};
    stod_sh_cnt[11:0]  = 12'hf7f;
  end
  23'b0001???????????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[19:0],4'b0};
    stod_sh_cnt[11:0]  = 12'hf7e;
  end
  23'b00001??????????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[18:0],5'b0};
    stod_sh_cnt[11:0]  = 12'hf7d;
  end
  23'b000001?????????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[17:0],6'b0};
    stod_sh_cnt[11:0]  = 12'hf7c;
  end
  23'b0000001????????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[16:0],7'b0};
    stod_sh_cnt[11:0]  = 12'hf7b;
  end
  23'b00000001???????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[15:0],8'b0};
    stod_sh_cnt[11:0]  = 12'hf7a;
  end
  23'b000000001??????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[14:0],9'b0};
    stod_sh_cnt[11:0]  = 12'hf79;
  end
  23'b0000000001?????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[13:0],10'b0};
    stod_sh_cnt[11:0]  = 12'hf78;
  end
  23'b00000000001????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[12:0],11'b0};
    stod_sh_cnt[11:0]  = 12'hf77;
  end
  23'b000000000001???????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[11:0],12'b0};
    stod_sh_cnt[11:0]  = 12'hf76;
  end
  23'b0000000000001??????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[10:0],13'b0};
    stod_sh_cnt[11:0]  = 12'hf75;
  end
  23'b00000000000001?????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[9:0],14'b0};
    stod_sh_cnt[11:0]  = 12'hf74;
  end
  23'b000000000000001????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[8:0],15'b0};
    stod_sh_cnt[11:0]  = 12'hf73;
  end
  23'b0000000000000001???????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[7:0],16'b0};
    stod_sh_cnt[11:0]  = 12'hf72;
  end
  23'b00000000000000001??????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[6:0],17'b0};
    stod_sh_cnt[11:0]  = 12'hf71;
  end
  23'b000000000000000001?????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[5:0],18'b0};
    stod_sh_cnt[11:0]  = 12'hf70;
  end
  23'b0000000000000000001????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[4:0],19'b0};
    stod_sh_cnt[11:0]  = 12'hf6f;
  end
  23'b00000000000000000001???: begin
    stod_sh_f_v[23:0] = {stod_sh_src[3:0],20'b0};
    stod_sh_cnt[11:0]  = 12'hf6e;
  end
  23'b000000000000000000001??: begin
    stod_sh_f_v[23:0] = {stod_sh_src[2:0],21'b0};
    stod_sh_cnt[11:0]  = 12'hf6d;
  end
  23'b0000000000000000000001?: begin
    stod_sh_f_v[23:0] = {stod_sh_src[1:0],22'b0};
    stod_sh_cnt[11:0]  = 12'hf6c;
  end
  23'b00000000000000000000001: begin
    stod_sh_f_v[23:0] = {1'b1,23'b0};
    stod_sh_cnt[11:0]  = 12'hf6b;
  end
  default: begin
    stod_sh_f_v[23:0] = 24'b0;
    stod_sh_cnt[11:0]  = 12'h0;
  end
endcase

end



endmodule
module ct_fcnvt_stod_sh(
  stod_sh_cnt,
  stod_sh_f_v,
  stod_sh_src
);



input   [22:0]  stod_sh_src; 
output  [11:0]  stod_sh_cnt; 
output  [23:0]  stod_sh_f_v; 


reg     [11:0]  stod_sh_cnt; 
reg     [23:0]  stod_sh_f_v; 


wire    [22:0]  stod_sh_src; 



always @( stod_sh_src[22:0])
begin
casez(stod_sh_src[22:0])
  23'b1??????????????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[22:0],1'b0};
    stod_sh_cnt[11:0]  = 12'hf81;
  end
  23'b01?????????????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[21:0],2'b0};
    stod_sh_cnt[11:0]  = 12'hf80;
  end
  23'b001????????????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[20:0],3'b0};
    stod_sh_cnt[11:0]  = 12'hf7f;
  end
  23'b0001???????????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[19:0],4'b0};
    stod_sh_cnt[11:0]  = 12'hf7e;
  end
  23'b00001??????????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[18:0],5'b0};
    stod_sh_cnt[11:0]  = 12'hf7d;
  end
  23'b000001?????????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[17:0],6'b0};
    stod_sh_cnt[11:0]  = 12'hf7c;
  end
  23'b0000001????????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[16:0],7'b0};
    stod_sh_cnt[11:0]  = 12'hf7b;
  end
  23'b00000001???????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[15:0],8'b0};
    stod_sh_cnt[11:0]  = 12'hf7a;
  end
  23'b000000001??????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[14:0],9'b0};
    stod_sh_cnt[11:0]  = 12'hf79;
  end
  23'b0000000001?????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[13:0],10'b0};
    stod_sh_cnt[11:0]  = 12'hf78;
  end
  23'b00000000001????????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[12:0],11'b0};
    stod_sh_cnt[11:0]  = 12'hf77;
  end
  23'b000000000001???????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[11:0],12'b0};
    stod_sh_cnt[11:0]  = 12'hf76;
  end
  23'b0000000000001??????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[10:0],13'b0};
    stod_sh_cnt[11:0]  = 12'hf75;
  end
  23'b00000000000001?????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[9:0],14'b0};
    stod_sh_cnt[11:0]  = 12'hf74;
  end
  23'b000000000000001????????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[8:0],15'b0};
    stod_sh_cnt[11:0]  = 12'hf73;
  end
  23'b0000000000000001???????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[7:0],16'b0};
    stod_sh_cnt[11:0]  = 12'hf72;
  end
  23'b00000000000000001??????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[6:0],17'b0};
    stod_sh_cnt[11:0]  = 12'hf71;
  end
  23'b000000000000000001?????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[5:0],18'b0};
    stod_sh_cnt[11:0]  = 12'hf70;
  end
  23'b0000000000000000001????: begin
    stod_sh_f_v[23:0] = {stod_sh_src[4:0],19'b0};
    stod_sh_cnt[11:0]  = 12'hf6f;
  end
  23'b00000000000000000001???: begin
    stod_sh_f_v[23:0] = {stod_sh_src[3:0],20'b0};
    stod_sh_cnt[11:0]  = 12'hf6e;
  end
  23'b000000000000000000001??: begin
    stod_sh_f_v[23:0] = {stod_sh_src[2:0],21'b0};
    stod_sh_cnt[11:0]  = 12'hf6d;
  end
  23'b0000000000000000000001?: begin
    stod_sh_f_v[23:0] = {stod_sh_src[1:0],22'b0};
    stod_sh_cnt[11:0]  = 12'hf6c;
  end
  23'b00000000000000000000001: begin
    stod_sh_f_v[23:0] = {1'b1,23'b0};
    stod_sh_cnt[11:0]  = 12'hf6b;
  end
  default: begin
    stod_sh_f_v[23:0] = 24'b0;
    stod_sh_cnt[11:0]  = 12'h0;
  end
endcase

end



endmodule