File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,19 @@ def verify_t_value(self, t_value):
145
145
return True , f"T value ({ t_value } ) is valid and bit 0 is clear."
146
146
else :
147
147
return False , f"Bit 0 is not clear. T value ({ t_value } )"
148
+
149
+ # Check that the value can be either 2, 4 or 6 depending on whether
150
+ # DUT is a TCPClient, TCPServer or both.
151
+ if self .check_pics ("MCORE.SC.TCP" ):
152
+ if (T_int & 0x04 != 0 ):
153
+ return True , f"T value ({ t_value } ) represents valid TCP support info."
154
+ else :
155
+ return False , f"T value ({ t_value } ) does not have TCP bits set even though the MCORE.SC.TCP PICS indicates it is required."
156
+ else :
157
+ if (T_int & 0x04 != 0 ):
158
+ return False , f"T value ({ t_value } ) has the TCP bits set even though the MCORE.SC.TCP PICS is not set."
159
+ else :
160
+ return True , f"T value ({ t_value } ) is valid."
148
161
except ValueError :
149
162
return False , f"T value ({ t_value } ) is not a valid integer"
150
163
You can’t perform that action at this time.
0 commit comments