Module Definition
dashboard | hierarchy | modlist | groups | tests | asserts



Module Instance : tb.dut.u_sha3.u_keccak.u_keccak_p.g_2share_chi.g_chi_w[0].u_dom

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
99.37 100.00 98.75 98.73 100.00 u_keccak_p


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
gen_inner_domain_regs.u_prim_flop_tab01 100.00 100.00 100.00
u_prim_flop_t01 100.00 100.00 100.00
u_prim_xor_q01 100.00 100.00
u_prim_xor_t01 100.00 100.00



Module Instance : tb.dut.u_sha3.u_keccak.u_keccak_p.g_2share_chi.g_chi_w[1].u_dom

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
99.37 100.00 98.75 98.73 100.00 u_keccak_p


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
gen_inner_domain_regs.u_prim_flop_tab01 100.00 100.00 100.00
u_prim_flop_t01 100.00 100.00 100.00
u_prim_xor_q01 100.00 100.00
u_prim_xor_t01 100.00 100.00



Module Instance : tb.dut.u_sha3.u_keccak.u_keccak_p.g_2share_chi.g_chi_w[2].u_dom

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
99.37 100.00 98.75 98.73 100.00 u_keccak_p


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
gen_inner_domain_regs.u_prim_flop_tab01 100.00 100.00 100.00
u_prim_flop_t01 100.00 100.00 100.00
u_prim_xor_q01 100.00 100.00
u_prim_xor_t01 100.00 100.00



Module Instance : tb.dut.u_sha3.u_keccak.u_keccak_p.g_2share_chi.g_chi_w[3].u_dom

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
99.37 100.00 98.75 98.73 100.00 u_keccak_p


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
gen_inner_domain_regs.u_prim_flop_tab01 100.00 100.00 100.00
u_prim_flop_t01 100.00 100.00 100.00
u_prim_xor_q01 100.00 100.00
u_prim_xor_t01 100.00 100.00



Module Instance : tb.dut.u_sha3.u_keccak.u_keccak_p.g_2share_chi.g_chi_w[4].u_dom

Instance :
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00


Instance's subtree :
SCORELINECONDTOGGLEFSMBRANCHASSERT
100.00 100.00 100.00 100.00


Parent :
SCORELINECONDTOGGLEFSMBRANCHASSERTNAME
99.37 100.00 98.75 98.73 100.00 u_keccak_p


Subtrees :
NAMESCORELINECONDTOGGLEFSMBRANCHASSERT
gen_inner_domain_regs.u_prim_flop_tab01 100.00 100.00 100.00
u_prim_flop_t01 100.00 100.00 100.00
u_prim_xor_q01 100.00 100.00
u_prim_xor_t01 100.00 100.00

Line Coverage for Module : prim_dom_and_2share
Line No.TotalCoveredPercent
TOTAL77100.00
CONT_ASSIGN5611100.00
CONT_ASSIGN5711100.00
CONT_ASSIGN6011100.00
CONT_ASSIGN6111100.00
CONT_ASSIGN11011100.00
CONT_ASSIGN11111100.00
CONT_ASSIGN14211100.00

55 // Inner-domain terms 56 1/1 assign t_a0b0_d = a0_i & b0_i; Tests: T1 T2 T3  57 1/1 assign t_a1b1_d = a1_i & b1_i; Tests: T1 T2 T3  58 59 // Cross-domain terms 60 1/1 assign t_a0b1 = a0_i & b1_i; Tests: T1 T2 T3  61 1/1 assign t_a1b0 = a1_i & b0_i; Tests: T1 T2 T3  62 63 /////////////// 64 // Resharing // 65 /////////////// 66 // Resharing of cross-domain terms 67 68 // Preserve the logic sequence for XOR not to proceed cross-domain AND. 69 prim_xor2 #( 70 .Width ( DW*2 ) 71 ) u_prim_xor_t01 ( 72 .in0_i ( {t_a0b1, t_a1b0} ), 73 .in1_i ( {z_i, z_i} ), 74 .out_o ( {t0_d, t1_d} ) 75 ); 76 77 // Register stage 78 prim_flop_en #( 79 .Width ( DW*2 ), 80 .ResetValue ( '0 ) 81 ) u_prim_flop_t01 ( 82 .clk_i ( clk_i ), 83 .rst_ni ( rst_ni ), 84 .en_i ( z_valid_i ), 85 .d_i ( {t0_d, t1_d} ), 86 .q_o ( {t0_q, t1_q} ) 87 ); 88 89 ///////////////////////// 90 // Optional Pipelining // 91 ///////////////////////// 92 93 if (Pipeline == 1'b1) begin : gen_inner_domain_regs 94 // Add pipeline registers on inner-domain terms prior to integration. This allows accepting new 95 // input data every clock cycle and prevents SCA leakage occurring due to the integration of 96 // reshared cross-domain terms with inner-domain terms derived from different input data. 97 98 logic [DW-1:0] t_a0b0_q, t_a1b1_q; 99 prim_flop_en #( 100 .Width ( DW*2 ), 101 .ResetValue ( '0 ) 102 ) u_prim_flop_tab01 ( 103 .clk_i ( clk_i ), 104 .rst_ni ( rst_ni ), 105 .en_i ( z_valid_i ), 106 .d_i ( {t_a0b0_d, t_a1b1_d} ), 107 .q_o ( {t_a0b0_q, t_a1b1_q} ) 108 ); 109 110 1/1 assign t_a0b0 = t_a0b0_q; Tests: T1 T2 T3  111 1/1 assign t_a1b1 = t_a1b1_q; Tests: T1 T2 T3  112 113 end else begin : gen_no_inner_domain_regs 114 // Do not add the optional pipeline registers on the inner-domain terms. This allows to save 115 // some area in case the multiplier does not need to accept new data in every cycle. However, 116 // this can cause SCA leakage as during the clock cycle in which new data arrives, the new 117 // inner-domain terms are integrated with the previous, reshared cross-domain terms. 118 119 assign t_a0b0 = t_a0b0_d; 120 assign t_a1b1 = t_a1b1_d; 121 end 122 123 ///////////////// 124 // Integration // 125 ///////////////// 126 127 // Preserve the logic sequence for XOR not to proceed the inner-domain AND. 128 prim_xor2 #( 129 .Width ( DW*2 ) 130 ) u_prim_xor_q01 ( 131 .in0_i ( {t_a0b0, t_a1b1} ), 132 .in1_i ( {t0_q, t1_q} ), 133 .out_o ( {q0_o, q1_o} ) 134 ); 135 136 // Use intermediate results for remasking computations in another instance in the following 137 // clock cycle. Use one share only. Directly use output of flops updating with z_valid_i. 138 // t1_q is obtained by remasking t_a1b0 with z_i. Since z_i is uniformly distributed and 139 // independent of a1/b0_i, t1_q is also uniformly distributed and independent of a1/b0_i. 140 // For details, see Lemma 1 in Canright, "A very compact 'perfectly masked' S-box for AES 141 // (corrected)" available at https://eprint.iacr.org/2009/011.pdf 142 1/1 assign prd_o = t1_q; Tests: T1 T2 T3 

Assert Coverage for Module : prim_dom_and_2share
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 1 1 100.00 1 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 1 1 100.00 1 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
UnmaskedAndMatched_A 2147483647 213347705 0 0


UnmaskedAndMatched_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 2147483647 213347705 0 0
T1 422560 25440 0 0
T2 584340 35040 0 0
T3 1005895 33120 0 0
T4 0 21120 0 0
T7 72820 2160 0 0
T20 1555635 55920 0 0
T29 2242940 118800 0 0
T30 22175 2640 0 0
T31 49195 2640 0 0
T43 797425 17760 0 0
T44 6135 0 0 0

Line Coverage for Instance : tb.dut.u_sha3.u_keccak.u_keccak_p.g_2share_chi.g_chi_w[0].u_dom
Line No.TotalCoveredPercent
TOTAL77100.00
CONT_ASSIGN5611100.00
CONT_ASSIGN5711100.00
CONT_ASSIGN6011100.00
CONT_ASSIGN6111100.00
CONT_ASSIGN11011100.00
CONT_ASSIGN11111100.00
CONT_ASSIGN14211100.00

