NVC code coverage report

Hierarchy

Instance: CTU_CAN_FD_TB.TB_TOP_CTU_CAN_FD.I_DUT.I_BTL_TOP.I_BTL_FSM

File:  /__w/CTU-CAN-FD/CTU-CAN-FD/src/bit_timing_logic/btl_top.vhd


Current Instance Statement Branch Toggle Expression FSM state Functional Average
CTU_CAN_FD_TB.TB_TOP_CTU_CAN_FD.I_DUT.I_BTL_TOP.I_BTL_FSM 100.0 % (29/29) 100.0 % (26/26) 100.0 % (18/18) 100.0 % (18/18) 100.0 % (6/6) N.A. 100.0 % (97/97)

Details:

The limit of printed items was reached (5000). Total 260336 items are not displayed.


Statement Branch Toggle Expression FSM state Functional

Uncovered statements:

Excluded statements:

Covered statements:

Signal assignment statement on line 143:

143:        next_state <= current_state; 
Count: 68418497
Threshold: 1

If statement on lines 145 to 160:

145:        if (mr_settings_ena = CTU_CAN_DISABLED) then 
146:            next_state <= s_bt_reset; 
...
159:            end case; 
160:        end if; 

Count: 68418497
Threshold: 1

Signal assignment statement on line 146:

146:            next_state <= s_bt_reset; 
Count: 12179
Threshold: 1

Sequential statement on lines 148 to 159:

148:            case current_state is 
149:            when s_bt_tseg1 => 
...
158:                next_state <= s_bt_tseg1; 
159:            end case; 

Count: 68406318
Threshold: 1

If statement on lines 150 to 152:

150:                if (segm_end = '1') then 
151:                    next_state <= s_bt_tseg2; 
152:                end if; 

Count: 34216820
Threshold: 1

Signal assignment statement on line 151:

151:                    next_state <= s_bt_tseg2; 
Count: 22800381
Threshold: 1

If statement on lines 154 to 156:

154:                if (segm_end = '1') then 
155:                    next_state <= s_bt_tseg1; 
156:                end if; 

Count: 34178182
Threshold: 1

Signal assignment statement on line 155:

155:                    next_state <= s_bt_tseg1; 
Count: 22785030
Threshold: 1

Signal assignment statement on line 158:

158:                next_state <= s_bt_tseg1; 
Count: 11316
Threshold: 1

Signal assignment statement on line 169:

169:        is_tseg1       <= '0'; 
Count: 68418497
Threshold: 1

Signal assignment statement on line 170:

170:        is_tseg2       <= '0'; 
Count: 68418497
Threshold: 1

Signal assignment statement on line 171:

171:        rx_trig_req    <= '0'; 
Count: 68418497
Threshold: 1

Signal assignment statement on line 172:

172:        tx_trig_req    <= '0'; 
Count: 68418497
Threshold: 1

Sequential statement on lines 174 to 192:

174:        case current_state is 
175:        when s_bt_reset => 
...
191: 
192:        end case; 

Count: 68418497
Threshold: 1

If statement on lines 176 to 178:

176:            if (mr_settings_ena = CTU_CAN_ENABLED) then 
177:                tx_trig_req <= '1'; 
178:            end if; 

Count: 20095
Threshold: 1

Signal assignment statement on line 177:

177:                tx_trig_req <= '1'; 
Count: 9715
Threshold: 1

Signal assignment statement on line 181:

181:            is_tseg1 <= '1'; 
Count: 34219689
Threshold: 1

If statement on lines 182 to 184:

182:            if (segm_end = '1') then 
183:                rx_trig_req <= '1'; 
184:            end if; 

Count: 34219689
Threshold: 1

Signal assignment statement on line 183:

183:                rx_trig_req <= '1'; 
Count: 22800502
Threshold: 1

Signal assignment statement on line 187:

187:            is_tseg2 <= '1'; 
Count: 34178713
Threshold: 1

If statement on lines 188 to 190:

188:            if (segm_end = '1') then 
189:                tx_trig_req <= '1'; 
190:            end if; 

Count: 34178713
Threshold: 1

Signal assignment statement on line 189:

189:                tx_trig_req <= '1'; 
Count: 22785069
Threshold: 1

If statement on lines 200 to 206:

200:        if (rst_n = '0') then 
201:            current_state <= s_bt_reset; 
...
205:            end if; 
206:        end if; 

Count: 1089136168
Threshold: 1

Signal assignment statement on line 201:

201:            current_state <= s_bt_reset; 
Count: 2422593
Threshold: 1

If statement on lines 203 to 205:

203:            if (bt_fsm_ce = '1') then 
204:                current_state <= next_state; 
205:            end if; 

Count: 543351807
Threshold: 1

Signal assignment statement on line 204:

204:                current_state <= next_state; 
Count: 22794433
Threshold: 1

If statement on lines 209 to 210:

209:    bt_fsm_ce <= '1' when (next_state /= current_state) else 
210:                 '0'; 

Count: 91201919
Threshold: 1

Signal assignment statement on line 209:

209:    bt_fsm_ce <= '1' when (next_state /= current_state) else 
Count: 45601146
Threshold: 1

Signal assignment statement on line 210:

210:                 '0'; 
Count: 45600773
Threshold: 1

Uncovered branches:

Excluded branches:

Covered branches:

"if" / "when" / "else" condition on line 145:

145:        if (mr_settings_ena = CTU_CAN_DISABLED) then 
Evaluated toCountThreshold
BinTrue121791
BinFalse684063181

"case" / "with" / "select" choice on line 149:

149:            when s_bt_tseg1 => 
Choice ofCountThreshold
Bins_bt_tseg1342168201

"if" / "when" / "else" condition on line 150:

150:                if (segm_end = '1') then 
Evaluated toCountThreshold
BinTrue228003811
BinFalse114164391

"case" / "with" / "select" choice on line 153:

153:            when s_bt_tseg2 => 
Choice ofCountThreshold
Bins_bt_tseg2341781821

"if" / "when" / "else" condition on line 154:

154:                if (segm_end = '1') then 
Evaluated toCountThreshold
BinTrue227850301
BinFalse113931521

"case" / "with" / "select" choice on line 157:

157:            when s_bt_reset => 
Choice ofCountThreshold
Bins_bt_reset113161

"case" / "with" / "select" choice on line 175:

175:        when s_bt_reset => 
Choice ofCountThreshold
Bins_bt_reset200951

"if" / "when" / "else" condition on line 176:

176:            if (mr_settings_ena = CTU_CAN_ENABLED) then 
Evaluated toCountThreshold
BinTrue97151
BinFalse103801

"case" / "with" / "select" choice on line 180:

180:        when s_bt_tseg1 => 
Choice ofCountThreshold
Bins_bt_tseg1342196891

"if" / "when" / "else" condition on line 182:

182:            if (segm_end = '1') then 
Evaluated toCountThreshold
BinTrue228005021
BinFalse114191871

"case" / "with" / "select" choice on line 186:

186:        when s_bt_tseg2 => 
Choice ofCountThreshold
Bins_bt_tseg2341787131

"if" / "when" / "else" condition on line 188:

188:            if (segm_end = '1') then 
Evaluated toCountThreshold
BinTrue227850691
BinFalse113936441

"if" / "when" / "else" condition on line 200:

200:        if (rst_n = '0') then 
Evaluated toCountThreshold
BinTrue24225931
BinFalse10867135751

"if" / "when" / "else" condition on line 202:

202:        elsif (rising_edge(clk_sys)) then 
Evaluated toCountThreshold
BinTrue5433518071
BinFalse5433617681

"if" / "when" / "else" condition on line 203:

203:            if (bt_fsm_ce = '1') then 
Evaluated toCountThreshold
BinTrue227944331
BinFalse5205573741

"if" / "when" / "else" condition on line 209:

209:    bt_fsm_ce <= '1' when (next_state /= current_state) else 
Evaluated toCountThreshold
BinTrue456011461
BinFalse456007731

Uncovered toggles:

Excluded toggles:

Port:

 CLK_SYS
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 RST_N
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 MR_SETTINGS_ENA
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Port:

 SEGM_END
FromToCountThresholdExcluded due to
Bin0101Exclude file
Bin1001Exclude file

Covered toggles:

Port:

 IS_TSEG1
FromToCountThreshold
Bin01113995521
Bin10113995431

Port:

 IS_TSEG2
FromToCountThreshold
Bin01113932411
Bin10113948411

Port:

 RX_TRIG_REQ
FromToCountThreshold
Bin01228004021
Bin10228020031

Port:

 TX_TRIG_REQ
FromToCountThreshold
Bin01227943751
Bin10227959751

Signal:

 BT_FSM_CE
FromToCountThreshold
Bin01455991731
Bin10456007731

Uncovered expressions:

Excluded expressions:

Covered expressions:

"=" expression on line 145:

 mr_settings_ena = CTU_CAN_DISABLED 
Evaluated toCountThreshold
BinFalse684063181
BinTrue121791

"=" expression on line 150:

 segm_end = '1' 
Evaluated toCountThreshold
BinFalse114164391
BinTrue228003811

"=" expression on line 154:

 segm_end = '1' 
Evaluated toCountThreshold
BinFalse113931521
BinTrue227850301

"=" expression on line 176:

 mr_settings_ena = CTU_CAN_ENABLED 
Evaluated toCountThreshold
BinFalse103801
BinTrue97151

"=" expression on line 182:

 segm_end = '1' 
Evaluated toCountThreshold
BinFalse114191871
BinTrue228005021

"=" expression on line 188:

 segm_end = '1' 
Evaluated toCountThreshold
BinFalse113936441
BinTrue227850691

"=" expression on line 200:

 rst_n = '0' 
Evaluated toCountThreshold
BinFalse10867135751
BinTrue24225931

"=" expression on line 203:

 bt_fsm_ce = '1' 
Evaluated toCountThreshold
BinFalse5205573741
BinTrue227944331

"/=" expression on line 209:

 next_state /= current_state 
Evaluated toCountThreshold
BinFalse456007731
BinTrue456011461

Uncovered FSM states:

Excluded FSM states:

Covered FSM states:

"T_BIT_TIME" FSM on line 130:

130:    signal current_state    : t_bit_time; 
StateCountThreshold
BinS_BT_TSEG1113995521
BinS_BT_TSEG2113932411
BinS_BT_RESET80731

"T_BIT_TIME" FSM on line 131:

131:    signal next_state       : t_bit_time; 
StateCountThreshold
BinS_BT_TSEG1342010481
BinS_BT_TSEG2341935331
BinS_BT_RESET80731

Uncovered functional coverage:

Excluded functional coverage:

Covered functional coverage: