data/full_repos/permissive/418752214/C910_RTL_FACTORY/gen_rtl/ifu/rtl/ct_ifu_precode.v
data/verilator_xmls/b6b7faac-14f5-48ed-ac43-61d91c259027.xml
module ct_ifu_precode(
  inst_data,
  pre_code
);


input   [127:0]  inst_data;  
output  [31 :0]  pre_code;   




wire             h1_ab_br;   
wire             h1_br;      
wire             h1_bry0;    
wire             h1_bry1;    
wire             h1_bry1_32; 
wire    [15 :0]  h1_data;    
wire    [3  :0]  h1_pre_code; 
wire             h2_ab_br;   
wire             h2_br;      
wire             h2_bry0;    
wire             h2_bry0_32; 
wire             h2_bry1;    
wire             h2_bry1_16; 
wire             h2_bry1_32; 
wire    [15 :0]  h2_data;    
wire    [3  :0]  h2_pre_code; 
wire             h3_ab_br;   
wire             h3_br;      
wire             h3_bry0;    
wire             h3_bry0_16; 
wire             h3_bry0_32; 
wire             h3_bry1;    
wire             h3_bry1_16; 
wire             h3_bry1_32; 
wire    [15 :0]  h3_data;    
wire    [3  :0]  h3_pre_code; 
wire             h4_ab_br;   
wire             h4_br;      
wire             h4_bry0;    
wire             h4_bry0_16; 
wire             h4_bry0_32; 
wire             h4_bry1;    
wire             h4_bry1_16; 
wire             h4_bry1_32; 
wire    [15 :0]  h4_data;    
wire    [3  :0]  h4_pre_code; 
wire             h5_ab_br;   
wire             h5_br;      
wire             h5_bry0;    
wire             h5_bry0_16; 
wire             h5_bry0_32; 
wire             h5_bry1;    
wire             h5_bry1_16; 
wire             h5_bry1_32; 
wire    [15 :0]  h5_data;    
wire    [3  :0]  h5_pre_code; 
wire             h6_ab_br;   
wire             h6_br;      
wire             h6_bry0;    
wire             h6_bry0_16; 
wire             h6_bry0_32; 
wire             h6_bry1;    
wire             h6_bry1_16; 
wire             h6_bry1_32; 
wire    [15 :0]  h6_data;    
wire    [3  :0]  h6_pre_code; 
wire             h7_ab_br;   
wire             h7_br;      
wire             h7_bry0;    
wire             h7_bry0_16; 
wire             h7_bry0_32; 
wire             h7_bry1;    
wire             h7_bry1_16; 
wire             h7_bry1_32; 
wire    [15 :0]  h7_data;    
wire    [3  :0]  h7_pre_code; 
wire             h8_ab_br;   
wire             h8_br;      
wire             h8_bry0;    
wire             h8_bry0_16; 
wire             h8_bry0_32; 
wire             h8_bry1;    
wire             h8_bry1_16; 
wire             h8_bry1_32; 
wire    [15 :0]  h8_data;    
wire    [3  :0]  h8_pre_code; 
wire    [127:0]  inst_data;  
wire    [31 :0]  pre_code;   














assign h1_data[15:0] = inst_data[127:112];
assign h2_data[15:0] = inst_data[111: 96];
assign h3_data[15:0] = inst_data[ 95: 80];
assign h4_data[15:0] = inst_data[ 79: 64];
assign h5_data[15:0] = inst_data[ 63: 48];
assign h6_data[15:0] = inst_data[ 47: 32];
assign h7_data[15:0] = inst_data[ 31: 16];
assign h8_data[15:0] = inst_data[ 15:  0];


assign h1_br = (h1_data[6:0] == 7'b1101111) ||
               ({h1_data[14:12],h1_data[6:0]} == 10'b000_1100011) ||
               ({h1_data[14:12],h1_data[6:0]} == 10'b001_1100011) ||
               ({h1_data[14:12],h1_data[6:0]} == 10'b100_1100011) ||
               ({h1_data[14:12],h1_data[6:0]} == 10'b101_1100011) ||
               ({h1_data[14:12],h1_data[6:0]} == 10'b110_1100011) ||
               ({h1_data[14:12],h1_data[6:0]} == 10'b111_1100011) ||
               ({h1_data[15:14],h1_data[1:0]} == 4'b1101) ||
               ({h1_data[15:13],h1_data[1:0]} == 5'b10101);

assign h2_br = (h2_data[6:0] == 7'b1101111) ||
               ({h2_data[14:12],h2_data[6:0]} == 10'b000_1100011) ||
               ({h2_data[14:12],h2_data[6:0]} == 10'b001_1100011) ||
               ({h2_data[14:12],h2_data[6:0]} == 10'b100_1100011) ||
               ({h2_data[14:12],h2_data[6:0]} == 10'b101_1100011) ||
               ({h2_data[14:12],h2_data[6:0]} == 10'b110_1100011) ||
               ({h2_data[14:12],h2_data[6:0]} == 10'b111_1100011) ||
               ({h2_data[15:14],h2_data[1:0]} == 4'b1101) ||
               ({h2_data[15:13],h2_data[1:0]} == 5'b10101);

assign h3_br = (h3_data[6:0] == 7'b1101111) ||
               ({h3_data[14:12],h3_data[6:0]} == 10'b000_1100011) ||
               ({h3_data[14:12],h3_data[6:0]} == 10'b001_1100011) ||
               ({h3_data[14:12],h3_data[6:0]} == 10'b100_1100011) ||
               ({h3_data[14:12],h3_data[6:0]} == 10'b101_1100011) ||
               ({h3_data[14:12],h3_data[6:0]} == 10'b110_1100011) ||
               ({h3_data[14:12],h3_data[6:0]} == 10'b111_1100011) ||
               ({h3_data[15:14],h3_data[1:0]} == 4'b1101) ||
               ({h3_data[15:13],h3_data[1:0]} == 5'b10101);

assign h4_br = (h4_data[6:0] == 7'b1101111) ||
               ({h4_data[14:12],h4_data[6:0]} == 10'b000_1100011) ||
               ({h4_data[14:12],h4_data[6:0]} == 10'b001_1100011) ||
               ({h4_data[14:12],h4_data[6:0]} == 10'b100_1100011) ||
               ({h4_data[14:12],h4_data[6:0]} == 10'b101_1100011) ||
               ({h4_data[14:12],h4_data[6:0]} == 10'b110_1100011) ||
               ({h4_data[14:12],h4_data[6:0]} == 10'b111_1100011) ||
               ({h4_data[15:14],h4_data[1:0]} == 4'b1101) ||
               ({h4_data[15:13],h4_data[1:0]} == 5'b10101);

assign h5_br = (h5_data[6:0] == 7'b1101111) ||
               ({h5_data[14:12],h5_data[6:0]} == 10'b000_1100011) ||
               ({h5_data[14:12],h5_data[6:0]} == 10'b001_1100011) ||
               ({h5_data[14:12],h5_data[6:0]} == 10'b100_1100011) ||
               ({h5_data[14:12],h5_data[6:0]} == 10'b101_1100011) ||
               ({h5_data[14:12],h5_data[6:0]} == 10'b110_1100011) ||
               ({h5_data[14:12],h5_data[6:0]} == 10'b111_1100011) ||
               ({h5_data[15:14],h5_data[1:0]} == 4'b1101) ||
               ({h5_data[15:13],h5_data[1:0]} == 5'b10101);

assign h6_br = (h6_data[6:0] == 7'b1101111) ||
               ({h6_data[14:12],h6_data[6:0]} == 10'b000_1100011) ||
               ({h6_data[14:12],h6_data[6:0]} == 10'b001_1100011) ||
               ({h6_data[14:12],h6_data[6:0]} == 10'b100_1100011) ||
               ({h6_data[14:12],h6_data[6:0]} == 10'b101_1100011) ||
               ({h6_data[14:12],h6_data[6:0]} == 10'b110_1100011) ||
               ({h6_data[14:12],h6_data[6:0]} == 10'b111_1100011) ||
               ({h6_data[15:14],h6_data[1:0]} == 4'b1101) ||
               ({h6_data[15:13],h6_data[1:0]} == 5'b10101);

assign h7_br = (h7_data[6:0] == 7'b1101111) ||
               ({h7_data[14:12],h7_data[6:0]} == 10'b000_1100011) ||
               ({h7_data[14:12],h7_data[6:0]} == 10'b001_1100011) ||
               ({h7_data[14:12],h7_data[6:0]} == 10'b100_1100011) ||
               ({h7_data[14:12],h7_data[6:0]} == 10'b101_1100011) ||
               ({h7_data[14:12],h7_data[6:0]} == 10'b110_1100011) ||
               ({h7_data[14:12],h7_data[6:0]} == 10'b111_1100011) ||
               ({h7_data[15:14],h7_data[1:0]} == 4'b1101) ||
               ({h7_data[15:13],h7_data[1:0]} == 5'b10101);

assign h8_br = (h8_data[6:0] == 7'b1101111) ||
               ({h8_data[14:12],h8_data[6:0]} == 10'b000_1100011) ||
               ({h8_data[14:12],h8_data[6:0]} == 10'b001_1100011) ||
               ({h8_data[14:12],h8_data[6:0]} == 10'b100_1100011) ||
               ({h8_data[14:12],h8_data[6:0]} == 10'b101_1100011) ||
               ({h8_data[14:12],h8_data[6:0]} == 10'b110_1100011) ||
               ({h8_data[14:12],h8_data[6:0]} == 10'b111_1100011) ||
               ({h8_data[15:14],h8_data[1:0]} == 4'b1101) ||
               ({h8_data[15:13],h8_data[1:0]} == 5'b10101);


assign h1_ab_br = (h1_data[6:0] == 7'b1101111) ||
                  ({h1_data[15:13],h1_data[1:0]} == 5'b10101);

assign h2_ab_br = (h2_data[6:0] == 7'b1101111) ||
                  ({h2_data[15:13],h2_data[1:0]} == 5'b10101);

assign h3_ab_br = (h3_data[6:0] == 7'b1101111) ||
                  ({h3_data[15:13],h3_data[1:0]} == 5'b10101);

assign h4_ab_br = (h4_data[6:0] == 7'b1101111) ||
                  ({h4_data[15:13],h4_data[1:0]} == 5'b10101);

assign h5_ab_br = (h5_data[6:0] == 7'b1101111) ||
                  ({h5_data[15:13],h5_data[1:0]} == 5'b10101);

assign h6_ab_br = (h6_data[6:0] == 7'b1101111) ||
                  ({h6_data[15:13],h6_data[1:0]} == 5'b10101);

assign h7_ab_br = (h7_data[6:0] == 7'b1101111) ||
                  ({h7_data[15:13],h7_data[1:0]} == 5'b10101);

assign h8_ab_br = (h8_data[6:0] == 7'b1101111) ||
                  ({h8_data[15:13],h8_data[1:0]} == 5'b10101);


assign h1_bry1_32 = (h1_data[1:0] == 2'b11);
assign h1_bry1    = 1'b1;

assign h2_bry1_32 = (h2_data[1:0] == 2'b11) && !h1_bry1_32;
assign h2_bry1_16 = !(h2_data[1:0] == 2'b11) && !h1_bry1_32;
assign h2_bry1    = h2_bry1_32 || h2_bry1_16;

assign h3_bry1_32 = (h3_data[1:0] == 2'b11) && !h2_bry1_32;
assign h3_bry1_16 = !(h3_data[1:0] == 2'b11) && !h2_bry1_32;
assign h3_bry1    = h3_bry1_32 || h3_bry1_16;

assign h4_bry1_32 = (h4_data[1:0] == 2'b11) && !h3_bry1_32;
assign h4_bry1_16 = !(h4_data[1:0] == 2'b11) && !h3_bry1_32;
assign h4_bry1    = h4_bry1_32 || h4_bry1_16;

assign h5_bry1_32 = (h5_data[1:0] == 2'b11) && !h4_bry1_32;
assign h5_bry1_16 = !(h5_data[1:0] == 2'b11) && !h4_bry1_32;
assign h5_bry1    = h5_bry1_32 || h5_bry1_16;

assign h6_bry1_32 = (h6_data[1:0] == 2'b11) && !h5_bry1_32;
assign h6_bry1_16 = !(h6_data[1:0] == 2'b11) && !h5_bry1_32;
assign h6_bry1    = h6_bry1_32 || h6_bry1_16;

assign h7_bry1_32 = (h7_data[1:0] == 2'b11) && !h6_bry1_32;
assign h7_bry1_16 = !(h7_data[1:0] == 2'b11) && !h6_bry1_32;
assign h7_bry1    = h7_bry1_32 || h7_bry1_16;

assign h8_bry1_32 = (h8_data[1:0] == 2'b11) && !h7_bry1_32;
assign h8_bry1_16 = !(h8_data[1:0] == 2'b11) && !h7_bry1_32;
assign h8_bry1    = h8_bry1_32 || h8_bry1_16;


assign h1_bry0    = 1'b0;

assign h2_bry0_32 = (h2_data[1:0] == 2'b11);
assign h2_bry0    = 1'b1;

assign h3_bry0_32 = (h3_data[1:0] == 2'b11) && !h2_bry0_32;
assign h3_bry0_16 = !(h3_data[1:0] == 2'b11) && !h2_bry0_32;
assign h3_bry0    = h3_bry0_32 || h3_bry0_16;

assign h4_bry0_32 = (h4_data[1:0] == 2'b11) && !h3_bry0_32;
assign h4_bry0_16 = !(h4_data[1:0] == 2'b11) && !h3_bry0_32;
assign h4_bry0    = h4_bry0_32 || h4_bry0_16;

assign h5_bry0_32 = (h5_data[1:0] == 2'b11) && !h4_bry0_32;
assign h5_bry0_16 = !(h5_data[1:0] == 2'b11) && !h4_bry0_32;
assign h5_bry0    = h5_bry0_32 || h5_bry0_16;

assign h6_bry0_32 = (h6_data[1:0] == 2'b11) && !h5_bry0_32;
assign h6_bry0_16 = !(h6_data[1:0] == 2'b11) && !h5_bry0_32;
assign h6_bry0    = h6_bry0_32 || h6_bry0_16;

assign h7_bry0_32 = (h7_data[1:0] == 2'b11) && !h6_bry0_32;
assign h7_bry0_16 = !(h7_data[1:0] == 2'b11) && !h6_bry0_32;
assign h7_bry0    = h7_bry0_32 || h7_bry0_16;

assign h8_bry0_32 = (h8_data[1:0] == 2'b11) && !h7_bry0_32;
assign h8_bry0_16 = !(h8_data[1:0] == 2'b11) && !h7_bry0_32;
assign h8_bry0    = h8_bry0_32 || h8_bry0_16;


assign h1_pre_code[3:0] = {h1_ab_br,h1_br, h1_bry1, h1_bry0};
assign h2_pre_code[3:0] = {h2_ab_br,h2_br, h2_bry1, h2_bry0};
assign h3_pre_code[3:0] = {h3_ab_br,h3_br, h3_bry1, h3_bry0};
assign h4_pre_code[3:0] = {h4_ab_br,h4_br, h4_bry1, h4_bry0};
assign h5_pre_code[3:0] = {h5_ab_br,h5_br, h5_bry1, h5_bry0};
assign h6_pre_code[3:0] = {h6_ab_br,h6_br, h6_bry1, h6_bry0};
assign h7_pre_code[3:0] = {h7_ab_br,h7_br, h7_bry1, h7_bry0};
assign h8_pre_code[3:0] = {h8_ab_br,h8_br, h8_bry1, h8_bry0};

assign pre_code[31:0] = {h1_pre_code[3:0],
                         h2_pre_code[3:0],
                         h3_pre_code[3:0],
                         h4_pre_code[3:0],
                         h5_pre_code[3:0],
                         h6_pre_code[3:0],
                         h7_pre_code[3:0],
                         h8_pre_code[3:0]};


endmodule
module ct_ifu_precode(
  inst_data,
  pre_code
);



input   [127:0]  inst_data;  
output  [31 :0]  pre_code;   




wire             h1_ab_br;   
wire             h1_br;      
wire             h1_bry0;    
wire             h1_bry1;    
wire             h1_bry1_32; 
wire    [15 :0]  h1_data;    
wire    [3  :0]  h1_pre_code; 
wire             h2_ab_br;   
wire             h2_br;      
wire             h2_bry0;    
wire             h2_bry0_32; 
wire             h2_bry1;    
wire             h2_bry1_16; 
wire             h2_bry1_32; 
wire    [15 :0]  h2_data;    
wire    [3  :0]  h2_pre_code; 
wire             h3_ab_br;   
wire             h3_br;      
wire             h3_bry0;    
wire             h3_bry0_16; 
wire             h3_bry0_32; 
wire             h3_bry1;    
wire             h3_bry1_16; 
wire             h3_bry1_32; 
wire    [15 :0]  h3_data;    
wire    [3  :0]  h3_pre_code; 
wire             h4_ab_br;   
wire             h4_br;      
wire             h4_bry0;    
wire             h4_bry0_16; 
wire             h4_bry0_32; 
wire             h4_bry1;    
wire             h4_bry1_16; 
wire             h4_bry1_32; 
wire    [15 :0]  h4_data;    
wire    [3  :0]  h4_pre_code; 
wire             h5_ab_br;   
wire             h5_br;      
wire             h5_bry0;    
wire             h5_bry0_16; 
wire             h5_bry0_32; 
wire             h5_bry1;    
wire             h5_bry1_16; 
wire             h5_bry1_32; 
wire    [15 :0]  h5_data;    
wire    [3  :0]  h5_pre_code; 
wire             h6_ab_br;   
wire             h6_br;      
wire             h6_bry0;    
wire             h6_bry0_16; 
wire             h6_bry0_32; 
wire             h6_bry1;    
wire             h6_bry1_16; 
wire             h6_bry1_32; 
wire    [15 :0]  h6_data;    
wire    [3  :0]  h6_pre_code; 
wire             h7_ab_br;   
wire             h7_br;      
wire             h7_bry0;    
wire             h7_bry0_16; 
wire             h7_bry0_32; 
wire             h7_bry1;    
wire             h7_bry1_16; 
wire             h7_bry1_32; 
wire    [15 :0]  h7_data;    
wire    [3  :0]  h7_pre_code; 
wire             h8_ab_br;   
wire             h8_br;      
wire             h8_bry0;    
wire             h8_bry0_16; 
wire             h8_bry0_32; 
wire             h8_bry1;    
wire             h8_bry1_16; 
wire             h8_bry1_32; 
wire    [15 :0]  h8_data;    
wire    [3  :0]  h8_pre_code; 
wire    [127:0]  inst_data;  
wire    [31 :0]  pre_code;   














assign h1_data[15:0] = inst_data[127:112];
assign h2_data[15:0] = inst_data[111: 96];
assign h3_data[15:0] = inst_data[ 95: 80];
assign h4_data[15:0] = inst_data[ 79: 64];
assign h5_data[15:0] = inst_data[ 63: 48];
assign h6_data[15:0] = inst_data[ 47: 32];
assign h7_data[15:0] = inst_data[ 31: 16];
assign h8_data[15:0] = inst_data[ 15:  0];


assign h1_br = (h1_data[6:0] == 7'b1101111) ||
               ({h1_data[14:12],h1_data[6:0]} == 10'b000_1100011) ||
               ({h1_data[14:12],h1_data[6:0]} == 10'b001_1100011) ||
               ({h1_data[14:12],h1_data[6:0]} == 10'b100_1100011) ||
               ({h1_data[14:12],h1_data[6:0]} == 10'b101_1100011) ||
               ({h1_data[14:12],h1_data[6:0]} == 10'b110_1100011) ||
               ({h1_data[14:12],h1_data[6:0]} == 10'b111_1100011) ||
               ({h1_data[15:14],h1_data[1:0]} == 4'b1101) ||
               ({h1_data[15:13],h1_data[1:0]} == 5'b10101);

assign h2_br = (h2_data[6:0] == 7'b1101111) ||
               ({h2_data[14:12],h2_data[6:0]} == 10'b000_1100011) ||
               ({h2_data[14:12],h2_data[6:0]} == 10'b001_1100011) ||
               ({h2_data[14:12],h2_data[6:0]} == 10'b100_1100011) ||
               ({h2_data[14:12],h2_data[6:0]} == 10'b101_1100011) ||
               ({h2_data[14:12],h2_data[6:0]} == 10'b110_1100011) ||
               ({h2_data[14:12],h2_data[6:0]} == 10'b111_1100011) ||
               ({h2_data[15:14],h2_data[1:0]} == 4'b1101) ||
               ({h2_data[15:13],h2_data[1:0]} == 5'b10101);

assign h3_br = (h3_data[6:0] == 7'b1101111) ||
               ({h3_data[14:12],h3_data[6:0]} == 10'b000_1100011) ||
               ({h3_data[14:12],h3_data[6:0]} == 10'b001_1100011) ||
               ({h3_data[14:12],h3_data[6:0]} == 10'b100_1100011) ||
               ({h3_data[14:12],h3_data[6:0]} == 10'b101_1100011) ||
               ({h3_data[14:12],h3_data[6:0]} == 10'b110_1100011) ||
               ({h3_data[14:12],h3_data[6:0]} == 10'b111_1100011) ||
               ({h3_data[15:14],h3_data[1:0]} == 4'b1101) ||
               ({h3_data[15:13],h3_data[1:0]} == 5'b10101);

assign h4_br = (h4_data[6:0] == 7'b1101111) ||
               ({h4_data[14:12],h4_data[6:0]} == 10'b000_1100011) ||
               ({h4_data[14:12],h4_data[6:0]} == 10'b001_1100011) ||
               ({h4_data[14:12],h4_data[6:0]} == 10'b100_1100011) ||
               ({h4_data[14:12],h4_data[6:0]} == 10'b101_1100011) ||
               ({h4_data[14:12],h4_data[6:0]} == 10'b110_1100011) ||
               ({h4_data[14:12],h4_data[6:0]} == 10'b111_1100011) ||
               ({h4_data[15:14],h4_data[1:0]} == 4'b1101) ||
               ({h4_data[15:13],h4_data[1:0]} == 5'b10101);

assign h5_br = (h5_data[6:0] == 7'b1101111) ||
               ({h5_data[14:12],h5_data[6:0]} == 10'b000_1100011) ||
               ({h5_data[14:12],h5_data[6:0]} == 10'b001_1100011) ||
               ({h5_data[14:12],h5_data[6:0]} == 10'b100_1100011) ||
               ({h5_data[14:12],h5_data[6:0]} == 10'b101_1100011) ||
               ({h5_data[14:12],h5_data[6:0]} == 10'b110_1100011) ||
               ({h5_data[14:12],h5_data[6:0]} == 10'b111_1100011) ||
               ({h5_data[15:14],h5_data[1:0]} == 4'b1101) ||
               ({h5_data[15:13],h5_data[1:0]} == 5'b10101);

assign h6_br = (h6_data[6:0] == 7'b1101111) ||
               ({h6_data[14:12],h6_data[6:0]} == 10'b000_1100011) ||
               ({h6_data[14:12],h6_data[6:0]} == 10'b001_1100011) ||
               ({h6_data[14:12],h6_data[6:0]} == 10'b100_1100011) ||
               ({h6_data[14:12],h6_data[6:0]} == 10'b101_1100011) ||
               ({h6_data[14:12],h6_data[6:0]} == 10'b110_1100011) ||
               ({h6_data[14:12],h6_data[6:0]} == 10'b111_1100011) ||
               ({h6_data[15:14],h6_data[1:0]} == 4'b1101) ||
               ({h6_data[15:13],h6_data[1:0]} == 5'b10101);

assign h7_br = (h7_data[6:0] == 7'b1101111) ||
               ({h7_data[14:12],h7_data[6:0]} == 10'b000_1100011) ||
               ({h7_data[14:12],h7_data[6:0]} == 10'b001_1100011) ||
               ({h7_data[14:12],h7_data[6:0]} == 10'b100_1100011) ||
               ({h7_data[14:12],h7_data[6:0]} == 10'b101_1100011) ||
               ({h7_data[14:12],h7_data[6:0]} == 10'b110_1100011) ||
               ({h7_data[14:12],h7_data[6:0]} == 10'b111_1100011) ||
               ({h7_data[15:14],h7_data[1:0]} == 4'b1101) ||
               ({h7_data[15:13],h7_data[1:0]} == 5'b10101);

assign h8_br = (h8_data[6:0] == 7'b1101111) ||
               ({h8_data[14:12],h8_data[6:0]} == 10'b000_1100011) ||
               ({h8_data[14:12],h8_data[6:0]} == 10'b001_1100011) ||
               ({h8_data[14:12],h8_data[6:0]} == 10'b100_1100011) ||
               ({h8_data[14:12],h8_data[6:0]} == 10'b101_1100011) ||
               ({h8_data[14:12],h8_data[6:0]} == 10'b110_1100011) ||
               ({h8_data[14:12],h8_data[6:0]} == 10'b111_1100011) ||
               ({h8_data[15:14],h8_data[1:0]} == 4'b1101) ||
               ({h8_data[15:13],h8_data[1:0]} == 5'b10101);


assign h1_ab_br = (h1_data[6:0] == 7'b1101111) ||
                  ({h1_data[15:13],h1_data[1:0]} == 5'b10101);

assign h2_ab_br = (h2_data[6:0] == 7'b1101111) ||
                  ({h2_data[15:13],h2_data[1:0]} == 5'b10101);

assign h3_ab_br = (h3_data[6:0] == 7'b1101111) ||
                  ({h3_data[15:13],h3_data[1:0]} == 5'b10101);

assign h4_ab_br = (h4_data[6:0] == 7'b1101111) ||
                  ({h4_data[15:13],h4_data[1:0]} == 5'b10101);

assign h5_ab_br = (h5_data[6:0] == 7'b1101111) ||
                  ({h5_data[15:13],h5_data[1:0]} == 5'b10101);

assign h6_ab_br = (h6_data[6:0] == 7'b1101111) ||
                  ({h6_data[15:13],h6_data[1:0]} == 5'b10101);

assign h7_ab_br = (h7_data[6:0] == 7'b1101111) ||
                  ({h7_data[15:13],h7_data[1:0]} == 5'b10101);

assign h8_ab_br = (h8_data[6:0] == 7'b1101111) ||
                  ({h8_data[15:13],h8_data[1:0]} == 5'b10101);


assign h1_bry1_32 = (h1_data[1:0] == 2'b11);
assign h1_bry1    = 1'b1;

assign h2_bry1_32 = (h2_data[1:0] == 2'b11) && !h1_bry1_32;
assign h2_bry1_16 = !(h2_data[1:0] == 2'b11) && !h1_bry1_32;
assign h2_bry1    = h2_bry1_32 || h2_bry1_16;

assign h3_bry1_32 = (h3_data[1:0] == 2'b11) && !h2_bry1_32;
assign h3_bry1_16 = !(h3_data[1:0] == 2'b11) && !h2_bry1_32;
assign h3_bry1    = h3_bry1_32 || h3_bry1_16;

assign h4_bry1_32 = (h4_data[1:0] == 2'b11) && !h3_bry1_32;
assign h4_bry1_16 = !(h4_data[1:0] == 2'b11) && !h3_bry1_32;
assign h4_bry1    = h4_bry1_32 || h4_bry1_16;

assign h5_bry1_32 = (h5_data[1:0] == 2'b11) && !h4_bry1_32;
assign h5_bry1_16 = !(h5_data[1:0] == 2'b11) && !h4_bry1_32;
assign h5_bry1    = h5_bry1_32 || h5_bry1_16;

assign h6_bry1_32 = (h6_data[1:0] == 2'b11) && !h5_bry1_32;
assign h6_bry1_16 = !(h6_data[1:0] == 2'b11) && !h5_bry1_32;
assign h6_bry1    = h6_bry1_32 || h6_bry1_16;

assign h7_bry1_32 = (h7_data[1:0] == 2'b11) && !h6_bry1_32;
assign h7_bry1_16 = !(h7_data[1:0] == 2'b11) && !h6_bry1_32;
assign h7_bry1    = h7_bry1_32 || h7_bry1_16;

assign h8_bry1_32 = (h8_data[1:0] == 2'b11) && !h7_bry1_32;
assign h8_bry1_16 = !(h8_data[1:0] == 2'b11) && !h7_bry1_32;
assign h8_bry1    = h8_bry1_32 || h8_bry1_16;


assign h1_bry0    = 1'b0;

assign h2_bry0_32 = (h2_data[1:0] == 2'b11);
assign h2_bry0    = 1'b1;

assign h3_bry0_32 = (h3_data[1:0] == 2'b11) && !h2_bry0_32;
assign h3_bry0_16 = !(h3_data[1:0] == 2'b11) && !h2_bry0_32;
assign h3_bry0    = h3_bry0_32 || h3_bry0_16;

assign h4_bry0_32 = (h4_data[1:0] == 2'b11) && !h3_bry0_32;
assign h4_bry0_16 = !(h4_data[1:0] == 2'b11) && !h3_bry0_32;
assign h4_bry0    = h4_bry0_32 || h4_bry0_16;

assign h5_bry0_32 = (h5_data[1:0] == 2'b11) && !h4_bry0_32;
assign h5_bry0_16 = !(h5_data[1:0] == 2'b11) && !h4_bry0_32;
assign h5_bry0    = h5_bry0_32 || h5_bry0_16;

assign h6_bry0_32 = (h6_data[1:0] == 2'b11) && !h5_bry0_32;
assign h6_bry0_16 = !(h6_data[1:0] == 2'b11) && !h5_bry0_32;
assign h6_bry0    = h6_bry0_32 || h6_bry0_16;

assign h7_bry0_32 = (h7_data[1:0] == 2'b11) && !h6_bry0_32;
assign h7_bry0_16 = !(h7_data[1:0] == 2'b11) && !h6_bry0_32;
assign h7_bry0    = h7_bry0_32 || h7_bry0_16;

assign h8_bry0_32 = (h8_data[1:0] == 2'b11) && !h7_bry0_32;
assign h8_bry0_16 = !(h8_data[1:0] == 2'b11) && !h7_bry0_32;
assign h8_bry0    = h8_bry0_32 || h8_bry0_16;


assign h1_pre_code[3:0] = {h1_ab_br,h1_br, h1_bry1, h1_bry0};
assign h2_pre_code[3:0] = {h2_ab_br,h2_br, h2_bry1, h2_bry0};
assign h3_pre_code[3:0] = {h3_ab_br,h3_br, h3_bry1, h3_bry0};
assign h4_pre_code[3:0] = {h4_ab_br,h4_br, h4_bry1, h4_bry0};
assign h5_pre_code[3:0] = {h5_ab_br,h5_br, h5_bry1, h5_bry0};
assign h6_pre_code[3:0] = {h6_ab_br,h6_br, h6_bry1, h6_bry0};
assign h7_pre_code[3:0] = {h7_ab_br,h7_br, h7_bry1, h7_bry0};
assign h8_pre_code[3:0] = {h8_ab_br,h8_br, h8_bry1, h8_bry0};

assign pre_code[31:0] = {h1_pre_code[3:0],
                         h2_pre_code[3:0],
                         h3_pre_code[3:0],
                         h4_pre_code[3:0],
                         h5_pre_code[3:0],
                         h6_pre_code[3:0],
                         h7_pre_code[3:0],
                         h8_pre_code[3:0]};


endmodule