55 // Inner-domain terms 56 1/1 assign t_a0b0_d = a0_i & b0_i; Tests: T1 T2 T3  57 1/1 assign t_a1b1_d = a1_i & b1_i; Tests: T1 T2 T3  58 59 // Cross-domain terms 60 1/1 assign t_a0b1 = a0_i & b1_i; Tests: T1 T2 T3  61 1/1 assign t_a1b0 = a1_i & b0_i; Tests: T1 T2 T3  62 63 /////////////// 64 // Resharing // 65 /////////////// 66 // Resharing of cross-domain terms 67 68 // Preserve the logic sequence for XOR not to proceed cross-domain AND. 69 prim_xor2 #( 70 .Width ( DW*2 ) 71 ) u_prim_xor_t01 ( 72 .in0_i ( {t_a0b1, t_a1b0} ), 73 .in1_i ( {z_i, z_i} ), 74 .out_o ( {t0_d, t1_d} ) 75 ); 76 77 // Register stage 78 prim_flop_en #( 79 .Width ( DW*2 ), 80 .ResetValue ( '0 ) 81 ) u_prim_flop_t01 ( 82 .clk_i ( clk_i ), 83 .rst_ni ( rst_ni ), 84 .en_i ( z_valid_i ), 85 .d_i ( {t0_d, t1_d} ), 86 .q_o ( {t0_q, t1_q} ) 87 ); 88 89 ///////////////////////// 90 // Optional Pipelining // 91 ///////////////////////// 92 93 if (Pipeline == 1'b1) begin : gen_inner_domain_regs 94 // Add pipeline registers on inner-domain terms prior to integration. This allows accepting new 95 // input data every clock cycle and prevents SCA leakage occurring due to the integration of 96 // reshared cross-domain terms with inner-domain terms derived from different input data. 97 98 logic [DW-1:0] t_a0b0_q, t_a1b1_q; 99 prim_flop_en #( 100 .Width ( DW*2 ), 101 .ResetValue ( '0 ) 102 ) u_prim_flop_tab01 ( 103 .clk_i ( clk_i ), 104 .rst_ni ( rst_ni ), 105 .en_i ( z_valid_i ), 106 .d_i ( {t_a0b0_d, t_a1b1_d} ), 107 .q_o ( {t_a0b0_q, t_a1b1_q} ) 108 ); 109 110 1/1 assign t_a0b0 = t_a0b0_q; Tests: T1 T2 T3  111 1/1 assign t_a1b1 = t_a1b1_q; Tests: T1 T2 T3  112 113 end else begin : gen_no_inner_domain_regs 114 // Do not add the optional pipeline registers on the inner-domain terms. This allows to save 115 // some area in case the multiplier does not need to accept new data in every cycle. However, 116 // this can cause SCA leakage as during the clock cycle in which new data arrives, the new 117 // inner-domain terms are integrated with the previous, reshared cross-domain terms. 118 119 assign t_a0b0 = t_a0b0_d; 120 assign t_a1b1 = t_a1b1_d; 121 end 122 123 ///////////////// 124 // Integration // 125 ///////////////// 126 127 // Preserve the logic sequence for XOR not to proceed the inner-domain AND. 128 prim_xor2 #( 129 .Width ( DW*2 ) 130 ) u_prim_xor_q01 ( 131 .in0_i ( {t_a0b0, t_a1b1} ), 132 .in1_i ( {t0_q, t1_q} ), 133 .out_o ( {q0_o, q1_o} ) 134 ); 135 136 // Use intermediate results for remasking computations in another instance in the following 137 // clock cycle. Use one share only. Directly use output of flops updating with z_valid_i. 138 // t1_q is obtained by remasking t_a1b0 with z_i. Since z_i is uniformly distributed and 139 // independent of a1/b0_i, t1_q is also uniformly distributed and independent of a1/b0_i. 140 // For details, see Lemma 1 in Canright, "A very compact 'perfectly masked' S-box for AES 141 // (corrected)" available at https://eprint.iacr.org/2009/011.pdf 142 1/1 assign prd_o = t1_q; Tests: T1 T2 T3 

Assert Coverage for Instance : tb.dut.u_sha3.u_keccak.u_keccak_p.g_2share_chi.g_chi_w[0].u_dom
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 1 1 100.00 1 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 1 1 100.00 1 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
UnmaskedAndMatched_A 640180531 42669541 0 0


UnmaskedAndMatched_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 640180531 42669541 0 0
T1 84512 5088 0 0
T2 116868 7008 0 0
T3 201179 6624 0 0
T4 0 4224 0 0
T7 14564 432 0 0
T20 311127 11184 0 0
T29 448588 23760 0 0
T30 4435 528 0 0
T31 9839 528 0 0
T43 159485 3552 0 0
T44 1227 0 0 0

