data/full_repos/permissive/418752214/C910_RTL_FACTORY/gen_rtl/vfdsu/rtl/ct_vfdsu_srt_radix16_bound_table.v
data/verilator_xmls/30417638-d2ba-46f4-b0d5-b2b627663202.xml
module ct_vfdsu_srt_radix16_bound_table(
  bound_sel,
  digit_bound_1,
  digit_bound_2,
  digit_bound_3,
  digit_bound_4,
  digit_bound_5,
  digit_bound_6,
  digit_bound_7,
  digit_bound_8,
  digit_bound_9,
  sqrt_first_round,
  sqrt_secd_round,
  sqrt_secd_round_sign
);


input   [6 :0]  bound_sel;           
input           sqrt_first_round;    
input           sqrt_secd_round;     
input           sqrt_secd_round_sign; 
output  [11:0]  digit_bound_1;       
output  [11:0]  digit_bound_2;       
output  [11:0]  digit_bound_3;       
output  [11:0]  digit_bound_4;       
output  [11:0]  digit_bound_5;       
output  [11:0]  digit_bound_6;       
output  [11:0]  digit_bound_7;       
output  [11:0]  digit_bound_8;       
output  [11:0]  digit_bound_9;       


reg     [11:0]  ori_digit_bound_1;   
reg     [11:0]  ori_digit_bound_2;   
reg     [11:0]  ori_digit_bound_3;   
reg     [11:0]  ori_digit_bound_4;   
reg     [11:0]  ori_digit_bound_5;   
reg     [11:0]  ori_digit_bound_6;   
reg     [11:0]  ori_digit_bound_7;   
reg     [11:0]  ori_digit_bound_8;   
reg     [11:0]  ori_digit_bound_9;   
reg     [11:0]  sqrt_digit_boundm2_1; 
reg     [11:0]  sqrt_digit_boundm2_2; 
reg     [11:0]  sqrt_digit_boundm2_3; 
reg     [11:0]  sqrt_digit_boundm2_4; 
reg     [11:0]  sqrt_digit_boundm2_5; 
reg     [11:0]  sqrt_digit_boundm2_6; 
reg     [11:0]  sqrt_digit_boundm2_7; 
reg     [11:0]  sqrt_digit_boundm2_8; 
reg     [11:0]  sqrt_digit_boundm2_9; 
reg     [11:0]  sqrt_digit_boundp2_1; 
reg     [11:0]  sqrt_digit_boundp2_2; 
reg     [11:0]  sqrt_digit_boundp2_3; 
reg     [11:0]  sqrt_digit_boundp2_4; 
reg     [11:0]  sqrt_digit_boundp2_5; 
reg     [11:0]  sqrt_digit_boundp2_6; 
reg     [11:0]  sqrt_digit_boundp2_7; 
reg     [11:0]  sqrt_digit_boundp2_8; 
reg     [11:0]  sqrt_digit_boundp2_9; 


wire    [6 :0]  bound_sel;           
wire    [11:0]  digit_bound_1;       
wire    [11:0]  digit_bound_2;       
wire    [11:0]  digit_bound_3;       
wire    [11:0]  digit_bound_4;       
wire    [11:0]  digit_bound_5;       
wire    [11:0]  digit_bound_6;       
wire    [11:0]  digit_bound_7;       
wire    [11:0]  digit_bound_8;       
wire    [11:0]  digit_bound_9;       
wire    [11:0]  sqrt_digit_bound2_1; 
wire    [11:0]  sqrt_digit_bound2_2; 
wire    [11:0]  sqrt_digit_bound2_3; 
wire    [11:0]  sqrt_digit_bound2_4; 
wire    [11:0]  sqrt_digit_bound2_5; 
wire    [11:0]  sqrt_digit_bound2_6; 
wire    [11:0]  sqrt_digit_bound2_7; 
wire    [11:0]  sqrt_digit_bound2_8; 
wire    [11:0]  sqrt_digit_bound2_9; 
wire            sqrt_first_round;    
wire            sqrt_secd_round;     
wire            sqrt_secd_round_sign; 



always @( bound_sel[6:0])
begin
case(bound_sel[6:0])
  	7'h40:
	begin
		ori_digit_bound_1[11:0] = 12'h1b;
		ori_digit_bound_2[11:0] = 12'h5c;
		ori_digit_bound_3[11:0] = 12'h9d;
		ori_digit_bound_4[11:0] = 12'hde;
		ori_digit_bound_5[11:0] = 12'h120;
		ori_digit_bound_6[11:0] = 12'h161;
		ori_digit_bound_7[11:0] = 12'h1a2;
		ori_digit_bound_8[11:0] = 12'h1e3;
		ori_digit_bound_9[11:0] = 12'h225;

	end
	7'h41:
	begin
		ori_digit_bound_1[11:0] = 12'h1b;
		ori_digit_bound_2[11:0] = 12'h5d;
		ori_digit_bound_3[11:0] = 12'ha0;
		ori_digit_bound_4[11:0] = 12'he2;
		ori_digit_bound_5[11:0] = 12'h124;
		ori_digit_bound_6[11:0] = 12'h166;
		ori_digit_bound_7[11:0] = 12'h1a9;
		ori_digit_bound_8[11:0] = 12'h1eb;
		ori_digit_bound_9[11:0] = 12'h22d;

	end
	7'h42:
	begin
		ori_digit_bound_1[11:0] = 12'h1b;
		ori_digit_bound_2[11:0] = 12'h5f;
		ori_digit_bound_3[11:0] = 12'ha2;
		ori_digit_bound_4[11:0] = 12'he5;
		ori_digit_bound_5[11:0] = 12'h128;
		ori_digit_bound_6[11:0] = 12'h16c;
		ori_digit_bound_7[11:0] = 12'h1af;
		ori_digit_bound_8[11:0] = 12'h1f2;
		ori_digit_bound_9[11:0] = 12'h236;

	end
	7'h43:
	begin
		ori_digit_bound_1[11:0] = 12'h1c;
		ori_digit_bound_2[11:0] = 12'h60;
		ori_digit_bound_3[11:0] = 12'ha4;
		ori_digit_bound_4[11:0] = 12'he9;
		ori_digit_bound_5[11:0] = 12'h12d;
		ori_digit_bound_6[11:0] = 12'h171;
		ori_digit_bound_7[11:0] = 12'h1b5;
		ori_digit_bound_8[11:0] = 12'h1fa;
		ori_digit_bound_9[11:0] = 12'h23e;

	end
	7'h44:
	begin
		ori_digit_bound_1[11:0] = 12'h1c;
		ori_digit_bound_2[11:0] = 12'h61;
		ori_digit_bound_3[11:0] = 12'ha7;
		ori_digit_bound_4[11:0] = 12'hec;
		ori_digit_bound_5[11:0] = 12'h131;
		ori_digit_bound_6[11:0] = 12'h177;
		ori_digit_bound_7[11:0] = 12'h1bc;
		ori_digit_bound_8[11:0] = 12'h201;
		ori_digit_bound_9[11:0] = 12'h246;

	end
	7'h45:
	begin
		ori_digit_bound_1[11:0] = 12'h1d;
		ori_digit_bound_2[11:0] = 12'h63;
		ori_digit_bound_3[11:0] = 12'ha9;
		ori_digit_bound_4[11:0] = 12'hef;
		ori_digit_bound_5[11:0] = 12'h136;
		ori_digit_bound_6[11:0] = 12'h17c;
		ori_digit_bound_7[11:0] = 12'h1c2;
		ori_digit_bound_8[11:0] = 12'h208;
		ori_digit_bound_9[11:0] = 12'h24f;

	end
	7'h46:
	begin
		ori_digit_bound_1[11:0] = 12'h1d;
		ori_digit_bound_2[11:0] = 12'h64;
		ori_digit_bound_3[11:0] = 12'hac;
		ori_digit_bound_4[11:0] = 12'hf3;
		ori_digit_bound_5[11:0] = 12'h13a;
		ori_digit_bound_6[11:0] = 12'h181;
		ori_digit_bound_7[11:0] = 12'h1c9;
		ori_digit_bound_8[11:0] = 12'h210;
		ori_digit_bound_9[11:0] = 12'h257;

	end
	7'h47:
	begin
		ori_digit_bound_1[11:0] = 12'h1d;
		ori_digit_bound_2[11:0] = 12'h66;
		ori_digit_bound_3[11:0] = 12'hae;
		ori_digit_bound_4[11:0] = 12'hf6;
		ori_digit_bound_5[11:0] = 12'h13e;
		ori_digit_bound_6[11:0] = 12'h187;
		ori_digit_bound_7[11:0] = 12'h1cf;
		ori_digit_bound_8[11:0] = 12'h217;
		ori_digit_bound_9[11:0] = 12'h260;

	end
	7'h48:
	begin
		ori_digit_bound_1[11:0] = 12'h1e;
		ori_digit_bound_2[11:0] = 12'h67;
		ori_digit_bound_3[11:0] = 12'hb0;
		ori_digit_bound_4[11:0] = 12'hfa;
		ori_digit_bound_5[11:0] = 12'h143;
		ori_digit_bound_6[11:0] = 12'h18c;
		ori_digit_bound_7[11:0] = 12'h1d5;
		ori_digit_bound_8[11:0] = 12'h21f;
		ori_digit_bound_9[11:0] = 12'h268;

	end
	7'h49:
	begin
		ori_digit_bound_1[11:0] = 12'h1e;
		ori_digit_bound_2[11:0] = 12'h68;
		ori_digit_bound_3[11:0] = 12'hb3;
		ori_digit_bound_4[11:0] = 12'hfd;
		ori_digit_bound_5[11:0] = 12'h147;
		ori_digit_bound_6[11:0] = 12'h192;
		ori_digit_bound_7[11:0] = 12'h1dc;
		ori_digit_bound_8[11:0] = 12'h226;
		ori_digit_bound_9[11:0] = 12'h270;

	end
	7'h4a:
	begin
		ori_digit_bound_1[11:0] = 12'h1f;
		ori_digit_bound_2[11:0] = 12'h6a;
		ori_digit_bound_3[11:0] = 12'hb5;
		ori_digit_bound_4[11:0] = 12'h100;
		ori_digit_bound_5[11:0] = 12'h14c;
		ori_digit_bound_6[11:0] = 12'h197;
		ori_digit_bound_7[11:0] = 12'h1e2;
		ori_digit_bound_8[11:0] = 12'h22d;
		ori_digit_bound_9[11:0] = 12'h279;

	end
	7'h4b:
	begin
		ori_digit_bound_1[11:0] = 12'h1f;
		ori_digit_bound_2[11:0] = 12'h6b;
		ori_digit_bound_3[11:0] = 12'hb8;
		ori_digit_bound_4[11:0] = 12'h104;
		ori_digit_bound_5[11:0] = 12'h150;
		ori_digit_bound_6[11:0] = 12'h19c;
		ori_digit_bound_7[11:0] = 12'h1e9;
		ori_digit_bound_8[11:0] = 12'h235;
		ori_digit_bound_9[11:0] = 12'h281;

	end
	7'h4c:
	begin
		ori_digit_bound_1[11:0] = 12'h1f;
		ori_digit_bound_2[11:0] = 12'h6d;
		ori_digit_bound_3[11:0] = 12'hba;
		ori_digit_bound_4[11:0] = 12'h107;
		ori_digit_bound_5[11:0] = 12'h154;
		ori_digit_bound_6[11:0] = 12'h1a2;
		ori_digit_bound_7[11:0] = 12'h1ef;
		ori_digit_bound_8[11:0] = 12'h23c;
		ori_digit_bound_9[11:0] = 12'h28a;

	end
	7'h4d:
	begin
		ori_digit_bound_1[11:0] = 12'h20;
		ori_digit_bound_2[11:0] = 12'h6e;
		ori_digit_bound_3[11:0] = 12'hbc;
		ori_digit_bound_4[11:0] = 12'h10b;
		ori_digit_bound_5[11:0] = 12'h159;
		ori_digit_bound_6[11:0] = 12'h1a7;
		ori_digit_bound_7[11:0] = 12'h1f5;
		ori_digit_bound_8[11:0] = 12'h244;
		ori_digit_bound_9[11:0] = 12'h292;

	end
	7'h4e:
	begin
		ori_digit_bound_1[11:0] = 12'h20;
		ori_digit_bound_2[11:0] = 12'h6f;
		ori_digit_bound_3[11:0] = 12'hbf;
		ori_digit_bound_4[11:0] = 12'h10e;
		ori_digit_bound_5[11:0] = 12'h15d;
		ori_digit_bound_6[11:0] = 12'h1ad;
		ori_digit_bound_7[11:0] = 12'h1fc;
		ori_digit_bound_8[11:0] = 12'h24b;
		ori_digit_bound_9[11:0] = 12'h29a;

	end
	7'h4f:
	begin
		ori_digit_bound_1[11:0] = 12'h21;
		ori_digit_bound_2[11:0] = 12'h71;
		ori_digit_bound_3[11:0] = 12'hc1;
		ori_digit_bound_4[11:0] = 12'h111;
		ori_digit_bound_5[11:0] = 12'h162;
		ori_digit_bound_6[11:0] = 12'h1b2;
		ori_digit_bound_7[11:0] = 12'h202;
		ori_digit_bound_8[11:0] = 12'h252;
		ori_digit_bound_9[11:0] = 12'h2a3;

	end
	7'h50:
	begin
		ori_digit_bound_1[11:0] = 12'h21;
		ori_digit_bound_2[11:0] = 12'h72;
		ori_digit_bound_3[11:0] = 12'hc4;
		ori_digit_bound_4[11:0] = 12'h115;
		ori_digit_bound_5[11:0] = 12'h166;
		ori_digit_bound_6[11:0] = 12'h1b7;
		ori_digit_bound_7[11:0] = 12'h209;
		ori_digit_bound_8[11:0] = 12'h25a;
		ori_digit_bound_9[11:0] = 12'h2ab;

	end
	7'h51:
	begin
		ori_digit_bound_1[11:0] = 12'h21;
		ori_digit_bound_2[11:0] = 12'h74;
		ori_digit_bound_3[11:0] = 12'hc6;
		ori_digit_bound_4[11:0] = 12'h118;
		ori_digit_bound_5[11:0] = 12'h16a;
		ori_digit_bound_6[11:0] = 12'h1bd;
		ori_digit_bound_7[11:0] = 12'h20f;
		ori_digit_bound_8[11:0] = 12'h261;
		ori_digit_bound_9[11:0] = 12'h2b4;

	end
	7'h52:
	begin
		ori_digit_bound_1[11:0] = 12'h22;
		ori_digit_bound_2[11:0] = 12'h75;
		ori_digit_bound_3[11:0] = 12'hc8;
		ori_digit_bound_4[11:0] = 12'h11c;
		ori_digit_bound_5[11:0] = 12'h16f;
		ori_digit_bound_6[11:0] = 12'h1c2;
		ori_digit_bound_7[11:0] = 12'h215;
		ori_digit_bound_8[11:0] = 12'h269;
		ori_digit_bound_9[11:0] = 12'h2bc;

	end
	7'h53:
	begin
		ori_digit_bound_1[11:0] = 12'h22;
		ori_digit_bound_2[11:0] = 12'h76;
		ori_digit_bound_3[11:0] = 12'hcb;
		ori_digit_bound_4[11:0] = 12'h11f;
		ori_digit_bound_5[11:0] = 12'h173;
		ori_digit_bound_6[11:0] = 12'h1c8;
		ori_digit_bound_7[11:0] = 12'h21c;
		ori_digit_bound_8[11:0] = 12'h270;
		ori_digit_bound_9[11:0] = 12'h2c4;

	end
	7'h54:
	begin
		ori_digit_bound_1[11:0] = 12'h23;
		ori_digit_bound_2[11:0] = 12'h78;
		ori_digit_bound_3[11:0] = 12'hcd;
		ori_digit_bound_4[11:0] = 12'h122;
		ori_digit_bound_5[11:0] = 12'h178;
		ori_digit_bound_6[11:0] = 12'h1cd;
		ori_digit_bound_7[11:0] = 12'h222;
		ori_digit_bound_8[11:0] = 12'h277;
		ori_digit_bound_9[11:0] = 12'h2cd;

	end
	7'h55:
	begin
		ori_digit_bound_1[11:0] = 12'h23;
		ori_digit_bound_2[11:0] = 12'h79;
		ori_digit_bound_3[11:0] = 12'hd0;
		ori_digit_bound_4[11:0] = 12'h126;
		ori_digit_bound_5[11:0] = 12'h17c;
		ori_digit_bound_6[11:0] = 12'h1d2;
		ori_digit_bound_7[11:0] = 12'h229;
		ori_digit_bound_8[11:0] = 12'h27f;
		ori_digit_bound_9[11:0] = 12'h2d5;

	end
	7'h56:
	begin
		ori_digit_bound_1[11:0] = 12'h23;
		ori_digit_bound_2[11:0] = 12'h7b;
		ori_digit_bound_3[11:0] = 12'hd2;
		ori_digit_bound_4[11:0] = 12'h129;
		ori_digit_bound_5[11:0] = 12'h180;
		ori_digit_bound_6[11:0] = 12'h1d8;
		ori_digit_bound_7[11:0] = 12'h22f;
		ori_digit_bound_8[11:0] = 12'h286;
		ori_digit_bound_9[11:0] = 12'h2de;

	end
	7'h57:
	begin
		ori_digit_bound_1[11:0] = 12'h24;
		ori_digit_bound_2[11:0] = 12'h7c;
		ori_digit_bound_3[11:0] = 12'hd4;
		ori_digit_bound_4[11:0] = 12'h12d;
		ori_digit_bound_5[11:0] = 12'h185;
		ori_digit_bound_6[11:0] = 12'h1dd;
		ori_digit_bound_7[11:0] = 12'h235;
		ori_digit_bound_8[11:0] = 12'h28e;
		ori_digit_bound_9[11:0] = 12'h2e6;

	end
	7'h58:
	begin
		ori_digit_bound_1[11:0] = 12'h24;
		ori_digit_bound_2[11:0] = 12'h7d;
		ori_digit_bound_3[11:0] = 12'hd7;
		ori_digit_bound_4[11:0] = 12'h130;
		ori_digit_bound_5[11:0] = 12'h189;
		ori_digit_bound_6[11:0] = 12'h1e3;
		ori_digit_bound_7[11:0] = 12'h23c;
		ori_digit_bound_8[11:0] = 12'h295;
		ori_digit_bound_9[11:0] = 12'h2ee;

	end
	7'h59:
	begin
		ori_digit_bound_1[11:0] = 12'h25;
		ori_digit_bound_2[11:0] = 12'h7f;
		ori_digit_bound_3[11:0] = 12'hd9;
		ori_digit_bound_4[11:0] = 12'h133;
		ori_digit_bound_5[11:0] = 12'h18e;
		ori_digit_bound_6[11:0] = 12'h1e8;
		ori_digit_bound_7[11:0] = 12'h242;
		ori_digit_bound_8[11:0] = 12'h29c;
		ori_digit_bound_9[11:0] = 12'h2f7;

	end
	7'h5a:
	begin
		ori_digit_bound_1[11:0] = 12'h25;
		ori_digit_bound_2[11:0] = 12'h80;
		ori_digit_bound_3[11:0] = 12'hdc;
		ori_digit_bound_4[11:0] = 12'h137;
		ori_digit_bound_5[11:0] = 12'h192;
		ori_digit_bound_6[11:0] = 12'h1ed;
		ori_digit_bound_7[11:0] = 12'h249;
		ori_digit_bound_8[11:0] = 12'h2a4;
		ori_digit_bound_9[11:0] = 12'h2ff;

	end
	7'h5b:
	begin
		ori_digit_bound_1[11:0] = 12'h25;
		ori_digit_bound_2[11:0] = 12'h82;
		ori_digit_bound_3[11:0] = 12'hde;
		ori_digit_bound_4[11:0] = 12'h13a;
		ori_digit_bound_5[11:0] = 12'h196;
		ori_digit_bound_6[11:0] = 12'h1f3;
		ori_digit_bound_7[11:0] = 12'h24f;
		ori_digit_bound_8[11:0] = 12'h2ab;
		ori_digit_bound_9[11:0] = 12'h308;

	end
	7'h5c:
	begin
		ori_digit_bound_1[11:0] = 12'h26;
		ori_digit_bound_2[11:0] = 12'h83;
		ori_digit_bound_3[11:0] = 12'he0;
		ori_digit_bound_4[11:0] = 12'h13e;
		ori_digit_bound_5[11:0] = 12'h19b;
		ori_digit_bound_6[11:0] = 12'h1f8;
		ori_digit_bound_7[11:0] = 12'h255;
		ori_digit_bound_8[11:0] = 12'h2b3;
		ori_digit_bound_9[11:0] = 12'h310;

	end
	7'h5d:
	begin
		ori_digit_bound_1[11:0] = 12'h26;
		ori_digit_bound_2[11:0] = 12'h84;
		ori_digit_bound_3[11:0] = 12'he3;
		ori_digit_bound_4[11:0] = 12'h141;
		ori_digit_bound_5[11:0] = 12'h19f;
		ori_digit_bound_6[11:0] = 12'h1fe;
		ori_digit_bound_7[11:0] = 12'h25c;
		ori_digit_bound_8[11:0] = 12'h2ba;
		ori_digit_bound_9[11:0] = 12'h318;

	end
	7'h5e:
	begin
		ori_digit_bound_1[11:0] = 12'h27;
		ori_digit_bound_2[11:0] = 12'h86;
		ori_digit_bound_3[11:0] = 12'he5;
		ori_digit_bound_4[11:0] = 12'h144;
		ori_digit_bound_5[11:0] = 12'h1a4;
		ori_digit_bound_6[11:0] = 12'h203;
		ori_digit_bound_7[11:0] = 12'h262;
		ori_digit_bound_8[11:0] = 12'h2c1;
		ori_digit_bound_9[11:0] = 12'h321;

	end
	7'h5f:
	begin
		ori_digit_bound_1[11:0] = 12'h27;
		ori_digit_bound_2[11:0] = 12'h87;
		ori_digit_bound_3[11:0] = 12'he8;
		ori_digit_bound_4[11:0] = 12'h148;
		ori_digit_bound_5[11:0] = 12'h1a8;
		ori_digit_bound_6[11:0] = 12'h208;
		ori_digit_bound_7[11:0] = 12'h269;
		ori_digit_bound_8[11:0] = 12'h2c9;
		ori_digit_bound_9[11:0] = 12'h329;

	end
	7'h60:
	begin
		ori_digit_bound_1[11:0] = 12'h27;
		ori_digit_bound_2[11:0] = 12'h89;
		ori_digit_bound_3[11:0] = 12'hea;
		ori_digit_bound_4[11:0] = 12'h14b;
		ori_digit_bound_5[11:0] = 12'h1ac;
		ori_digit_bound_6[11:0] = 12'h20e;
		ori_digit_bound_7[11:0] = 12'h26f;
		ori_digit_bound_8[11:0] = 12'h2d0;
		ori_digit_bound_9[11:0] = 12'h332;

	end
	7'h61:
	begin
		ori_digit_bound_1[11:0] = 12'h28;
		ori_digit_bound_2[11:0] = 12'h8a;
		ori_digit_bound_3[11:0] = 12'hec;
		ori_digit_bound_4[11:0] = 12'h14f;
		ori_digit_bound_5[11:0] = 12'h1b1;
		ori_digit_bound_6[11:0] = 12'h213;
		ori_digit_bound_7[11:0] = 12'h275;
		ori_digit_bound_8[11:0] = 12'h2d8;
		ori_digit_bound_9[11:0] = 12'h33a;

	end
	7'h62:
	begin
		ori_digit_bound_1[11:0] = 12'h28;
		ori_digit_bound_2[11:0] = 12'h8b;
		ori_digit_bound_3[11:0] = 12'hef;
		ori_digit_bound_4[11:0] = 12'h152;
		ori_digit_bound_5[11:0] = 12'h1b5;
		ori_digit_bound_6[11:0] = 12'h219;
		ori_digit_bound_7[11:0] = 12'h27c;
		ori_digit_bound_8[11:0] = 12'h2df;
		ori_digit_bound_9[11:0] = 12'h342;

	end
	7'h63:
	begin
		ori_digit_bound_1[11:0] = 12'h29;
		ori_digit_bound_2[11:0] = 12'h8d;
		ori_digit_bound_3[11:0] = 12'hf1;
		ori_digit_bound_4[11:0] = 12'h155;
		ori_digit_bound_5[11:0] = 12'h1ba;
		ori_digit_bound_6[11:0] = 12'h21e;
		ori_digit_bound_7[11:0] = 12'h282;
		ori_digit_bound_8[11:0] = 12'h2e6;
		ori_digit_bound_9[11:0] = 12'h34b;

	end
	7'h64:
	begin
		ori_digit_bound_1[11:0] = 12'h29;
		ori_digit_bound_2[11:0] = 12'h8e;
		ori_digit_bound_3[11:0] = 12'hf4;
		ori_digit_bound_4[11:0] = 12'h159;
		ori_digit_bound_5[11:0] = 12'h1be;
		ori_digit_bound_6[11:0] = 12'h223;
		ori_digit_bound_7[11:0] = 12'h289;
		ori_digit_bound_8[11:0] = 12'h2ee;
		ori_digit_bound_9[11:0] = 12'h353;

	end
	7'h65:
	begin
		ori_digit_bound_1[11:0] = 12'h29;
		ori_digit_bound_2[11:0] = 12'h90;
		ori_digit_bound_3[11:0] = 12'hf6;
		ori_digit_bound_4[11:0] = 12'h15c;
		ori_digit_bound_5[11:0] = 12'h1c2;
		ori_digit_bound_6[11:0] = 12'h229;
		ori_digit_bound_7[11:0] = 12'h28f;
		ori_digit_bound_8[11:0] = 12'h2f5;
		ori_digit_bound_9[11:0] = 12'h35c;

	end
	7'h66:
	begin
		ori_digit_bound_1[11:0] = 12'h2a;
		ori_digit_bound_2[11:0] = 12'h91;
		ori_digit_bound_3[11:0] = 12'hf8;
		ori_digit_bound_4[11:0] = 12'h160;
		ori_digit_bound_5[11:0] = 12'h1c7;
		ori_digit_bound_6[11:0] = 12'h22e;
		ori_digit_bound_7[11:0] = 12'h295;
		ori_digit_bound_8[11:0] = 12'h2fd;
		ori_digit_bound_9[11:0] = 12'h364;

	end
	7'h67:
	begin
		ori_digit_bound_1[11:0] = 12'h2a;
		ori_digit_bound_2[11:0] = 12'h92;
		ori_digit_bound_3[11:0] = 12'hfb;
		ori_digit_bound_4[11:0] = 12'h163;
		ori_digit_bound_5[11:0] = 12'h1cb;
		ori_digit_bound_6[11:0] = 12'h234;
		ori_digit_bound_7[11:0] = 12'h29c;
		ori_digit_bound_8[11:0] = 12'h304;
		ori_digit_bound_9[11:0] = 12'h36c;

	end
	7'h68:
	begin
		ori_digit_bound_1[11:0] = 12'h2b;
		ori_digit_bound_2[11:0] = 12'h94;
		ori_digit_bound_3[11:0] = 12'hfd;
		ori_digit_bound_4[11:0] = 12'h166;
		ori_digit_bound_5[11:0] = 12'h1d0;
		ori_digit_bound_6[11:0] = 12'h239;
		ori_digit_bound_7[11:0] = 12'h2a2;
		ori_digit_bound_8[11:0] = 12'h30b;
		ori_digit_bound_9[11:0] = 12'h375;

	end
	7'h69:
	begin
		ori_digit_bound_1[11:0] = 12'h2b;
		ori_digit_bound_2[11:0] = 12'h95;
		ori_digit_bound_3[11:0] = 12'h100;
		ori_digit_bound_4[11:0] = 12'h16a;
		ori_digit_bound_5[11:0] = 12'h1d4;
		ori_digit_bound_6[11:0] = 12'h23e;
		ori_digit_bound_7[11:0] = 12'h2a9;
		ori_digit_bound_8[11:0] = 12'h313;
		ori_digit_bound_9[11:0] = 12'h37d;

	end
	7'h6a:
	begin
		ori_digit_bound_1[11:0] = 12'h2b;
		ori_digit_bound_2[11:0] = 12'h97;
		ori_digit_bound_3[11:0] = 12'h102;
		ori_digit_bound_4[11:0] = 12'h16d;
		ori_digit_bound_5[11:0] = 12'h1d8;
		ori_digit_bound_6[11:0] = 12'h244;
		ori_digit_bound_7[11:0] = 12'h2af;
		ori_digit_bound_8[11:0] = 12'h31a;
		ori_digit_bound_9[11:0] = 12'h386;

	end
	7'h6b:
	begin
		ori_digit_bound_1[11:0] = 12'h2c;
		ori_digit_bound_2[11:0] = 12'h98;
		ori_digit_bound_3[11:0] = 12'h104;
		ori_digit_bound_4[11:0] = 12'h171;
		ori_digit_bound_5[11:0] = 12'h1dd;
		ori_digit_bound_6[11:0] = 12'h249;
		ori_digit_bound_7[11:0] = 12'h2b5;
		ori_digit_bound_8[11:0] = 12'h322;
		ori_digit_bound_9[11:0] = 12'h38e;

	end
	7'h6c:
	begin
		ori_digit_bound_1[11:0] = 12'h2c;
		ori_digit_bound_2[11:0] = 12'h99;
		ori_digit_bound_3[11:0] = 12'h107;
		ori_digit_bound_4[11:0] = 12'h174;
		ori_digit_bound_5[11:0] = 12'h1e1;
		ori_digit_bound_6[11:0] = 12'h24f;
		ori_digit_bound_7[11:0] = 12'h2bc;
		ori_digit_bound_8[11:0] = 12'h329;
		ori_digit_bound_9[11:0] = 12'h396;

	end
	7'h6d:
	begin
		ori_digit_bound_1[11:0] = 12'h2d;
		ori_digit_bound_2[11:0] = 12'h9b;
		ori_digit_bound_3[11:0] = 12'h109;
		ori_digit_bound_4[11:0] = 12'h177;
		ori_digit_bound_5[11:0] = 12'h1e6;
		ori_digit_bound_6[11:0] = 12'h254;
		ori_digit_bound_7[11:0] = 12'h2c2;
		ori_digit_bound_8[11:0] = 12'h330;
		ori_digit_bound_9[11:0] = 12'h39f;

	end
	7'h6e:
	begin
		ori_digit_bound_1[11:0] = 12'h2d;
		ori_digit_bound_2[11:0] = 12'h9c;
		ori_digit_bound_3[11:0] = 12'h10c;
		ori_digit_bound_4[11:0] = 12'h17b;
		ori_digit_bound_5[11:0] = 12'h1ea;
		ori_digit_bound_6[11:0] = 12'h259;
		ori_digit_bound_7[11:0] = 12'h2c9;
		ori_digit_bound_8[11:0] = 12'h338;
		ori_digit_bound_9[11:0] = 12'h3a7;

	end
	7'h6f:
	begin
		ori_digit_bound_1[11:0] = 12'h2d;
		ori_digit_bound_2[11:0] = 12'h9e;
		ori_digit_bound_3[11:0] = 12'h10e;
		ori_digit_bound_4[11:0] = 12'h17e;
		ori_digit_bound_5[11:0] = 12'h1ee;
		ori_digit_bound_6[11:0] = 12'h25f;
		ori_digit_bound_7[11:0] = 12'h2cf;
		ori_digit_bound_8[11:0] = 12'h33f;
		ori_digit_bound_9[11:0] = 12'h3b0;

	end
	7'h70:
	begin
		ori_digit_bound_1[11:0] = 12'h2e;
		ori_digit_bound_2[11:0] = 12'h9f;
		ori_digit_bound_3[11:0] = 12'h110;
		ori_digit_bound_4[11:0] = 12'h182;
		ori_digit_bound_5[11:0] = 12'h1f3;
		ori_digit_bound_6[11:0] = 12'h264;
		ori_digit_bound_7[11:0] = 12'h2d5;
		ori_digit_bound_8[11:0] = 12'h347;
		ori_digit_bound_9[11:0] = 12'h3b8;

	end
	7'h71:
	begin
		ori_digit_bound_1[11:0] = 12'h2e;
		ori_digit_bound_2[11:0] = 12'ha0;
		ori_digit_bound_3[11:0] = 12'h113;
		ori_digit_bound_4[11:0] = 12'h185;
		ori_digit_bound_5[11:0] = 12'h1f7;
		ori_digit_bound_6[11:0] = 12'h26a;
		ori_digit_bound_7[11:0] = 12'h2dc;
		ori_digit_bound_8[11:0] = 12'h34e;
		ori_digit_bound_9[11:0] = 12'h3c0;

	end
	7'h72:
	begin
		ori_digit_bound_1[11:0] = 12'h2f;
		ori_digit_bound_2[11:0] = 12'ha2;
		ori_digit_bound_3[11:0] = 12'h115;
		ori_digit_bound_4[11:0] = 12'h188;
		ori_digit_bound_5[11:0] = 12'h1fc;
		ori_digit_bound_6[11:0] = 12'h26f;
		ori_digit_bound_7[11:0] = 12'h2e2;
		ori_digit_bound_8[11:0] = 12'h355;
		ori_digit_bound_9[11:0] = 12'h3c9;

	end
	7'h73:
	begin
		ori_digit_bound_1[11:0] = 12'h2f;
		ori_digit_bound_2[11:0] = 12'ha3;
		ori_digit_bound_3[11:0] = 12'h118;
		ori_digit_bound_4[11:0] = 12'h18c;
		ori_digit_bound_5[11:0] = 12'h200;
		ori_digit_bound_6[11:0] = 12'h274;
		ori_digit_bound_7[11:0] = 12'h2e9;
		ori_digit_bound_8[11:0] = 12'h35d;
		ori_digit_bound_9[11:0] = 12'h3d1;

	end
	7'h74:
	begin
		ori_digit_bound_1[11:0] = 12'h2f;
		ori_digit_bound_2[11:0] = 12'ha5;
		ori_digit_bound_3[11:0] = 12'h11a;
		ori_digit_bound_4[11:0] = 12'h18f;
		ori_digit_bound_5[11:0] = 12'h204;
		ori_digit_bound_6[11:0] = 12'h27a;
		ori_digit_bound_7[11:0] = 12'h2ef;
		ori_digit_bound_8[11:0] = 12'h364;
		ori_digit_bound_9[11:0] = 12'h3da;

	end
	7'h75:
	begin
		ori_digit_bound_1[11:0] = 12'h30;
		ori_digit_bound_2[11:0] = 12'ha6;
		ori_digit_bound_3[11:0] = 12'h11c;
		ori_digit_bound_4[11:0] = 12'h193;
		ori_digit_bound_5[11:0] = 12'h209;
		ori_digit_bound_6[11:0] = 12'h27f;
		ori_digit_bound_7[11:0] = 12'h2f5;
		ori_digit_bound_8[11:0] = 12'h36c;
		ori_digit_bound_9[11:0] = 12'h3e2;

	end
	7'h76:
	begin
		ori_digit_bound_1[11:0] = 12'h30;
		ori_digit_bound_2[11:0] = 12'ha7;
		ori_digit_bound_3[11:0] = 12'h11f;
		ori_digit_bound_4[11:0] = 12'h196;
		ori_digit_bound_5[11:0] = 12'h20d;
		ori_digit_bound_6[11:0] = 12'h285;
		ori_digit_bound_7[11:0] = 12'h2fc;
		ori_digit_bound_8[11:0] = 12'h373;
		ori_digit_bound_9[11:0] = 12'h3ea;

	end
	7'h77:
	begin
		ori_digit_bound_1[11:0] = 12'h31;
		ori_digit_bound_2[11:0] = 12'ha9;
		ori_digit_bound_3[11:0] = 12'h121;
		ori_digit_bound_4[11:0] = 12'h199;
		ori_digit_bound_5[11:0] = 12'h212;
		ori_digit_bound_6[11:0] = 12'h28a;
		ori_digit_bound_7[11:0] = 12'h302;
		ori_digit_bound_8[11:0] = 12'h37a;
		ori_digit_bound_9[11:0] = 12'h3f3;

	end
	7'h78:
	begin
		ori_digit_bound_1[11:0] = 12'h31;
		ori_digit_bound_2[11:0] = 12'haa;
		ori_digit_bound_3[11:0] = 12'h124;
		ori_digit_bound_4[11:0] = 12'h19d;
		ori_digit_bound_5[11:0] = 12'h216;
		ori_digit_bound_6[11:0] = 12'h28f;
		ori_digit_bound_7[11:0] = 12'h309;
		ori_digit_bound_8[11:0] = 12'h382;
		ori_digit_bound_9[11:0] = 12'h3fb;

	end
	7'h79:
	begin
		ori_digit_bound_1[11:0] = 12'h31;
		ori_digit_bound_2[11:0] = 12'hac;
		ori_digit_bound_3[11:0] = 12'h126;
		ori_digit_bound_4[11:0] = 12'h1a0;
		ori_digit_bound_5[11:0] = 12'h21a;
		ori_digit_bound_6[11:0] = 12'h295;
		ori_digit_bound_7[11:0] = 12'h30f;
		ori_digit_bound_8[11:0] = 12'h389;
		ori_digit_bound_9[11:0] = 12'h404;

	end
	7'h7a:
	begin
		ori_digit_bound_1[11:0] = 12'h32;
		ori_digit_bound_2[11:0] = 12'had;
		ori_digit_bound_3[11:0] = 12'h128;
		ori_digit_bound_4[11:0] = 12'h1a4;
		ori_digit_bound_5[11:0] = 12'h21f;
		ori_digit_bound_6[11:0] = 12'h29a;
		ori_digit_bound_7[11:0] = 12'h315;
		ori_digit_bound_8[11:0] = 12'h391;
		ori_digit_bound_9[11:0] = 12'h40c;

	end
	7'h7b:
	begin
		ori_digit_bound_1[11:0] = 12'h32;
		ori_digit_bound_2[11:0] = 12'hae;
		ori_digit_bound_3[11:0] = 12'h12b;
		ori_digit_bound_4[11:0] = 12'h1a7;
		ori_digit_bound_5[11:0] = 12'h223;
		ori_digit_bound_6[11:0] = 12'h2a0;
		ori_digit_bound_7[11:0] = 12'h31c;
		ori_digit_bound_8[11:0] = 12'h398;
		ori_digit_bound_9[11:0] = 12'h414;

	end
	7'h7c:
	begin
		ori_digit_bound_1[11:0] = 12'h33;
		ori_digit_bound_2[11:0] = 12'hb0;
		ori_digit_bound_3[11:0] = 12'h12d;
		ori_digit_bound_4[11:0] = 12'h1aa;
		ori_digit_bound_5[11:0] = 12'h228;
		ori_digit_bound_6[11:0] = 12'h2a5;
		ori_digit_bound_7[11:0] = 12'h322;
		ori_digit_bound_8[11:0] = 12'h39f;
		ori_digit_bound_9[11:0] = 12'h41d;

	end
	7'h7d:
	begin
		ori_digit_bound_1[11:0] = 12'h33;
		ori_digit_bound_2[11:0] = 12'hb1;
		ori_digit_bound_3[11:0] = 12'h130;
		ori_digit_bound_4[11:0] = 12'h1ae;
		ori_digit_bound_5[11:0] = 12'h22c;
		ori_digit_bound_6[11:0] = 12'h2aa;
		ori_digit_bound_7[11:0] = 12'h329;
		ori_digit_bound_8[11:0] = 12'h3a7;
		ori_digit_bound_9[11:0] = 12'h425;

	end
	7'h7e:
	begin
		ori_digit_bound_1[11:0] = 12'h33;
		ori_digit_bound_2[11:0] = 12'hb3;
		ori_digit_bound_3[11:0] = 12'h132;
		ori_digit_bound_4[11:0] = 12'h1b1;
		ori_digit_bound_5[11:0] = 12'h230;
		ori_digit_bound_6[11:0] = 12'h2b0;
		ori_digit_bound_7[11:0] = 12'h32f;
		ori_digit_bound_8[11:0] = 12'h3ae;
		ori_digit_bound_9[11:0] = 12'h42e;

	end
	7'h7f:
	begin
		ori_digit_bound_1[11:0] = 12'h34;
		ori_digit_bound_2[11:0] = 12'hb4;
		ori_digit_bound_3[11:0] = 12'h134;
		ori_digit_bound_4[11:0] = 12'h1b5;
		ori_digit_bound_5[11:0] = 12'h235;
		ori_digit_bound_6[11:0] = 12'h2b5;
		ori_digit_bound_7[11:0] = 12'h335;
		ori_digit_bound_8[11:0] = 12'h3b6;
		ori_digit_bound_9[11:0] = 12'h436;

	end
	7'h00:
	begin
		ori_digit_bound_1[11:0] = 12'h34;
		ori_digit_bound_2[11:0] = 12'hb5;
		ori_digit_bound_3[11:0] = 12'h137;
		ori_digit_bound_4[11:0] = 12'h1b8;
		ori_digit_bound_5[11:0] = 12'h239;
		ori_digit_bound_6[11:0] = 12'h2bb;
		ori_digit_bound_7[11:0] = 12'h33c;
		ori_digit_bound_8[11:0] = 12'h3bd;
		ori_digit_bound_9[11:0] = 12'h43e;
	end
  default:
  begin
		ori_digit_bound_1[11:0] = {12{1'bx}};
		ori_digit_bound_2[11:0] = {12{1'bx}};
		ori_digit_bound_3[11:0] = {12{1'bx}};
		ori_digit_bound_4[11:0] = {12{1'bx}};
		ori_digit_bound_5[11:0] = {12{1'bx}};
		ori_digit_bound_6[11:0] = {12{1'bx}};
		ori_digit_bound_7[11:0] = {12{1'bx}};
		ori_digit_bound_8[11:0] = {12{1'bx}};
		ori_digit_bound_9[11:0] = {12{1'bx}};
	end
endcase

end

always @( bound_sel[6:0])
begin
case(bound_sel[6:0])
	7'h40:
	begin
		sqrt_digit_boundp2_1[11:0] = 12'h21;
		sqrt_digit_boundp2_2[11:0] = 12'h62;
		sqrt_digit_boundp2_3[11:0] = 12'ha4;
		sqrt_digit_boundp2_4[11:0] = 12'he7;
		sqrt_digit_boundp2_5[11:0] = 12'h12b;
		sqrt_digit_boundp2_6[11:0] = 12'h170;
		sqrt_digit_boundp2_7[11:0] = 12'h1b6;
		sqrt_digit_boundp2_8[11:0] = 12'h1fd;
		sqrt_digit_boundp2_9[11:0] = 12'h245;
	end
	7'h50:
	begin
		sqrt_digit_boundp2_1[11:0] = 12'h29;
		sqrt_digit_boundp2_2[11:0] = 12'h7a;
		sqrt_digit_boundp2_3[11:0] = 12'hcc;
		sqrt_digit_boundp2_4[11:0] = 12'h11f;
		sqrt_digit_boundp2_5[11:0] = 12'h173;
		sqrt_digit_boundp2_6[11:0] = 12'h1c8;
		sqrt_digit_boundp2_7[11:0] = 12'h21e;
		sqrt_digit_boundp2_8[11:0] = 12'h275;
		sqrt_digit_boundp2_9[11:0] = 12'h2cd;
	end
	7'h60:
	begin
		sqrt_digit_boundp2_1[11:0] = 12'h31;
		sqrt_digit_boundp2_2[11:0] = 12'h92;
		sqrt_digit_boundp2_3[11:0] = 12'hf4;
		sqrt_digit_boundp2_4[11:0] = 12'h157;
		sqrt_digit_boundp2_5[11:0] = 12'h1bb;
		sqrt_digit_boundp2_6[11:0] = 12'h220;
		sqrt_digit_boundp2_7[11:0] = 12'h286;
		sqrt_digit_boundp2_8[11:0] = 12'h2ed;
		sqrt_digit_boundp2_9[11:0] = 12'h355;
	end
	7'h70:
	begin
		sqrt_digit_boundp2_1[11:0] = 12'h39;
		sqrt_digit_boundp2_2[11:0] = 12'haa;
		sqrt_digit_boundp2_3[11:0] = 12'h11c;
		sqrt_digit_boundp2_4[11:0] = 12'h18f;
		sqrt_digit_boundp2_5[11:0] = 12'h203;
		sqrt_digit_boundp2_6[11:0] = 12'h278;
		sqrt_digit_boundp2_7[11:0] = 12'h2ee;
		sqrt_digit_boundp2_8[11:0] = 12'h365;
		sqrt_digit_boundp2_9[11:0] = 12'h3dd;
	end
	7'h00:
	begin
		sqrt_digit_boundp2_1[11:0] = 12'h41;
		sqrt_digit_boundp2_2[11:0] = 12'hc2;
		sqrt_digit_boundp2_3[11:0] = 12'h144;
		sqrt_digit_boundp2_4[11:0] = 12'h1c7;
		sqrt_digit_boundp2_5[11:0] = 12'h24b;
		sqrt_digit_boundp2_6[11:0] = 12'h2d0;
		sqrt_digit_boundp2_7[11:0] = 12'h356;
		sqrt_digit_boundp2_8[11:0] = 12'h3dd;
		sqrt_digit_boundp2_9[11:0] = 12'h465;
	end
  default:
  begin
		sqrt_digit_boundp2_1[11:0] = {12{1'bx}};
		sqrt_digit_boundp2_2[11:0] = {12{1'bx}};
		sqrt_digit_boundp2_3[11:0] = {12{1'bx}};
		sqrt_digit_boundp2_4[11:0] = {12{1'bx}};
		sqrt_digit_boundp2_5[11:0] = {12{1'bx}};
		sqrt_digit_boundp2_6[11:0] = {12{1'bx}};
		sqrt_digit_boundp2_7[11:0] = {12{1'bx}};
		sqrt_digit_boundp2_8[11:0] = {12{1'bx}};
		sqrt_digit_boundp2_9[11:0] = {12{1'bx}};
	end


endcase

end

always @( bound_sel[6:0])
begin
case(bound_sel[6:0])
  7'h40:
	begin
		sqrt_digit_boundm2_1[11:0] = 12'h20;
		sqrt_digit_boundm2_2[11:0] = 12'h5f;
		sqrt_digit_boundm2_3[11:0] = 12'h9d;
		sqrt_digit_boundm2_4[11:0] = 12'hda;
		sqrt_digit_boundm2_5[11:0] = 12'h116;
		sqrt_digit_boundm2_6[11:0] = 12'h151;
		sqrt_digit_boundm2_7[11:0] = 12'h18b;
		sqrt_digit_boundm2_8[11:0] = 12'h1c4;
		sqrt_digit_boundm2_9[11:0] = 12'h1fc;
	end
	7'h50:
	begin
		sqrt_digit_boundm2_1[11:0] = 12'h28;
		sqrt_digit_boundm2_2[11:0] = 12'h77;
		sqrt_digit_boundm2_3[11:0] = 12'hc5;
		sqrt_digit_boundm2_4[11:0] = 12'h112;
		sqrt_digit_boundm2_5[11:0] = 12'h15e;
		sqrt_digit_boundm2_6[11:0] = 12'h1a9;
		sqrt_digit_boundm2_7[11:0] = 12'h1f3;
		sqrt_digit_boundm2_8[11:0] = 12'h23c;
		sqrt_digit_boundm2_9[11:0] = 12'h284;
	end
	7'h60:
	begin
		sqrt_digit_boundm2_1[11:0] = 12'h30;
		sqrt_digit_boundm2_2[11:0] = 12'h8f;
		sqrt_digit_boundm2_3[11:0] = 12'hed;
		sqrt_digit_boundm2_4[11:0] = 12'h14a;
		sqrt_digit_boundm2_5[11:0] = 12'h1a6;
		sqrt_digit_boundm2_6[11:0] = 12'h201;
		sqrt_digit_boundm2_7[11:0] = 12'h25b;
		sqrt_digit_boundm2_8[11:0] = 12'h2b4;
		sqrt_digit_boundm2_9[11:0] = 12'h30c;
	end
	7'h70:
	begin
		sqrt_digit_boundm2_1[11:0] = 12'h38;
		sqrt_digit_boundm2_2[11:0] = 12'ha7;
		sqrt_digit_boundm2_3[11:0] = 12'h115;
		sqrt_digit_boundm2_4[11:0] = 12'h182;
		sqrt_digit_boundm2_5[11:0] = 12'h1ee;
		sqrt_digit_boundm2_6[11:0] = 12'h259;
		sqrt_digit_boundm2_7[11:0] = 12'h2c3;
		sqrt_digit_boundm2_8[11:0] = 12'h32c;
		sqrt_digit_boundm2_9[11:0] = 12'h394;
	end
	7'h00:
	begin
		sqrt_digit_boundm2_1[11:0] = 12'h40;
		sqrt_digit_boundm2_2[11:0] = 12'hbf;
		sqrt_digit_boundm2_3[11:0] = 12'h13d;
		sqrt_digit_boundm2_4[11:0] = 12'h1ba;
		sqrt_digit_boundm2_5[11:0] = 12'h236;
		sqrt_digit_boundm2_6[11:0] = 12'h2b1;
		sqrt_digit_boundm2_7[11:0] = 12'h32b;
		sqrt_digit_boundm2_8[11:0] = 12'h3a4;
		sqrt_digit_boundm2_9[11:0] = 12'h41c;
	end

  default:
  begin
		sqrt_digit_boundm2_1[11:0] = {12{1'bx}};
		sqrt_digit_boundm2_2[11:0] = {12{1'bx}};
		sqrt_digit_boundm2_3[11:0] = {12{1'bx}};
		sqrt_digit_boundm2_4[11:0] = {12{1'bx}};
		sqrt_digit_boundm2_5[11:0] = {12{1'bx}};
		sqrt_digit_boundm2_6[11:0] = {12{1'bx}};
		sqrt_digit_boundm2_7[11:0] = {12{1'bx}};
		sqrt_digit_boundm2_8[11:0] = {12{1'bx}};
		sqrt_digit_boundm2_9[11:0] = {12{1'bx}};
	end
endcase

end
assign sqrt_digit_bound2_1[11:0] = sqrt_secd_round_sign ? sqrt_digit_boundm2_1[11:0] : sqrt_digit_boundp2_1[11:0];
assign sqrt_digit_bound2_2[11:0] = sqrt_secd_round_sign ? sqrt_digit_boundm2_2[11:0] : sqrt_digit_boundp2_2[11:0];
assign sqrt_digit_bound2_3[11:0] = sqrt_secd_round_sign ? sqrt_digit_boundm2_3[11:0] : sqrt_digit_boundp2_3[11:0];
assign sqrt_digit_bound2_4[11:0] = sqrt_secd_round_sign ? sqrt_digit_boundm2_4[11:0] : sqrt_digit_boundp2_4[11:0];
assign sqrt_digit_bound2_5[11:0] = sqrt_secd_round_sign ? sqrt_digit_boundm2_5[11:0] : sqrt_digit_boundp2_5[11:0];
assign sqrt_digit_bound2_6[11:0] = sqrt_secd_round_sign ? sqrt_digit_boundm2_6[11:0] : sqrt_digit_boundp2_6[11:0];
assign sqrt_digit_bound2_7[11:0] = sqrt_secd_round_sign ? sqrt_digit_boundm2_7[11:0] : sqrt_digit_boundp2_7[11:0];
assign sqrt_digit_bound2_8[11:0] = sqrt_secd_round_sign ? sqrt_digit_boundm2_8[11:0] : sqrt_digit_boundp2_8[11:0];
assign sqrt_digit_bound2_9[11:0] = sqrt_secd_round_sign ? sqrt_digit_boundm2_9[11:0] : sqrt_digit_boundp2_9[11:0];
                                                

assign digit_bound_1[11:0] = sqrt_first_round ? 12'h2 : 
                                                sqrt_secd_round ? sqrt_digit_bound2_1[11:0] 
                                                                 : ori_digit_bound_1[11:0];
assign digit_bound_2[11:0] = sqrt_first_round ? 12'h10 : 
                                                sqrt_secd_round ? sqrt_digit_bound2_2[11:0] 
                                                                : ori_digit_bound_2[11:0];
assign digit_bound_3[11:0] = sqrt_first_round ? 12'h35 : 
                                                sqrt_secd_round ? sqrt_digit_bound2_3[11:0] 
                                                                : ori_digit_bound_3[11:0];
assign digit_bound_4[11:0] = sqrt_first_round ? 12'h5f : 
                                                sqrt_secd_round ? sqrt_digit_bound2_4[11:0] 
                                                                : ori_digit_bound_4[11:0];
assign digit_bound_5[11:0] = sqrt_first_round ? 12'ha0 : 
                                                sqrt_secd_round ? sqrt_digit_bound2_5[11:0] 
                                                                : ori_digit_bound_5[11:0];
assign digit_bound_6[11:0] = sqrt_first_round ? 12'hf0 : 
                                                sqrt_secd_round ? sqrt_digit_bound2_6[11:0] 
                                                                : ori_digit_bound_6[11:0];
assign digit_bound_7[11:0] = sqrt_first_round ? 12'h14f : 
                                                sqrt_secd_round ? sqrt_digit_bound2_7[11:0] 
                                                                : ori_digit_bound_7[11:0];
assign digit_bound_8[11:0] = sqrt_first_round ? 12'h1c2 : 
                                                sqrt_secd_round ? sqrt_digit_bound2_8[11:0] 
                                                                : ori_digit_bound_8[11:0];
assign digit_bound_9[11:0] = sqrt_first_round ? 12'h23a : 
                                                sqrt_secd_round ? sqrt_digit_bound2_9[11:0] 
                                                                : ori_digit_bound_9[11:0];

endmodule
module ct_vfdsu_srt_radix16_bound_table(
  bound_sel,
  digit_bound_1,
  digit_bound_2,
  digit_bound_3,
  digit_bound_4,
  digit_bound_5,
  digit_bound_6,
  digit_bound_7,
  digit_bound_8,
  digit_bound_9,
  sqrt_first_round,
  sqrt_secd_round,
  sqrt_secd_round_sign
);



input   [6 :0]  bound_sel;           
input           sqrt_first_round;    
input           sqrt_secd_round;     
input           sqrt_secd_round_sign; 
output  [11:0]  digit_bound_1;       
output  [11:0]  digit_bound_2;       
output  [11:0]  digit_bound_3;       
output  [11:0]  digit_bound_4;       
output  [11:0]  digit_bound_5;       
output  [11:0]  digit_bound_6;       
output  [11:0]  digit_bound_7;       
output  [11:0]  digit_bound_8;       
output  [11:0]  digit_bound_9;       


reg     [11:0]  ori_digit_bound_1;   
reg     [11:0]  ori_digit_bound_2;   
reg     [11:0]  ori_digit_bound_3;   
reg     [11:0]  ori_digit_bound_4;   
reg     [11:0]  ori_digit_bound_5;   
reg     [11:0]  ori_digit_bound_6;   
reg     [11:0]  ori_digit_bound_7;   
reg     [11:0]  ori_digit_bound_8;   
reg     [11:0]  ori_digit_bound_9;   
reg     [11:0]  sqrt_digit_boundm2_1; 
reg     [11:0]  sqrt_digit_boundm2_2; 
reg     [11:0]  sqrt_digit_boundm2_3; 
reg     [11:0]  sqrt_digit_boundm2_4; 
reg     [11:0]  sqrt_digit_boundm2_5; 
reg     [11:0]  sqrt_digit_boundm2_6; 
reg     [11:0]  sqrt_digit_boundm2_7; 
reg     [11:0]  sqrt_digit_boundm2_8; 
reg     [11:0]  sqrt_digit_boundm2_9; 
reg     [11:0]  sqrt_digit_boundp2_1; 
reg     [11:0]  sqrt_digit_boundp2_2; 
reg     [11:0]  sqrt_digit_boundp2_3; 
reg     [11:0]  sqrt_digit_boundp2_4; 
reg     [11:0]  sqrt_digit_boundp2_5; 
reg     [11:0]  sqrt_digit_boundp2_6; 
reg     [11:0]  sqrt_digit_boundp2_7; 
reg     [11:0]  sqrt_digit_boundp2_8; 
reg     [11:0]  sqrt_digit_boundp2_9; 


wire    [6 :0]  bound_sel;           
wire    [11:0]  digit_bound_1;       
wire    [11:0]  digit_bound_2;       
wire    [11:0]  digit_bound_3;       
wire    [11:0]  digit_bound_4;       
wire    [11:0]  digit_bound_5;       
wire    [11:0]  digit_bound_6;       
wire    [11:0]  digit_bound_7;       
wire    [11:0]  digit_bound_8;       
wire    [11:0]  digit_bound_9;       
wire    [11:0]  sqrt_digit_bound2_1; 
wire    [11:0]  sqrt_digit_bound2_2; 
wire    [11:0]  sqrt_digit_bound2_3; 
wire    [11:0]  sqrt_digit_bound2_4; 
wire    [11:0]  sqrt_digit_bound2_5; 
wire    [11:0]  sqrt_digit_bound2_6; 
wire    [11:0]  sqrt_digit_bound2_7; 
wire    [11:0]  sqrt_digit_bound2_8; 
wire    [11:0]  sqrt_digit_bound2_9; 
wire            sqrt_first_round;    
wire            sqrt_secd_round;     
wire            sqrt_secd_round_sign; 



always @( bound_sel[6:0])
begin
case(bound_sel[6:0])
  	7'h40:
	begin
		ori_digit_bound_1[11:0] = 12'h1b;
		ori_digit_bound_2[11:0] = 12'h5c;
		ori_digit_bound_3[11:0] = 12'h9d;
		ori_digit_bound_4[11:0] = 12'hde;
		ori_digit_bound_5[11:0] = 12'h120;
		ori_digit_bound_6[11:0] = 12'h161;
		ori_digit_bound_7[11:0] = 12'h1a2;
		ori_digit_bound_8[11:0] = 12'h1e3;
		ori_digit_bound_9[11:0] = 12'h225;

	end
	7'h41:
	begin
		ori_digit_bound_1[11:0] = 12'h1b;
		ori_digit_bound_2[11:0] = 12'h5d;
		ori_digit_bound_3[11:0] = 12'ha0;
		ori_digit_bound_4[11:0] = 12'he2;
		ori_digit_bound_5[11:0] = 12'h124;
		ori_digit_bound_6[11:0] = 12'h166;
		ori_digit_bound_7[11:0] = 12'h1a9;
		ori_digit_bound_8[11:0] = 12'h1eb;
		ori_digit_bound_9[11:0] = 12'h22d;

	end
	7'h42:
	begin
		ori_digit_bound_1[11:0] = 12'h1b;
		ori_digit_bound_2[11:0] = 12'h5f;
		ori_digit_bound_3[11:0] = 12'ha2;
		ori_digit_bound_4[11:0] = 12'he5;
		ori_digit_bound_5[11:0] = 12'h128;
		ori_digit_bound_6[11:0] = 12'h16c;
		ori_digit_bound_7[11:0] = 12'h1af;
		ori_digit_bound_8[11:0] = 12'h1f2;
		ori_digit_bound_9[11:0] = 12'h236;

	end
	7'h43:
	begin
		ori_digit_bound_1[11:0] = 12'h1c;
		ori_digit_bound_2[11:0] = 12'h60;
		ori_digit_bound_3[11:0] = 12'ha4;
		ori_digit_bound_4[11:0] = 12'he9;
		ori_digit_bound_5[11:0] = 12'h12d;
		ori_digit_bound_6[11:0] = 12'h171;
		ori_digit_bound_7[11:0] = 12'h1b5;
		ori_digit_bound_8[11:0] = 12'h1fa;
		ori_digit_bound_9[11:0] = 12'h23e;

	end
	7'h44:
	begin
		ori_digit_bound_1[11:0] = 12'h1c;
		ori_digit_bound_2[11:0] = 12'h61;
		ori_digit_bound_3[11:0] = 12'ha7;
		ori_digit_bound_4[11:0] = 12'hec;
		ori_digit_bound_5[11:0] = 12'h131;
		ori_digit_bound_6[11:0] = 12'h177;
		ori_digit_bound_7[11:0] = 12'h1bc;
		ori_digit_bound_8[11:0] = 12'h201;
		ori_digit_bound_9[11:0] = 12'h246;

	end
	7'h45:
	begin
		ori_digit_bound_1[11:0] = 12'h1d;
		ori_digit_bound_2[11:0] = 12'h63;
		ori_digit_bound_3[11:0] = 12'ha9;
		ori_digit_bound_4[11:0] = 12'hef;
		ori_digit_bound_5[11:0] = 12'h136;
		ori_digit_bound_6[11:0] = 12'h17c;
		ori_digit_bound_7[11:0] = 12'h1c2;
		ori_digit_bound_8[11:0] = 12'h208;
		ori_digit_bound_9[11:0] = 12'h24f;

	end
	7'h46:
	begin
		ori_digit_bound_1[11:0] = 12'h1d;
		ori_digit_bound_2[11:0] = 12'h64;
		ori_digit_bound_3[11:0] = 12'hac;
		ori_digit_bound_4[11:0] = 12'hf3;
		ori_digit_bound_5[11:0] = 12'h13a;
		ori_digit_bound_6[11:0] = 12'h181;
		ori_digit_bound_7[11:0] = 12'h1c9;
		ori_digit_bound_8[11:0] = 12'h210;
		ori_digit_bound_9[11:0] = 12'h257;

	end
	7'h47:
	begin
		ori_digit_bound_1[11:0] = 12'h1d;
		ori_digit_bound_2[11:0] = 12'h66;
		ori_digit_bound_3[11:0] = 12'hae;
		ori_digit_bound_4[11:0] = 12'hf6;
		ori_digit_bound_5[11:0] = 12'h13e;
		ori_digit_bound_6[11:0] = 12'h187;
		ori_digit_bound_7[11:0] = 12'h1cf;
		ori_digit_bound_8[11:0] = 12'h217;
		ori_digit_bound_9[11:0] = 12'h260;

	end
	7'h48:
	begin
		ori_digit_bound_1[11:0] = 12'h1e;
		ori_digit_bound_2[11:0] = 12'h67;
		ori_digit_bound_3[11:0] = 12'hb0;
		ori_digit_bound_4[11:0] = 12'hfa;
		ori_digit_bound_5[11:0] = 12'h143;
		ori_digit_bound_6[11:0] = 12'h18c;
		ori_digit_bound_7[11:0] = 12'h1d5;
		ori_digit_bound_8[11:0] = 12'h21f;
		ori_digit_bound_9[11:0] = 12'h268;

	end
	7'h49:
	begin
		ori_digit_bound_1[11:0] = 12'h1e;
		ori_digit_bound_2[11:0] = 12'h68;
		ori_digit_bound_3[11:0] = 12'hb3;
		ori_digit_bound_4[11:0] = 12'hfd;
		ori_digit_bound_5[11:0] = 12'h147;
		ori_digit_bound_6[11:0] = 12'h192;
		ori_digit_bound_7[11:0] = 12'h1dc;
		ori_digit_bound_8[11:0] = 12'h226;
		ori_digit_bound_9[11:0] = 12'h270;

	end
	7'h4a:
	begin
		ori_digit_bound_1[11:0] = 12'h1f;
		ori_digit_bound_2[11:0] = 12'h6a;
		ori_digit_bound_3[11:0] = 12'hb5;
		ori_digit_bound_4[11:0] = 12'h100;
		ori_digit_bound_5[11:0] = 12'h14c;
		ori_digit_bound_6[11:0] = 12'h197;
		ori_digit_bound_7[11:0] = 12'h1e2;
		ori_digit_bound_8[11:0] = 12'h22d;
		ori_digit_bound_9[11:0] = 12'h279;

	end
	7'h4b:
	begin
		ori_digit_bound_1[11:0] = 12'h1f;
		ori_digit_bound_2[11:0] = 12'h6b;
		ori_digit_bound_3[11:0] = 12'hb8;
		ori_digit_bound_4[11:0] = 12'h104;
		ori_digit_bound_5[11:0] = 12'h150;
		ori_digit_bound_6[11:0] = 12'h19c;
		ori_digit_bound_7[11:0] = 12'h1e9;
		ori_digit_bound_8[11:0] = 12'h235;
		ori_digit_bound_9[11:0] = 12'h281;

	end
	7'h4c:
	begin
		ori_digit_bound_1[11:0] = 12'h1f;
		ori_digit_bound_2[11:0] = 12'h6d;
		ori_digit_bound_3[11:0] = 12'hba;
		ori_digit_bound_4[11:0] = 12'h107;
		ori_digit_bound_5[11:0] = 12'h154;
		ori_digit_bound_6[11:0] = 12'h1a2;
		ori_digit_bound_7[11:0] = 12'h1ef;
		ori_digit_bound_8[11:0] = 12'h23c;
		ori_digit_bound_9[11:0] = 12'h28a;

	end
	7'h4d:
	begin
		ori_digit_bound_1[11:0] = 12'h20;
		ori_digit_bound_2[11:0] = 12'h6e;
		ori_digit_bound_3[11:0] = 12'hbc;
		ori_digit_bound_4[11:0] = 12'h10b;
		ori_digit_bound_5[11:0] = 12'h159;
		ori_digit_bound_6[11:0] = 12'h1a7;
		ori_digit_bound_7[11:0] = 12'h1f5;
		ori_digit_bound_8[11:0] = 12'h244;
		ori_digit_bound_9[11:0] = 12'h292;

	end
	7'h4e:
	begin
		ori_digit_bound_1[11:0] = 12'h20;
		ori_digit_bound_2[11:0] = 12'h6f;
		ori_digit_bound_3[11:0] = 12'hbf;
		ori_digit_bound_4[11:0] = 12'h10e;
		ori_digit_bound_5[11:0] = 12'h15d;
		ori_digit_bound_6[11:0] = 12'h1ad;
		ori_digit_bound_7[11:0] = 12'h1fc;
		ori_digit_bound_8[11:0] = 12'h24b;
		ori_digit_bound_9[11:0] = 12'h29a;

	end
	7'h4f:
	begin
		ori_digit_bound_1[11:0] = 12'h21;
		ori_digit_bound_2[11:0] = 12'h71;
		ori_digit_bound_3[11:0] = 12'hc1;
		ori_digit_bound_4[11:0] = 12'h111;
		ori_digit_bound_5[11:0] = 12'h162;
		ori_digit_bound_6[11:0] = 12'h1b2;
		ori_digit_bound_7[11:0] = 12'h202;
		ori_digit_bound_8[11:0] = 12'h252;
		ori_digit_bound_9[11:0] = 12'h2a3;

	end
	7'h50:
	begin
		ori_digit_bound_1[11:0] = 12'h21;
		ori_digit_bound_2[11:0] = 12'h72;
		ori_digit_bound_3[11:0] = 12'hc4;
		ori_digit_bound_4[11:0] = 12'h115;
		ori_digit_bound_5[11:0] = 12'h166;
		ori_digit_bound_6[11:0] = 12'h1b7;
		ori_digit_bound_7[11:0] = 12'h209;
		ori_digit_bound_8[11:0] = 12'h25a;
		ori_digit_bound_9[11:0] = 12'h2ab;

	end
	7'h51:
	begin
		ori_digit_bound_1[11:0] = 12'h21;
		ori_digit_bound_2[11:0] = 12'h74;
		ori_digit_bound_3[11:0] = 12'hc6;
		ori_digit_bound_4[11:0] = 12'h118;
		ori_digit_bound_5[11:0] = 12'h16a;
		ori_digit_bound_6[11:0] = 12'h1bd;
		ori_digit_bound_7[11:0] = 12'h20f;
		ori_digit_bound_8[11:0] = 12'h261;
		ori_digit_bound_9[11:0] = 12'h2b4;

	end
	7'h52:
	begin
		ori_digit_bound_1[11:0] = 12'h22;
		ori_digit_bound_2[11:0] = 12'h75;
		ori_digit_bound_3[11:0] = 12'hc8;
		ori_digit_bound_4[11:0] = 12'h11c;
		ori_digit_bound_5[11:0] = 12'h16f;
		ori_digit_bound_6[11:0] = 12'h1c2;
		ori_digit_bound_7[11:0] = 12'h215;
		ori_digit_bound_8[11:0] = 12'h269;
		ori_digit_bound_9[11:0] = 12'h2bc;

	end
	7'h53:
	begin
		ori_digit_bound_1[11:0] = 12'h22;
		ori_digit_bound_2[11:0] = 12'h76;
		ori_digit_bound_3[11:0] = 12'hcb;
		ori_digit_bound_4[11:0] = 12'h11f;
		ori_digit_bound_5[11:0] = 12'h173;
		ori_digit_bound_6[11:0] = 12'h1c8;
		ori_digit_bound_7[11:0] = 12'h21c;
		ori_digit_bound_8[11:0] = 12'h270;
		ori_digit_bound_9[11:0] = 12'h2c4;

	end
	7'h54:
	begin
		ori_digit_bound_1[11:0] = 12'h23;
		ori_digit_bound_2[11:0] = 12'h78;
		ori_digit_bound_3[11:0] = 12'hcd;
		ori_digit_bound_4[11:0] = 12'h122;
		ori_digit_bound_5[11:0] = 12'h178;
		ori_digit_bound_6[11:0] = 12'h1cd;
		ori_digit_bound_7[11:0] = 12'h222;
		ori_digit_bound_8[11:0] = 12'h277;
		ori_digit_bound_9[11:0] = 12'h2cd;

	end
	7'h55:
	begin
		ori_digit_bound_1[11:0] = 12'h23;
		ori_digit_bound_2[11:0] = 12'h79;
		ori_digit_bound_3[11:0] = 12'hd0;
		ori_digit_bound_4[11:0] = 12'h126;
		ori_digit_bound_5[11:0] = 12'h17c;
		ori_digit_bound_6[11:0] = 12'h1d2;
		ori_digit_bound_7[11:0] = 12'h229;
		ori_digit_bound_8[11:0] = 12'h27f;
		ori_digit_bound_9[11:0] = 12'h2d5;

	end
	7'h56:
	begin
		ori_digit_bound_1[11:0] = 12'h23;
		ori_digit_bound_2[11:0] = 12'h7b;
		ori_digit_bound_3[11:0] = 12'hd2;
		ori_digit_bound_4[11:0] = 12'h129;
		ori_digit_bound_5[11:0] = 12'h180;
		ori_digit_bound_6[11:0] = 12'h1d8;
		ori_digit_bound_7[11:0] = 12'h22f;
		ori_digit_bound_8[11:0] = 12'h286;
		ori_digit_bound_9[11:0] = 12'h2de;

	end
	7'h57:
	begin
		ori_digit_bound_1[11:0] = 12'h24;
		ori_digit_bound_2[11:0] = 12'h7c;
		ori_digit_bound_3[11:0] = 12'hd4;
		ori_digit_bound_4[11:0] = 12'h12d;
		ori_digit_bound_5[11:0] = 12'h185;
		ori_digit_bound_6[11:0] = 12'h1dd;
		ori_digit_bound_7[11:0] = 12'h235;
		ori_digit_bound_8[11:0] = 12'h28e;
		ori_digit_bound_9[11:0] = 12'h2e6;

	end
	7'h58:
	begin
		ori_digit_bound_1[11:0] = 12'h24;
		ori_digit_bound_2[11:0] = 12'h7d;
		ori_digit_bound_3[11:0] = 12'hd7;
		ori_digit_bound_4[11:0] = 12'h130;
		ori_digit_bound_5[11:0] = 12'h189;
		ori_digit_bound_6[11:0] = 12'h1e3;
		ori_digit_bound_7[11:0] = 12'h23c;
		ori_digit_bound_8[11:0] = 12'h295;
		ori_digit_bound_9[11:0] = 12'h2ee;

	end
	7'h59:
	begin
		ori_digit_bound_1[11:0] = 12'h25;
		ori_digit_bound_2[11:0] = 12'h7f;
		ori_digit_bound_3[11:0] = 12'hd9;
		ori_digit_bound_4[11:0] = 12'h133;
		ori_digit_bound_5[11:0] = 12'h18e;
		ori_digit_bound_6[11:0] = 12'h1e8;
		ori_digit_bound_7[11:0] = 12'h242;
		ori_digit_bound_8[11:0] = 12'h29c;
		ori_digit_bound_9[11:0] = 12'h2f7;

	end
	7'h5a:
	begin
		ori_digit_bound_1[11:0] = 12'h25;
		ori_digit_bound_2[11:0] = 12'h80;
		ori_digit_bound_3[11:0] = 12'hdc;
		ori_digit_bound_4[11:0] = 12'h137;
		ori_digit_bound_5[11:0] = 12'h192;
		ori_digit_bound_6[11:0] = 12'h1ed;
		ori_digit_bound_7[11:0] = 12'h249;
		ori_digit_bound_8[11:0] = 12'h2a4;
		ori_digit_bound_9[11:0] = 12'h2ff;

	end
	7'h5b:
	begin
		ori_digit_bound_1[11:0] = 12'h25;
		ori_digit_bound_2[11:0] = 12'h82;
		ori_digit_bound_3[11:0] = 12'hde;
		ori_digit_bound_4[11:0] = 12'h13a;
		ori_digit_bound_5[11:0] = 12'h196;
		ori_digit_bound_6[11:0] = 12'h1f3;
		ori_digit_bound_7[11:0] = 12'h24f;
		ori_digit_bound_8[11:0] = 12'h2ab;
		ori_digit_bound_9[11:0] = 12'h308;

	end
	7'h5c:
	begin
		ori_digit_bound_1[11:0] = 12'h26;
		ori_digit_bound_2[11:0] = 12'h83;
		ori_digit_bound_3[11:0] = 12'he0;
		ori_digit_bound_4[11:0] = 12'h13e;
		ori_digit_bound_5[11:0] = 12'h19b;
		ori_digit_bound_6[11:0] = 12'h1f8;
		ori_digit_bound_7[11:0] = 12'h255;
		ori_digit_bound_8[11:0] = 12'h2b3;
		ori_digit_bound_9[11:0] = 12'h310;

	end
	7'h5d:
	begin
		ori_digit_bound_1[11:0] = 12'h26;
		ori_digit_bound_2[11:0] = 12'h84;
		ori_digit_bound_3[11:0] = 12'he3;
		ori_digit_bound_4[11:0] = 12'h141;
		ori_digit_bound_5[11:0] = 12'h19f;
		ori_digit_bound_6[11:0] = 12'h1fe;
		ori_digit_bound_7[11:0] = 12'h25c;
		ori_digit_bound_8[11:0] = 12'h2ba;
		ori_digit_bound_9[11:0] = 12'h318;

	end
	7'h5e:
	begin
		ori_digit_bound_1[11:0] = 12'h27;
		ori_digit_bound_2[11:0] = 12'h86;
		ori_digit_bound_3[11:0] = 12'he5;
		ori_digit_bound_4[11:0] = 12'h144;
		ori_digit_bound_5[11:0] = 12'h1a4;
		ori_digit_bound_6[11:0] = 12'h203;
		ori_digit_bound_7[11:0] = 12'h262;
		ori_digit_bound_8[11:0] = 12'h2c1;
		ori_digit_bound_9[11:0] = 12'h321;

	end
	7'h5f:
	begin
		ori_digit_bound_1[11:0] = 12'h27;
		ori_digit_bound_2[11:0] = 12'h87;
		ori_digit_bound_3[11:0] = 12'he8;
		ori_digit_bound_4[11:0] = 12'h148;
		ori_digit_bound_5[11:0] = 12'h1a8;
		ori_digit_bound_6[11:0] = 12'h208;
		ori_digit_bound_7[11:0] = 12'h269;
		ori_digit_bound_8[11:0] = 12'h2c9;
		ori_digit_bound_9[11:0] = 12'h329;

	end
	7'h60:
	begin
		ori_digit_bound_1[11:0] = 12'h27;
		ori_digit_bound_2[11:0] = 12'h89;
		ori_digit_bound_3[11:0] = 12'hea;
		ori_digit_bound_4[11:0] = 12'h14b;
		ori_digit_bound_5[11:0] = 12'h1ac;
		ori_digit_bound_6[11:0] = 12'h20e;
		ori_digit_bound_7[11:0] = 12'h26f;
		ori_digit_bound_8[11:0] = 12'h2d0;
		ori_digit_bound_9[11:0] = 12'h332;

	end
	7'h61:
	begin
		ori_digit_bound_1[11:0] = 12'h28;
		ori_digit_bound_2[11:0] = 12'h8a;
		ori_digit_bound_3[11:0] = 12'hec;
		ori_digit_bound_4[11:0] = 12'h14f;
		ori_digit_bound_5[11:0] = 12'h1b1;
		ori_digit_bound_6[11:0] = 12'h213;
		ori_digit_bound_7[11:0] = 12'h275;
		ori_digit_bound_8[11:0] = 12'h2d8;
		ori_digit_bound_9[11:0] = 12'h33a;

	end
	7'h62:
	begin
		ori_digit_bound_1[11:0] = 12'h28;
		ori_digit_bound_2[11:0] = 12'h8b;
		ori_digit_bound_3[11:0] = 12'hef;
		ori_digit_bound_4[11:0] = 12'h152;
		ori_digit_bound_5[11:0] = 12'h1b5;
		ori_digit_bound_6[11:0] = 12'h219;
		ori_digit_bound_7[11:0] = 12'h27c;
		ori_digit_bound_8[11:0] = 12'h2df;
		ori_digit_bound_9[11:0] = 12'h342;

	end
	7'h63:
	begin
		ori_digit_bound_1[11:0] = 12'h29;
		ori_digit_bound_2[11:0] = 12'h8d;
		ori_digit_bound_3[11:0] = 12'hf1;
		ori_digit_bound_4[11:0] = 12'h155;
		ori_digit_bound_5[11:0] = 12'h1ba;
		ori_digit_bound_6[11:0] = 12'h21e;
		ori_digit_bound_7[11:0] = 12'h282;
		ori_digit_bound_8[11:0] = 12'h2e6;
		ori_digit_bound_9[11:0] = 12'h34b;

	end
	7'h64:
	begin
		ori_digit_bound_1[11:0] = 12'h29;
		ori_digit_bound_2[11:0] = 12'h8e;
		ori_digit_bound_3[11:0] = 12'hf4;
		ori_digit_bound_4[11:0] = 12'h159;
		ori_digit_bound_5[11:0] = 12'h1be;
		ori_digit_bound_6[11:0] = 12'h223;
		ori_digit_bound_7[11:0] = 12'h289;
		ori_digit_bound_8[11:0] = 12'h2ee;
		ori_digit_bound_9[11:0] = 12'h353;

	end
	7'h65:
	begin
		ori_digit_bound_1[11:0] = 12'h29;
		ori_digit_bound_2[11:0] = 12'h90;
		ori_digit_bound_3[11:0] = 12'hf6;
		ori_digit_bound_4[11:0] = 12'h15c;
		ori_digit_bound_5[11:0] = 12'h1c2;
		ori_digit_bound_6[11:0] = 12'h229;
		ori_digit_bound_7[11:0] = 12'h28f;
		ori_digit_bound_8[11:0] = 12'h2f5;
		ori_digit_bound_9[11:0] = 12'h35c;

	end
	7'h66:
	begin
		ori_digit_bound_1[11:0] = 12'h2a;
		ori_digit_bound_2[11:0] = 12'h91;
		ori_digit_bound_3[11:0] = 12'hf8;
		ori_digit_bound_4[11:0] = 12'h160;
		ori_digit_bound_5[11:0] = 12'h1c7;
		ori_digit_bound_6[11:0] = 12'h22e;
		ori_digit_bound_7[11:0] = 12'h295;
		ori_digit_bound_8[11:0] = 12'h2fd;
		ori_digit_bound_9[11:0] = 12'h364;

	end
	7'h67:
	begin
		ori_digit_bound_1[11:0] = 12'h2a;
		ori_digit_bound_2[11:0] = 12'h92;
		ori_digit_bound_3[11:0] = 12'hfb;
		ori_digit_bound_4[11:0] = 12'h163;
		ori_digit_bound_5[11:0] = 12'h1cb;
		ori_digit_bound_6[11:0] = 12'h234;
		ori_digit_bound_7[11:0] = 12'h29c;
		ori_digit_bound_8[11:0] = 12'h304;
		ori_digit_bound_9[11:0] = 12'h36c;

	end
	7'h68:
	begin
		ori_digit_bound_1[11:0] = 12'h2b;
		ori_digit_bound_2[11:0] = 12'h94;
		ori_digit_bound_3[11:0] = 12'hfd;
		ori_digit_bound_4[11:0] = 12'h166;
		ori_digit_bound_5[11:0] = 12'h1d0;
		ori_digit_bound_6[11:0] = 12'h239;
		ori_digit_bound_7[11:0] = 12'h2a2;
		ori_digit_bound_8[11:0] = 12'h30b;
		ori_digit_bound_9[11:0] = 12'h375;

	end
	7'h69:
	begin
		ori_digit_bound_1[11:0] = 12'h2b;
		ori_digit_bound_2[11:0] = 12'h95;
		ori_digit_bound_3[11:0] = 12'h100;
		ori_digit_bound_4[11:0] = 12'h16a;
		ori_digit_bound_5[11:0] = 12'h1d4;
		ori_digit_bound_6[11:0] = 12'h23e;
		ori_digit_bound_7[11:0] = 12'h2a9;
		ori_digit_bound_8[11:0] = 12'h313;
		ori_digit_bound_9[11:0] = 12'h37d;

	end
	7'h6a:
	begin
		ori_digit_bound_1[11:0] = 12'h2b;
		ori_digit_bound_2[11:0] = 12'h97;
		ori_digit_bound_3[11:0] = 12'h102;
		ori_digit_bound_4[11:0] = 12'h16d;
		ori_digit_bound_5[11:0] = 12'h1d8;
		ori_digit_bound_6[11:0] = 12'h244;
		ori_digit_bound_7[11:0] = 12'h2af;
		ori_digit_bound_8[11:0] = 12'h31a;
		ori_digit_bound_9[11:0] = 12'h386;

	end
	7'h6b:
	begin
		ori_digit_bound_1[11:0] = 12'h2c;
		ori_digit_bound_2[11:0] = 12'h98;
		ori_digit_bound_3[11:0] = 12'h104;
		ori_digit_bound_4[11:0] = 12'h171;
		ori_digit_bound_5[11:0] = 12'h1dd;
		ori_digit_bound_6[11:0] = 12'h249;
		ori_digit_bound_7[11:0] = 12'h2b5;
		ori_digit_bound_8[11:0] = 12'h322;
		ori_digit_bound_9[11:0] = 12'h38e;

	end
	7'h6c:
	begin
		ori_digit_bound_1[11:0] = 12'h2c;
		ori_digit_bound_2[11:0] = 12'h99;
		ori_digit_bound_3[11:0] = 12'h107;
		ori_digit_bound_4[11:0] = 12'h174;
		ori_digit_bound_5[11:0] = 12'h1e1;
		ori_digit_bound_6[11:0] = 12'h24f;
		ori_digit_bound_7[11:0] = 12'h2bc;
		ori_digit_bound_8[11:0] = 12'h329;
		ori_digit_bound_9[11:0] = 12'h396;

	end
	7'h6d:
	begin
		ori_digit_bound_1[11:0] = 12'h2d;
		ori_digit_bound_2[11:0] = 12'h9b;
		ori_digit_bound_3[11:0] = 12'h109;
		ori_digit_bound_4[11:0] = 12'h177;
		ori_digit_bound_5[11:0] = 12'h1e6;
		ori_digit_bound_6[11:0] = 12'h254;
		ori_digit_bound_7[11:0] = 12'h2c2;
		ori_digit_bound_8[11:0] = 12'h330;
		ori_digit_bound_9[11:0] = 12'h39f;

	end
	7'h6e:
	begin
		ori_digit_bound_1[11:0] = 12'h2d;
		ori_digit_bound_2[11:0] = 12'h9c;
		ori_digit_bound_3[11:0] = 12'h10c;
		ori_digit_bound_4[11:0] = 12'h17b;
		ori_digit_bound_5[11:0] = 12'h1ea;
		ori_digit_bound_6[11:0] = 12'h259;
		ori_digit_bound_7[11:0] = 12'h2c9;
		ori_digit_bound_8[11:0] = 12'h338;
		ori_digit_bound_9[11:0] = 12'h3a7;

	end
	7'h6f:
	begin
		ori_digit_bound_1[11:0] = 12'h2d;
		ori_digit_bound_2[11:0] = 12'h9e;
		ori_digit_bound_3[11:0] = 12'h10e;
		ori_digit_bound_4[11:0] = 12'h17e;
		ori_digit_bound_5[11:0] = 12'h1ee;
		ori_digit_bound_6[11:0] = 12'h25f;
		ori_digit_bound_7[11:0] = 12'h2cf;
		ori_digit_bound_8[11:0] = 12'h33f;
		ori_digit_bound_9[11:0] = 12'h3b0;

	end
	7'h70:
	begin
		ori_digit_bound_1[11:0] = 12'h2e;
		ori_digit_bound_2[11:0] = 12'h9f;
		ori_digit_bound_3[11:0] = 12'h110;
		ori_digit_bound_4[11:0] = 12'h182;
		ori_digit_bound_5[11:0] = 12'h1f3;
		ori_digit_bound_6[11:0] = 12'h264;
		ori_digit_bound_7[11:0] = 12'h2d5;
		ori_digit_bound_8[11:0] = 12'h347;
		ori_digit_bound_9[11:0] = 12'h3b8;

	end
	7'h71:
	begin
		ori_digit_bound_1[11:0] = 12'h2e;
		ori_digit_bound_2[11:0] = 12'ha0;
		ori_digit_bound_3[11:0] = 12'h113;
		ori_digit_bound_4[11:0] = 12'h185;
		ori_digit_bound_5[11:0] = 12'h1f7;
		ori_digit_bound_6[11:0] = 12'h26a;
		ori_digit_bound_7[11:0] = 12'h2dc;
		ori_digit_bound_8[11:0] = 12'h34e;
		ori_digit_bound_9[11:0] = 12'h3c0;

	end
	7'h72:
	begin
		ori_digit_bound_1[11:0] = 12'h2f;
		ori_digit_bound_2[11:0] = 12'ha2;
		ori_digit_bound_3[11:0] = 12'h115;
		ori_digit_bound_4[11:0] = 12'h188;
		ori_digit_bound_5[11:0] = 12'h1fc;
		ori_digit_bound_6[11:0] = 12'h26f;
		ori_digit_bound_7[11:0] = 12'h2e2;
		ori_digit_bound_8[11:0] = 12'h355;
		ori_digit_bound_9[11:0] = 12'h3c9;

	end
	7'h73:
	begin
		ori_digit_bound_1[11:0] = 12'h2f;
		ori_digit_bound_2[11:0] = 12'ha3;
		ori_digit_bound_3[11:0] = 12'h118;
		ori_digit_bound_4[11:0] = 12'h18c;
		ori_digit_bound_5[11:0] = 12'h200;
		ori_digit_bound_6[11:0] = 12'h274;
		ori_digit_bound_7[11:0] = 12'h2e9;
		ori_digit_bound_8[11:0] = 12'h35d;
		ori_digit_bound_9[11:0] = 12'h3d1;

	end
	7'h74:
	begin
		ori_digit_bound_1[11:0] = 12'h2f;
		ori_digit_bound_2[11:0] = 12'ha5;
		ori_digit_bound_3[11:0] = 12'h11a;
		ori_digit_bound_4[11:0] = 12'h18f;
		ori_digit_bound_5[11:0] = 12'h204;
		ori_digit_bound_6[11:0] = 12'h27a;
		ori_digit_bound_7[11:0] = 12'h2ef;
		ori_digit_bound_8[11:0] = 12'h364;
		ori_digit_bound_9[11:0] = 12'h3da;

	end
	7'h75:
	begin
		ori_digit_bound_1[11:0] = 12'h30;
		ori_digit_bound_2[11:0] = 12'ha6;
		ori_digit_bound_3[11:0] = 12'h11c;
		ori_digit_bound_4[11:0] = 12'h193;
		ori_digit_bound_5[11:0] = 12'h209;
		ori_digit_bound_6[11:0] = 12'h27f;
		ori_digit_bound_7[11:0] = 12'h2f5;
		ori_digit_bound_8[11:0] = 12'h36c;
		ori_digit_bound_9[11:0] = 12'h3e2;

	end
	7'h76:
	begin
		ori_digit_bound_1[11:0] = 12'h30;
		ori_digit_bound_2[11:0] = 12'ha7;
		ori_digit_bound_3[11:0] = 12'h11f;
		ori_digit_bound_4[11:0] = 12'h196;
		ori_digit_bound_5[11:0] = 12'h20d;
		ori_digit_bound_6[11:0] = 12'h285;
		ori_digit_bound_7[11:0] = 12'h2fc;
		ori_digit_bound_8[11:0] = 12'h373;
		ori_digit_bound_9[11:0] = 12'h3ea;

	end
	7'h77:
	begin
		ori_digit_bound_1[11:0] = 12'h31;
		ori_digit_bound_2[11:0] = 12'ha9;
		ori_digit_bound_3[11:0] = 12'h121;
		ori_digit_bound_4[11:0] = 12'h199;
		ori_digit_bound_5[11:0] = 12'h212;
		ori_digit_bound_6[11:0] = 12'h28a;
		ori_digit_bound_7[11:0] = 12'h302;
		ori_digit_bound_8[11:0] = 12'h37a;
		ori_digit_bound_9[11:0] = 12'h3f3;

	end
	7'h78:
	begin
		ori_digit_bound_1[11:0] = 12'h31;
		ori_digit_bound_2[11:0] = 12'haa;
		ori_digit_bound_3[11:0] = 12'h124;
		ori_digit_bound_4[11:0] = 12'h19d;
		ori_digit_bound_5[11:0] = 12'h216;
		ori_digit_bound_6[11:0] = 12'h28f;
		ori_digit_bound_7[11:0] = 12'h309;
		ori_digit_bound_8[11:0] = 12'h382;
		ori_digit_bound_9[11:0] = 12'h3fb;

	end
	7'h79:
	begin
		ori_digit_bound_1[11:0] = 12'h31;
		ori_digit_bound_2[11:0] = 12'hac;
		ori_digit_bound_3[11:0] = 12'h126;
		ori_digit_bound_4[11:0] = 12'h1a0;
		ori_digit_bound_5[11:0] = 12'h21a;
		ori_digit_bound_6[11:0] = 12'h295;
		ori_digit_bound_7[11:0] = 12'h30f;
		ori_digit_bound_8[11:0] = 12'h389;
		ori_digit_bound_9[11:0] = 12'h404;

	end
	7'h7a:
	begin
		ori_digit_bound_1[11:0] = 12'h32;
		ori_digit_bound_2[11:0] = 12'had;
		ori_digit_bound_3[11:0] = 12'h128;
		ori_digit_bound_4[11:0] = 12'h1a4;
		ori_digit_bound_5[11:0] = 12'h21f;
		ori_digit_bound_6[11:0] = 12'h29a;
		ori_digit_bound_7[11:0] = 12'h315;
		ori_digit_bound_8[11:0] = 12'h391;
		ori_digit_bound_9[11:0] = 12'h40c;

	end
	7'h7b:
	begin
		ori_digit_bound_1[11:0] = 12'h32;
		ori_digit_bound_2[11:0] = 12'hae;
		ori_digit_bound_3[11:0] = 12'h12b;
		ori_digit_bound_4[11:0] = 12'h1a7;
		ori_digit_bound_5[11:0] = 12'h223;
		ori_digit_bound_6[11:0] = 12'h2a0;
		ori_digit_bound_7[11:0] = 12'h31c;
		ori_digit_bound_8[11:0] = 12'h398;
		ori_digit_bound_9[11:0] = 12'h414;

	end
	7'h7c:
	begin
		ori_digit_bound_1[11:0] = 12'h33;
		ori_digit_bound_2[11:0] = 12'hb0;
		ori_digit_bound_3[11:0] = 12'h12d;
		ori_digit_bound_4[11:0] = 12'h1aa;
		ori_digit_bound_5[11:0] = 12'h228;
		ori_digit_bound_6[11:0] = 12'h2a5;
		ori_digit_bound_7[11:0] = 12'h322;
		ori_digit_bound_8[11:0] = 12'h39f;
		ori_digit_bound_9[11:0] = 12'h41d;

	end
	7'h7d:
	begin
		ori_digit_bound_1[11:0] = 12'h33;
		ori_digit_bound_2[11:0] = 12'hb1;
		ori_digit_bound_3[11:0] = 12'h130;
		ori_digit_bound_4[11:0] = 12'h1ae;
		ori_digit_bound_5[11:0] = 12'h22c;
		ori_digit_bound_6[11:0] = 12'h2aa;
		ori_digit_bound_7[11:0] = 12'h329;
		ori_digit_bound_8[11:0] = 12'h3a7;
		ori_digit_bound_9[11:0] = 12'h425;

	end
	7'h7e:
	begin
		ori_digit_bound_1[11:0] = 12'h33;
		ori_digit_bound_2[11:0] = 12'hb3;
		ori_digit_bound_3[11:0] = 12'h132;
		ori_digit_bound_4[11:0] = 12'h1b1;
		ori_digit_bound_5[11:0] = 12'h230;
		ori_digit_bound_6[11:0] = 12'h2b0;
		ori_digit_bound_7[11:0] = 12'h32f;
		ori_digit_bound_8[11:0] = 12'h3ae;
		ori_digit_bound_9[11:0] = 12'h42e;

	end
	7'h7f:
	begin
		ori_digit_bound_1[11:0] = 12'h34;
		ori_digit_bound_2[11:0] = 12'hb4;
		ori_digit_bound_3[11:0] = 12'h134;
		ori_digit_bound_4[11:0] = 12'h1b5;
		ori_digit_bound_5[11:0] = 12'h235;
		ori_digit_bound_6[11:0] = 12'h2b5;
		ori_digit_bound_7[11:0] = 12'h335;
		ori_digit_bound_8[11:0] = 12'h3b6;
		ori_digit_bound_9[11:0] = 12'h436;

	end
	7'h00:
	begin
		ori_digit_bound_1[11:0] = 12'h34;
		ori_digit_bound_2[11:0] = 12'hb5;
		ori_digit_bound_3[11:0] = 12'h137;
		ori_digit_bound_4[11:0] = 12'h1b8;
		ori_digit_bound_5[11:0] = 12'h239;
		ori_digit_bound_6[11:0] = 12'h2bb;
		ori_digit_bound_7[11:0] = 12'h33c;
		ori_digit_bound_8[11:0] = 12'h3bd;
		ori_digit_bound_9[11:0] = 12'h43e;
	end
  default:
  begin
		ori_digit_bound_1[11:0] = {12{1'bx}};
		ori_digit_bound_2[11:0] = {12{1'bx}};
		ori_digit_bound_3[11:0] = {12{1'bx}};
		ori_digit_bound_4[11:0] = {12{1'bx}};
		ori_digit_bound_5[11:0] = {12{1'bx}};
		ori_digit_bound_6[11:0] = {12{1'bx}};
		ori_digit_bound_7[11:0] = {12{1'bx}};
		ori_digit_bound_8[11:0] = {12{1'bx}};
		ori_digit_bound_9[11:0] = {12{1'bx}};
	end
endcase

end

always @( bound_sel[6:0])
begin
case(bound_sel[6:0])
	7'h40:
	begin
		sqrt_digit_boundp2_1[11:0] = 12'h21;
		sqrt_digit_boundp2_2[11:0] = 12'h62;
		sqrt_digit_boundp2_3[11:0] = 12'ha4;
		sqrt_digit_boundp2_4[11:0] = 12'he7;
		sqrt_digit_boundp2_5[11:0] = 12'h12b;
		sqrt_digit_boundp2_6[11:0] = 12'h170;
		sqrt_digit_boundp2_7[11:0] = 12'h1b6;
		sqrt_digit_boundp2_8[11:0] = 12'h1fd;
		sqrt_digit_boundp2_9[11:0] = 12'h245;
	end
	7'h50:
	begin
		sqrt_digit_boundp2_1[11:0] = 12'h29;
		sqrt_digit_boundp2_2[11:0] = 12'h7a;
		sqrt_digit_boundp2_3[11:0] = 12'hcc;
		sqrt_digit_boundp2_4[11:0] = 12'h11f;
		sqrt_digit_boundp2_5[11:0] = 12'h173;
		sqrt_digit_boundp2_6[11:0] = 12'h1c8;
		sqrt_digit_boundp2_7[11:0] = 12'h21e;
		sqrt_digit_boundp2_8[11:0] = 12'h275;
		sqrt_digit_boundp2_9[11:0] = 12'h2cd;
	end
	7'h60:
	begin
		sqrt_digit_boundp2_1[11:0] = 12'h31;
		sqrt_digit_boundp2_2[11:0] = 12'h92;
		sqrt_digit_boundp2_3[11:0] = 12'hf4;
		sqrt_digit_boundp2_4[11:0] = 12'h157;
		sqrt_digit_boundp2_5[11:0] = 12'h1bb;
		sqrt_digit_boundp2_6[11:0] = 12'h220;
		sqrt_digit_boundp2_7[11:0] = 12'h286;
		sqrt_digit_boundp2_8[11:0] = 12'h2ed;
		sqrt_digit_boundp2_9[11:0] = 12'h355;
	end
	7'h70:
	begin
		sqrt_digit_boundp2_1[11:0] = 12'h39;
		sqrt_digit_boundp2_2[11:0] = 12'haa;
		sqrt_digit_boundp2_3[11:0] = 12'h11c;
		sqrt_digit_boundp2_4[11:0] = 12'h18f;
		sqrt_digit_boundp2_5[11:0] = 12'h203;
		sqrt_digit_boundp2_6[11:0] = 12'h278;
		sqrt_digit_boundp2_7[11:0] = 12'h2ee;
		sqrt_digit_boundp2_8[11:0] = 12'h365;
		sqrt_digit_boundp2_9[11:0] = 12'h3dd;
	end
	7'h00:
	begin
		sqrt_digit_boundp2_1[11:0] = 12'h41;
		sqrt_digit_boundp2_2[11:0] = 12'hc2;
		sqrt_digit_boundp2_3[11:0] = 12'h144;
		sqrt_digit_boundp2_4[11:0] = 12'h1c7;
		sqrt_digit_boundp2_5[11:0] = 12'h24b;
		sqrt_digit_boundp2_6[11:0] = 12'h2d0;
		sqrt_digit_boundp2_7[11:0] = 12'h356;
		sqrt_digit_boundp2_8[11:0] = 12'h3dd;
		sqrt_digit_boundp2_9[11:0] = 12'h465;
	end
  default:
  begin
		sqrt_digit_boundp2_1[11:0] = {12{1'bx}};
		sqrt_digit_boundp2_2[11:0] = {12{1'bx}};
		sqrt_digit_boundp2_3[11:0] = {12{1'bx}};
		sqrt_digit_boundp2_4[11:0] = {12{1'bx}};
		sqrt_digit_boundp2_5[11:0] = {12{1'bx}};
		sqrt_digit_boundp2_6[11:0] = {12{1'bx}};
		sqrt_digit_boundp2_7[11:0] = {12{1'bx}};
		sqrt_digit_boundp2_8[11:0] = {12{1'bx}};
		sqrt_digit_boundp2_9[11:0] = {12{1'bx}};
	end


endcase

end

always @( bound_sel[6:0])
begin
case(bound_sel[6:0])
  7'h40:
	begin
		sqrt_digit_boundm2_1[11:0] = 12'h20;
		sqrt_digit_boundm2_2[11:0] = 12'h5f;
		sqrt_digit_boundm2_3[11:0] = 12'h9d;
		sqrt_digit_boundm2_4[11:0] = 12'hda;
		sqrt_digit_boundm2_5[11:0] = 12'h116;
		sqrt_digit_boundm2_6[11:0] = 12'h151;
		sqrt_digit_boundm2_7[11:0] = 12'h18b;
		sqrt_digit_boundm2_8[11:0] = 12'h1c4;
		sqrt_digit_boundm2_9[11:0] = 12'h1fc;
	end
	7'h50:
	begin
		sqrt_digit_boundm2_1[11:0] = 12'h28;
		sqrt_digit_boundm2_2[11:0] = 12'h77;
		sqrt_digit_boundm2_3[11:0] = 12'hc5;
		sqrt_digit_boundm2_4[11:0] = 12'h112;
		sqrt_digit_boundm2_5[11:0] = 12'h15e;
		sqrt_digit_boundm2_6[11:0] = 12'h1a9;
		sqrt_digit_boundm2_7[11:0] = 12'h1f3;
		sqrt_digit_boundm2_8[11:0] = 12'h23c;
		sqrt_digit_boundm2_9[11:0] = 12'h284;
	end
	7'h60:
	begin
		sqrt_digit_boundm2_1[11:0] = 12'h30;
		sqrt_digit_boundm2_2[11:0] = 12'h8f;
		sqrt_digit_boundm2_3[11:0] = 12'hed;
		sqrt_digit_boundm2_4[11:0] = 12'h14a;
		sqrt_digit_boundm2_5[11:0] = 12'h1a6;
		sqrt_digit_boundm2_6[11:0] = 12'h201;
		sqrt_digit_boundm2_7[11:0] = 12'h25b;
		sqrt_digit_boundm2_8[11:0] = 12'h2b4;
		sqrt_digit_boundm2_9[11:0] = 12'h30c;
	end
	7'h70:
	begin
		sqrt_digit_boundm2_1[11:0] = 12'h38;
		sqrt_digit_boundm2_2[11:0] = 12'ha7;
		sqrt_digit_boundm2_3[11:0] = 12'h115;
		sqrt_digit_boundm2_4[11:0] = 12'h182;
		sqrt_digit_boundm2_5[11:0] = 12'h1ee;
		sqrt_digit_boundm2_6[11:0] = 12'h259;
		sqrt_digit_boundm2_7[11:0] = 12'h2c3;
		sqrt_digit_boundm2_8[11:0] = 12'h32c;
		sqrt_digit_boundm2_9[11:0] = 12'h394;
	end
	7'h00:
	begin
		sqrt_digit_boundm2_1[11:0] = 12'h40;
		sqrt_digit_boundm2_2[11:0] = 12'hbf;
		sqrt_digit_boundm2_3[11:0] = 12'h13d;
		sqrt_digit_boundm2_4[11:0] = 12'h1ba;
		sqrt_digit_boundm2_5[11:0] = 12'h236;
		sqrt_digit_boundm2_6[11:0] = 12'h2b1;
		sqrt_digit_boundm2_7[11:0] = 12'h32b;
		sqrt_digit_boundm2_8[11:0] = 12'h3a4;
		sqrt_digit_boundm2_9[11:0] = 12'h41c;
	end

  default:
  begin
		sqrt_digit_boundm2_1[11:0] = {12{1'bx}};
		sqrt_digit_boundm2_2[11:0] = {12{1'bx}};
		sqrt_digit_boundm2_3[11:0] = {12{1'bx}};
		sqrt_digit_boundm2_4[11:0] = {12{1'bx}};
		sqrt_digit_boundm2_5[11:0] = {12{1'bx}};
		sqrt_digit_boundm2_6[11:0] = {12{1'bx}};
		sqrt_digit_boundm2_7[11:0] = {12{1'bx}};
		sqrt_digit_boundm2_8[11:0] = {12{1'bx}};
		sqrt_digit_boundm2_9[11:0] = {12{1'bx}};
	end
endcase

end
assign sqrt_digit_bound2_1[11:0] = sqrt_secd_round_sign ? sqrt_digit_boundm2_1[11:0] : sqrt_digit_boundp2_1[11:0];
assign sqrt_digit_bound2_2[11:0] = sqrt_secd_round_sign ? sqrt_digit_boundm2_2[11:0] : sqrt_digit_boundp2_2[11:0];
assign sqrt_digit_bound2_3[11:0] = sqrt_secd_round_sign ? sqrt_digit_boundm2_3[11:0] : sqrt_digit_boundp2_3[11:0];
assign sqrt_digit_bound2_4[11:0] = sqrt_secd_round_sign ? sqrt_digit_boundm2_4[11:0] : sqrt_digit_boundp2_4[11:0];
assign sqrt_digit_bound2_5[11:0] = sqrt_secd_round_sign ? sqrt_digit_boundm2_5[11:0] : sqrt_digit_boundp2_5[11:0];
assign sqrt_digit_bound2_6[11:0] = sqrt_secd_round_sign ? sqrt_digit_boundm2_6[11:0] : sqrt_digit_boundp2_6[11:0];
assign sqrt_digit_bound2_7[11:0] = sqrt_secd_round_sign ? sqrt_digit_boundm2_7[11:0] : sqrt_digit_boundp2_7[11:0];
assign sqrt_digit_bound2_8[11:0] = sqrt_secd_round_sign ? sqrt_digit_boundm2_8[11:0] : sqrt_digit_boundp2_8[11:0];
assign sqrt_digit_bound2_9[11:0] = sqrt_secd_round_sign ? sqrt_digit_boundm2_9[11:0] : sqrt_digit_boundp2_9[11:0];
                                                

assign digit_bound_1[11:0] = sqrt_first_round ? 12'h2 : 
                                                sqrt_secd_round ? sqrt_digit_bound2_1[11:0] 
                                                                 : ori_digit_bound_1[11:0];
assign digit_bound_2[11:0] = sqrt_first_round ? 12'h10 : 
                                                sqrt_secd_round ? sqrt_digit_bound2_2[11:0] 
                                                                : ori_digit_bound_2[11:0];
assign digit_bound_3[11:0] = sqrt_first_round ? 12'h35 : 
                                                sqrt_secd_round ? sqrt_digit_bound2_3[11:0] 
                                                                : ori_digit_bound_3[11:0];
assign digit_bound_4[11:0] = sqrt_first_round ? 12'h5f : 
                                                sqrt_secd_round ? sqrt_digit_bound2_4[11:0] 
                                                                : ori_digit_bound_4[11:0];
assign digit_bound_5[11:0] = sqrt_first_round ? 12'ha0 : 
                                                sqrt_secd_round ? sqrt_digit_bound2_5[11:0] 
                                                                : ori_digit_bound_5[11:0];
assign digit_bound_6[11:0] = sqrt_first_round ? 12'hf0 : 
                                                sqrt_secd_round ? sqrt_digit_bound2_6[11:0] 
                                                                : ori_digit_bound_6[11:0];
assign digit_bound_7[11:0] = sqrt_first_round ? 12'h14f : 
                                                sqrt_secd_round ? sqrt_digit_bound2_7[11:0] 
                                                                : ori_digit_bound_7[11:0];
assign digit_bound_8[11:0] = sqrt_first_round ? 12'h1c2 : 
                                                sqrt_secd_round ? sqrt_digit_bound2_8[11:0] 
                                                                : ori_digit_bound_8[11:0];
assign digit_bound_9[11:0] = sqrt_first_round ? 12'h23a : 
                                                sqrt_secd_round ? sqrt_digit_bound2_9[11:0] 
                                                                : ori_digit_bound_9[11:0];

endmodule