data/full_repos/permissive/418752214/C910_RTL_FACTORY/gen_rtl/vfalu/rtl/ct_fcnvt_htos_sh.v
data/verilator_xmls/54d0c641-09bb-474b-846b-be3eb363c310.xml
module ct_fcnvt_htos_sh(
  htos_sh_cnt,
  htos_sh_f_v,
  htos_sh_src
);


input   [9 :0]  htos_sh_src; 
output  [5 :0]  htos_sh_cnt; 
output  [10:0]  htos_sh_f_v; 


reg     [5 :0]  htos_sh_cnt; 
reg     [10:0]  htos_sh_f_v; 


wire    [9 :0]  htos_sh_src; 



always @( htos_sh_src[9:0])
begin
casez(htos_sh_src[9:0])
  10'b1?????????: begin
    htos_sh_f_v[10:0] = {htos_sh_src[9:0],1'b0};
    htos_sh_cnt[5:0]  = 6'h31;
  end
  10'b01????????: begin
    htos_sh_f_v[10:0] = {htos_sh_src[8:0],2'b0};
    htos_sh_cnt[5:0]  = 6'h30;
  end
  10'b001???????: begin
    htos_sh_f_v[10:0] = {htos_sh_src[7:0],3'b0};
    htos_sh_cnt[5:0]  = 6'h2f;
  end
  10'b0001??????: begin
    htos_sh_f_v[10:0] = {htos_sh_src[6:0],4'b0};
    htos_sh_cnt[5:0]  = 6'h2e;
  end
  10'b00001?????: begin
    htos_sh_f_v[10:0] = {htos_sh_src[5:0],5'b0};
    htos_sh_cnt[5:0]  = 6'h2d;
  end
  10'b000001????: begin
    htos_sh_f_v[10:0] = {htos_sh_src[4:0],6'b0};
    htos_sh_cnt[5:0]  = 6'h2c;
  end
  10'b0000001???: begin
    htos_sh_f_v[10:0] = {htos_sh_src[3:0],7'b0};
    htos_sh_cnt[5:0]  = 6'h2b;
  end
  10'b00000001??: begin
    htos_sh_f_v[10:0] = {htos_sh_src[2:0],8'b0};
    htos_sh_cnt[5:0]  = 6'h2a;
  end
  10'b000000001?: begin
    htos_sh_f_v[10:0] = {htos_sh_src[1:0],9'b0};
    htos_sh_cnt[5:0]  = 6'h29;
  end
  10'b0000000001: begin
    htos_sh_f_v[10:0] = {htos_sh_src[0],10'b0};
    htos_sh_cnt[5:0]  = 6'h28;
  end
  default: begin
    htos_sh_f_v[10:0] = 11'b0;
    htos_sh_cnt[5:0]  = 6'h0;
  end
endcase

end



endmodule
module ct_fcnvt_htos_sh(
  htos_sh_cnt,
  htos_sh_f_v,
  htos_sh_src
);



input   [9 :0]  htos_sh_src; 
output  [5 :0]  htos_sh_cnt; 
output  [10:0]  htos_sh_f_v; 


reg     [5 :0]  htos_sh_cnt; 
reg     [10:0]  htos_sh_f_v; 


wire    [9 :0]  htos_sh_src; 



always @( htos_sh_src[9:0])
begin
casez(htos_sh_src[9:0])
  10'b1?????????: begin
    htos_sh_f_v[10:0] = {htos_sh_src[9:0],1'b0};
    htos_sh_cnt[5:0]  = 6'h31;
  end
  10'b01????????: begin
    htos_sh_f_v[10:0] = {htos_sh_src[8:0],2'b0};
    htos_sh_cnt[5:0]  = 6'h30;
  end
  10'b001???????: begin
    htos_sh_f_v[10:0] = {htos_sh_src[7:0],3'b0};
    htos_sh_cnt[5:0]  = 6'h2f;
  end
  10'b0001??????: begin
    htos_sh_f_v[10:0] = {htos_sh_src[6:0],4'b0};
    htos_sh_cnt[5:0]  = 6'h2e;
  end
  10'b00001?????: begin
    htos_sh_f_v[10:0] = {htos_sh_src[5:0],5'b0};
    htos_sh_cnt[5:0]  = 6'h2d;
  end
  10'b000001????: begin
    htos_sh_f_v[10:0] = {htos_sh_src[4:0],6'b0};
    htos_sh_cnt[5:0]  = 6'h2c;
  end
  10'b0000001???: begin
    htos_sh_f_v[10:0] = {htos_sh_src[3:0],7'b0};
    htos_sh_cnt[5:0]  = 6'h2b;
  end
  10'b00000001??: begin
    htos_sh_f_v[10:0] = {htos_sh_src[2:0],8'b0};
    htos_sh_cnt[5:0]  = 6'h2a;
  end
  10'b000000001?: begin
    htos_sh_f_v[10:0] = {htos_sh_src[1:0],9'b0};
    htos_sh_cnt[5:0]  = 6'h29;
  end
  10'b0000000001: begin
    htos_sh_f_v[10:0] = {htos_sh_src[0],10'b0};
    htos_sh_cnt[5:0]  = 6'h28;
  end
  default: begin
    htos_sh_f_v[10:0] = 11'b0;
    htos_sh_cnt[5:0]  = 6'h0;
  end
endcase

end



endmodule