Line Coverage for Instance : tb.dut.u_sha3.u_keccak.u_keccak_p.g_2share_chi.g_chi_w[1].u_dom
Line No.TotalCoveredPercent
TOTAL77100.00
CONT_ASSIGN5611100.00
CONT_ASSIGN5711100.00
CONT_ASSIGN6011100.00
CONT_ASSIGN6111100.00
CONT_ASSIGN11011100.00
CONT_ASSIGN11111100.00
CONT_ASSIGN14211100.00

55 // Inner-domain terms 56 1/1 assign t_a0b0_d = a0_i & b0_i; Tests: T1 T2 T3  57 1/1 assign t_a1b1_d = a1_i & b1_i; Tests: T1 T2 T3  58 59 // Cross-domain terms 60 1/1 assign t_a0b1 = a0_i & b1_i; Tests: T1 T2 T3  61 1/1 assign t_a1b0 = a1_i & b0_i; Tests: T1 T2 T3  62 63 /////////////// 64 // Resharing // 65 /////////////// 66 // Resharing of cross-domain terms 67 68 // Preserve the logic sequence for XOR not to proceed cross-domain AND. 69 prim_xor2 #( 70 .Width ( DW*2 ) 71 ) u_prim_xor_t01 ( 72 .in0_i ( {t_a0b1, t_a1b0} ), 73 .in1_i ( {z_i, z_i} ), 74 .out_o ( {t0_d, t1_d} ) 75 ); 76 77 // Register stage 78 prim_flop_en #( 79 .Width ( DW*2 ), 80 .ResetValue ( '0 ) 81 ) u_prim_flop_t01 ( 82 .clk_i ( clk_i ), 83 .rst_ni ( rst_ni ), 84 .en_i ( z_valid_i ), 85 .d_i ( {t0_d, t1_d} ), 86 .q_o ( {t0_q, t1_q} ) 87 ); 88 89 ///////////////////////// 90 // Optional Pipelining // 91 ///////////////////////// 92 93 if (Pipeline == 1'b1) begin : gen_inner_domain_regs 94 // Add pipeline registers on inner-domain terms prior to integration. This allows accepting new 95 // input data every clock cycle and prevents SCA leakage occurring due to the integration of 96 // reshared cross-domain terms with inner-domain terms derived from different input data. 97 98 logic [DW-1:0] t_a0b0_q, t_a1b1_q; 99 prim_flop_en #( 100 .Width ( DW*2 ), 101 .ResetValue ( '0 ) 102 ) u_prim_flop_tab01 ( 103 .clk_i ( clk_i ), 104 .rst_ni ( rst_ni ), 105 .en_i ( z_valid_i ), 106 .d_i ( {t_a0b0_d, t_a1b1_d} ), 107 .q_o ( {t_a0b0_q, t_a1b1_q} ) 108 ); 109 110 1/1 assign t_a0b0 = t_a0b0_q; Tests: T1 T2 T3  111 1/1 assign t_a1b1 = t_a1b1_q; Tests: T1 T2 T3  112 113 end else begin : gen_no_inner_domain_regs 114 // Do not add the optional pipeline registers on the inner-domain terms. This allows to save 115 // some area in case the multiplier does not need to accept new data in every cycle. However, 116 // this can cause SCA leakage as during the clock cycle in which new data arrives, the new 117 // inner-domain terms are integrated with the previous, reshared cross-domain terms. 118 119 assign t_a0b0 = t_a0b0_d; 120 assign t_a1b1 = t_a1b1_d; 121 end 122 123 ///////////////// 124 // Integration // 125 ///////////////// 126 127 // Preserve the logic sequence for XOR not to proceed the inner-domain AND. 128 prim_xor2 #( 129 .Width ( DW*2 ) 130 ) u_prim_xor_q01 ( 131 .in0_i ( {t_a0b0, t_a1b1} ), 132 .in1_i ( {t0_q, t1_q} ), 133 .out_o ( {q0_o, q1_o} ) 134 ); 135 136 // Use intermediate results for remasking computations in another instance in the following 137 // clock cycle. Use one share only. Directly use output of flops updating with z_valid_i. 138 // t1_q is obtained by remasking t_a1b0 with z_i. Since z_i is uniformly distributed and 139 // independent of a1/b0_i, t1_q is also uniformly distributed and independent of a1/b0_i. 140 // For details, see Lemma 1 in Canright, "A very compact 'perfectly masked' S-box for AES 141 // (corrected)" available at https://eprint.iacr.org/2009/011.pdf 142 1/1 assign prd_o = t1_q; Tests: T1 T2 T3 

