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 @@ -152,6 +152,19 @@ def verify_t_value(self, t_value):
152
152
return True , f"T value ({ t_value } ) is valid and bit 0 is clear."
153
153
else :
154
154
return False , f"Bit 0 is not clear. T value ({ t_value } )"
155
+
156
+ # Check that the value can be either 2, 4 or 6 depending on whether
157
+ # DUT is a TCPClient, TCPServer or both.
158
+ if self .check_pics ("MCORE.SC.TCP" ):
159
+ if (T_int & 0x04 != 0 ):
160
+ return True , f"T value ({ t_value } ) represents valid TCP support info."
161
+ else :
162
+ return False , f"T value ({ t_value } ) does not have TCP bits set even though the MCORE.SC.TCP PICS indicates it is required."
163
+ else :
164
+ if (T_int & 0x04 != 0 ):
165
+ return False , f"T value ({ t_value } ) has the TCP bits set even though the MCORE.SC.TCP PICS is not set."
166
+ else :
167
+ return True , f"T value ({ t_value } ) is valid."
155
168
except ValueError :
156
169
return False , f"T value ({ t_value } ) is not a valid integer"
157
170
You can’t perform that action at this time.
0 commit comments