Line Coverage for Module :
usbdev_iomux
| Line No. | Total | Covered | Percent |
TOTAL | | 16 | 16 | 100.00 |
CONT_ASSIGN | 73 | 1 | 1 | 100.00 |
CONT_ASSIGN | 74 | 1 | 1 | 100.00 |
CONT_ASSIGN | 75 | 1 | 1 | 100.00 |
CONT_ASSIGN | 76 | 1 | 1 | 100.00 |
CONT_ASSIGN | 77 | 1 | 1 | 100.00 |
CONT_ASSIGN | 78 | 1 | 1 | 100.00 |
CONT_ASSIGN | 79 | 1 | 1 | 100.00 |
CONT_ASSIGN | 80 | 1 | 1 | 100.00 |
CONT_ASSIGN | 81 | 1 | 1 | 100.00 |
ALWAYS | 88 | 7 | 7 | 100.00 |
72 // USB pins sense
73 1/1 assign hw2reg_sense_o.rx_dp_i.d = usb_rx_dp_o;
Tests: T1 T2 T3
74 1/1 assign hw2reg_sense_o.rx_dn_i.d = usb_rx_dn_o;
Tests: T1 T2 T3
75 1/1 assign hw2reg_sense_o.rx_d_i.d = usb_rx_d_o;
Tests: T1 T2 T3
76 1/1 assign hw2reg_sense_o.pwr_sense.d = usb_pwr_sense_o;
Tests: T1 T2 T3
77 1/1 assign hw2reg_sense_o.tx_dp_o.d = usb_tx_dp_i;
Tests: T1 T2 T3
78 1/1 assign hw2reg_sense_o.tx_dn_o.d = usb_tx_dn_i;
Tests: T1 T2 T3
79 1/1 assign hw2reg_sense_o.tx_d_o.d = usb_tx_d_i;
Tests: T1 T2 T3
80 1/1 assign hw2reg_sense_o.tx_se0_o.d = usb_tx_se0_i;
Tests: T1 T2 T3
81 1/1 assign hw2reg_sense_o.tx_oe_o.d = usb_tx_oe_i;
Tests: T1 T2 T3
82
83
84 ////////////////////////
85 // USB output pin mux //
86 ////////////////////////
87 always_comb begin : proc_drive_out
88 1/1 if (reg2hw_drive_i.en.q) begin
Tests: T1 T2 T3
89 // Override from registers
90 1/1 usb_dp_pullup_en_o = reg2hw_drive_i.dp_pullup_en_o.q;
Tests: T24 T25 T26
91 1/1 usb_dn_pullup_en_o = reg2hw_drive_i.dn_pullup_en_o.q;
Tests: T24 T25 T26
92 1/1 usb_rx_enable_o = reg2hw_drive_i.rx_enable_o.q;
Tests: T24 T25 T26
93 end else begin
94 // Signals from the peripheral core
95 1/1 usb_dp_pullup_en_o = usb_dp_pullup_en_i;
Tests: T1 T2 T3
96 1/1 usb_dn_pullup_en_o = usb_dn_pullup_en_i;
Tests: T1 T2 T3
97 1/1 usb_rx_enable_o = usb_rx_enable_i;
Tests: T1 T2 T3
Branch Coverage for Module :
usbdev_iomux
| Line No. | Total | Covered | Percent |
Branches |
|
2 |
2 |
100.00 |
IF |
88 |
2 |
2 |
100.00 |
88 if (reg2hw_drive_i.en.q) begin
-1-
89 // Override from registers
90 usb_dp_pullup_en_o = reg2hw_drive_i.dp_pullup_en_o.q;
==>
91 usb_dn_pullup_en_o = reg2hw_drive_i.dn_pullup_en_o.q;
92 usb_rx_enable_o = reg2hw_drive_i.rx_enable_o.q;
93 end else begin
94 // Signals from the peripheral core
95 usb_dp_pullup_en_o = usb_dp_pullup_en_i;
==>
Branches:
-1- | Status | Tests |
1 |
Covered |
T24,T25,T26 |
0 |
Covered |
T1,T2,T3 |