Assert Coverage for Instance : tb.dut.u_sha3.u_keccak.u_keccak_p.g_2share_chi.g_chi_w[1].u_dom
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 1 1 100.00 1 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 1 1 100.00 1 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
UnmaskedAndMatched_A 640180531 42669541 0 0


UnmaskedAndMatched_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 640180531 42669541 0 0
T1 84512 5088 0 0
T2 116868 7008 0 0
T3 201179 6624 0 0
T4 0 4224 0 0
T7 14564 432 0 0
T20 311127 11184 0 0
T29 448588 23760 0 0
T30 4435 528 0 0
T31 9839 528 0 0
T43 159485 3552 0 0
T44 1227 0 0 0

Line Coverage for Instance : tb.dut.u_sha3.u_keccak.u_keccak_p.g_2share_chi.g_chi_w[2].u_dom
Line No.TotalCoveredPercent
TOTAL77100.00
CONT_ASSIGN5611100.00
CONT_ASSIGN5711100.00
CONT_ASSIGN6011100.00
CONT_ASSIGN6111100.00
CONT_ASSIGN11011100.00
CONT_ASSIGN11111100.00
CONT_ASSIGN14211100.00

55 // Inner-domain terms 56 1/1 assign t_a0b0_d = a0_i & b0_i; Tests: T1 T2 T3  57 1/1 assign t_a1b1_d = a1_i & b1_i; Tests: T1 T2 T3  58 59 // Cross-domain terms 60 1/1 assign t_a0b1 = a0_i & b1_i; Tests: T1 T2 T3  61 1/1 assign t_a1b0 = a1_i & b0_i; Tests: T1 T2 T3  62 63 /////////////// 64 // Resharing // 65 /////////////// 66 // Resharing of cross-domain terms 67 68 // Preserve the logic sequence for XOR not to proceed cross-domain AND. 69 prim_xor2 #( 70 .Width ( DW*2 ) 71 ) u_prim_xor_t01 ( 72 .in0_i ( {t_a0b1, t_a1b0} ), 73 .in1_i ( {z_i, z_i} ), 74 .out_o ( {t0_d, t1_d} ) 75 ); 76 77 // Register stage 78 prim_flop_en #( 79 .Width ( DW*2 ), 80 .ResetValue ( '0 ) 81 ) u_prim_flop_t01 ( 82 .clk_i ( clk_i ), 83 .rst_ni ( rst_ni ), 84 .en_i ( z_valid_i ), 85 .d_i ( {t0_d, t1_d} ), 86 .q_o ( {t0_q, t1_q} ) 87 ); 88 89 ///////////////////////// 90 // Optional Pipelining // 91 ///////////////////////// 92 93 if (Pipeline == 1'b1) begin : gen_inner_domain_regs 94 // Add pipeline registers on inner-domain terms prior to integration. This allows accepting new 95 // input data every clock cycle and prevents SCA leakage occurring due to the integration of 96 // reshared cross-domain terms with inner-domain terms derived from different input data. 97 98 logic [DW-1:0] t_a0b0_q, t_a1b1_q; 99 prim_flop_en #( 100 .Width ( DW*2 ), 101 .ResetValue ( '0 ) 102 ) u_prim_flop_tab01 ( 103 .clk_i ( clk_i ), 104 .rst_ni ( rst_ni ), 105 .en_i ( z_valid_i ), 106 .d_i ( {t_a0b0_d, t_a1b1_d} ), 107 .q_o ( {t_a0b0_q, t_a1b1_q} ) 108 ); 109 110 1/1 assign t_a0b0 = t_a0b0_q; Tests: T1 T2 T3  111 1/1 assign t_a1b1 = t_a1b1_q; Tests: T1 T2 T3  112 113 end else begin : gen_no_inner_domain_regs 114 // Do not add the optional pipeline registers on the inner-domain terms. This allows to save 115 // some area in case the multiplier does not need to accept new data in every cycle. However, 116 // this can cause SCA leakage as during the clock cycle in which new data arrives, the new 117 // inner-domain terms are integrated with the previous, reshared cross-domain terms. 118 119 assign t_a0b0 = t_a0b0_d; 120 assign t_a1b1 = t_a1b1_d; 121 end 122 123 ///////////////// 124 // Integration // 125 ///////////////// 126 127 // Preserve the logic sequence for XOR not to proceed the inner-domain AND. 128 prim_xor2 #( 129 .Width ( DW*2 ) 130 ) u_prim_xor_q01 ( 131 .in0_i ( {t_a0b0, t_a1b1} ), 132 .in1_i ( {t0_q, t1_q} ), 133 .out_o ( {q0_o, q1_o} ) 134 ); 135 136 // Use intermediate results for remasking computations in another instance in the following 137 // clock cycle. Use one share only. Directly use output of flops updating with z_valid_i. 138 // t1_q is obtained by remasking t_a1b0 with z_i. Since z_i is uniformly distributed and 139 // independent of a1/b0_i, t1_q is also uniformly distributed and independent of a1/b0_i. 140 // For details, see Lemma 1 in Canright, "A very compact 'perfectly masked' S-box for AES 141 // (corrected)" available at https://eprint.iacr.org/2009/011.pdf 142 1/1 assign prd_o = t1_q; Tests: T1 T2 T3 

Assert Coverage for Instance : tb.dut.u_sha3.u_keccak.u_keccak_p.g_2share_chi.g_chi_w[2].u_dom
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 1 1 100.00 1 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 1 1 100.00 1 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
UnmaskedAndMatched_A 640180531 42669541 0 0


UnmaskedAndMatched_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 640180531 42669541 0 0
T1 84512 5088 0 0
T2 116868 7008 0 0
T3 201179 6624 0 0
T4 0 4224 0 0
T7 14564 432 0 0
T20 311127 11184 0 0
T29 448588 23760 0 0
T30 4435 528 0 0
T31 9839 528 0 0
T43 159485 3552 0 0
T44 1227 0 0 0

Line Coverage for Instance : tb.dut.u_sha3.u_keccak.u_keccak_p.g_2share_chi.g_chi_w[3].u_dom
Line No.TotalCoveredPercent
TOTAL77100.00
CONT_ASSIGN5611100.00
CONT_ASSIGN5711100.00
CONT_ASSIGN6011100.00
CONT_ASSIGN6111100.00
CONT_ASSIGN11011100.00
CONT_ASSIGN11111100.00
CONT_ASSIGN14211100.00

55 // Inner-domain terms 56 1/1 assign t_a0b0_d = a0_i & b0_i; Tests: T1 T2 T3  57 1/1 assign t_a1b1_d = a1_i & b1_i; Tests: T1 T2 T3  58 59 // Cross-domain terms 60 1/1 assign t_a0b1 = a0_i & b1_i; Tests: T1 T2 T3  61 1/1 assign t_a1b0 = a1_i & b0_i; Tests: T1 T2 T3  62 63 /////////////// 64 // Resharing // 65 /////////////// 66 // Resharing of cross-domain terms 67 68 // Preserve the logic sequence for XOR not to proceed cross-domain AND. 69 prim_xor2 #( 70 .Width ( DW*2 ) 71 ) u_prim_xor_t01 ( 72 .in0_i ( {t_a0b1, t_a1b0} ), 73 .in1_i ( {z_i, z_i} ), 74 .out_o ( {t0_d, t1_d} ) 75 ); 76 77 // Register stage 78 prim_flop_en #( 79 .Width ( DW*2 ), 80 .ResetValue ( '0 ) 81 ) u_prim_flop_t01 ( 82 .clk_i ( clk_i ), 83 .rst_ni ( rst_ni ), 84 .en_i ( z_valid_i ), 85 .d_i ( {t0_d, t1_d} ), 86 .q_o ( {t0_q, t1_q} ) 87 ); 88 89 ///////////////////////// 90 // Optional Pipelining // 91 ///////////////////////// 92 93 if (Pipeline == 1'b1) begin : gen_inner_domain_regs 94 // Add pipeline registers on inner-domain terms prior to integration. This allows accepting new 95 // input data every clock cycle and prevents SCA leakage occurring due to the integration of 96 // reshared cross-domain terms with inner-domain terms derived from different input data. 97 98 logic [DW-1:0] t_a0b0_q, t_a1b1_q; 99 prim_flop_en #( 100 .Width ( DW*2 ), 101 .ResetValue ( '0 ) 102 ) u_prim_flop_tab01 ( 103 .clk_i ( clk_i ), 104 .rst_ni ( rst_ni ), 105 .en_i ( z_valid_i ), 106 .d_i ( {t_a0b0_d, t_a1b1_d} ), 107 .q_o ( {t_a0b0_q, t_a1b1_q} ) 108 ); 109 110 1/1 assign t_a0b0 = t_a0b0_q; Tests: T1 T2 T3  111 1/1 assign t_a1b1 = t_a1b1_q; Tests: T1 T2 T3  112 113 end else begin : gen_no_inner_domain_regs 114 // Do not add the optional pipeline registers on the inner-domain terms. This allows to save 115 // some area in case the multiplier does not need to accept new data in every cycle. However, 116 // this can cause SCA leakage as during the clock cycle in which new data arrives, the new 117 // inner-domain terms are integrated with the previous, reshared cross-domain terms. 118 119 assign t_a0b0 = t_a0b0_d; 120 assign t_a1b1 = t_a1b1_d; 121 end 122 123 ///////////////// 124 // Integration // 125 ///////////////// 126 127 // Preserve the logic sequence for XOR not to proceed the inner-domain AND. 128 prim_xor2 #( 129 .Width ( DW*2 ) 130 ) u_prim_xor_q01 ( 131 .in0_i ( {t_a0b0, t_a1b1} ), 132 .in1_i ( {t0_q, t1_q} ), 133 .out_o ( {q0_o, q1_o} ) 134 ); 135 136 // Use intermediate results for remasking computations in another instance in the following 137 // clock cycle. Use one share only. Directly use output of flops updating with z_valid_i. 138 // t1_q is obtained by remasking t_a1b0 with z_i. Since z_i is uniformly distributed and 139 // independent of a1/b0_i, t1_q is also uniformly distributed and independent of a1/b0_i. 140 // For details, see Lemma 1 in Canright, "A very compact 'perfectly masked' S-box for AES 141 // (corrected)" available at https://eprint.iacr.org/2009/011.pdf 142 1/1 assign prd_o = t1_q; Tests: T1 T2 T3 

Assert Coverage for Instance : tb.dut.u_sha3.u_keccak.u_keccak_p.g_2share_chi.g_chi_w[3].u_dom
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 1 1 100.00 1 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 1 1 100.00 1 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
UnmaskedAndMatched_A 640180531 42669541 0 0


UnmaskedAndMatched_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 640180531 42669541 0 0
T1 84512 5088 0 0
T2 116868 7008 0 0
T3 201179 6624 0 0
T4 0 4224 0 0
T7 14564 432 0 0
T20 311127 11184 0 0
T29 448588 23760 0 0
T30 4435 528 0 0
T31 9839 528 0 0
T43 159485 3552 0 0
T44 1227 0 0 0

Line Coverage for Instance : tb.dut.u_sha3.u_keccak.u_keccak_p.g_2share_chi.g_chi_w[4].u_dom
Line No.TotalCoveredPercent
TOTAL77100.00
CONT_ASSIGN5611100.00
CONT_ASSIGN5711100.00
CONT_ASSIGN6011100.00
CONT_ASSIGN6111100.00
CONT_ASSIGN11011100.00
CONT_ASSIGN11111100.00
CONT_ASSIGN14211100.00

55 // Inner-domain terms 56 1/1 assign t_a0b0_d = a0_i & b0_i; Tests: T1 T2 T3  57 1/1 assign t_a1b1_d = a1_i & b1_i; Tests: T1 T2 T3  58 59 // Cross-domain terms 60 1/1 assign t_a0b1 = a0_i & b1_i; Tests: T1 T2 T3  61 1/1 assign t_a1b0 = a1_i & b0_i; Tests: T1 T2 T3  62 63 /////////////// 64 // Resharing // 65 /////////////// 66 // Resharing of cross-domain terms 67 68 // Preserve the logic sequence for XOR not to proceed cross-domain AND. 69 prim_xor2 #( 70 .Width ( DW*2 ) 71 ) u_prim_xor_t01 ( 72 .in0_i ( {t_a0b1, t_a1b0} ), 73 .in1_i ( {z_i, z_i} ), 74 .out_o ( {t0_d, t1_d} ) 75 ); 76 77 // Register stage 78 prim_flop_en #( 79 .Width ( DW*2 ), 80 .ResetValue ( '0 ) 81 ) u_prim_flop_t01 ( 82 .clk_i ( clk_i ), 83 .rst_ni ( rst_ni ), 84 .en_i ( z_valid_i ), 85 .d_i ( {t0_d, t1_d} ), 86 .q_o ( {t0_q, t1_q} ) 87 ); 88 89 ///////////////////////// 90 // Optional Pipelining // 91 ///////////////////////// 92 93 if (Pipeline == 1'b1) begin : gen_inner_domain_regs 94 // Add pipeline registers on inner-domain terms prior to integration. This allows accepting new 95 // input data every clock cycle and prevents SCA leakage occurring due to the integration of 96 // reshared cross-domain terms with inner-domain terms derived from different input data. 97 98 logic [DW-1:0] t_a0b0_q, t_a1b1_q; 99 prim_flop_en #( 100 .Width ( DW*2 ), 101 .ResetValue ( '0 ) 102 ) u_prim_flop_tab01 ( 103 .clk_i ( clk_i ), 104 .rst_ni ( rst_ni ), 105 .en_i ( z_valid_i ), 106 .d_i ( {t_a0b0_d, t_a1b1_d} ), 107 .q_o ( {t_a0b0_q, t_a1b1_q} ) 108 ); 109 110 1/1 assign t_a0b0 = t_a0b0_q; Tests: T1 T2 T3  111 1/1 assign t_a1b1 = t_a1b1_q; Tests: T1 T2 T3  112 113 end else begin : gen_no_inner_domain_regs 114 // Do not add the optional pipeline registers on the inner-domain terms. This allows to save 115 // some area in case the multiplier does not need to accept new data in every cycle. However, 116 // this can cause SCA leakage as during the clock cycle in which new data arrives, the new 117 // inner-domain terms are integrated with the previous, reshared cross-domain terms. 118 119 assign t_a0b0 = t_a0b0_d; 120 assign t_a1b1 = t_a1b1_d; 121 end 122 123 ///////////////// 124 // Integration // 125 ///////////////// 126 127 // Preserve the logic sequence for XOR not to proceed the inner-domain AND. 128 prim_xor2 #( 129 .Width ( DW*2 ) 130 ) u_prim_xor_q01 ( 131 .in0_i ( {t_a0b0, t_a1b1} ), 132 .in1_i ( {t0_q, t1_q} ), 133 .out_o ( {q0_o, q1_o} ) 134 ); 135 136 // Use intermediate results for remasking computations in another instance in the following 137 // clock cycle. Use one share only. Directly use output of flops updating with z_valid_i. 138 // t1_q is obtained by remasking t_a1b0 with z_i. Since z_i is uniformly distributed and 139 // independent of a1/b0_i, t1_q is also uniformly distributed and independent of a1/b0_i. 140 // For details, see Lemma 1 in Canright, "A very compact 'perfectly masked' S-box for AES 141 // (corrected)" available at https://eprint.iacr.org/2009/011.pdf 142 1/1 assign prd_o = t1_q; Tests: T1 T2 T3 

Assert Coverage for Instance : tb.dut.u_sha3.u_keccak.u_keccak_p.g_2share_chi.g_chi_w[4].u_dom
TotalAttemptedPercentSucceeded/MatchedPercent
Assertions 1 1 100.00 1 100.00
Cover properties 0 0 0
Cover sequences 0 0 0
Total 1 1 100.00 1 100.00




Assertion Details

NameAttemptsReal SuccessesFailuresIncomplete
UnmaskedAndMatched_A 640180531 42669541 0 0


UnmaskedAndMatched_A
NameAttemptsReal SuccessesFailuresIncomplete
Total 640180531 42669541 0 0
T1 84512 5088 0 0
T2 116868 7008 0 0
T3 201179 6624 0 0
T4 0 4224 0 0
T7 14564 432 0 0
T20 311127 11184 0 0
T29 448588 23760 0 0
T30 4435 528 0 0
T31 9839 528 0 0
T43 159485 3552 0 0
T44 1227 0 0 0

0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%