增加新的寄存器测试用例

This commit is contained in:
2025-09-11 10:36:30 +08:00
parent 139035e79e
commit 497c248507
6 changed files with 243 additions and 37 deletions

View File

@@ -30,11 +30,11 @@ def bringup():
+genIFRwDataCode(3, 0x78, True, 4, [0xff, 0xff, 0xff, 0xff])
+genIFRwDataCode(4, 0x78, True, 4, [0xff, 0xff, 0xff, 0xff])
+genMessageCode("--设置合适的底层编码4b5b or 8b10b")
+using_proper_code(0)
+using_proper_code(1)
+using_proper_code(2)
+using_proper_code(3)
+using_proper_code(4)
+using_proper_transcode(0)
+using_proper_transcode(1)
+using_proper_transcode(2)
+using_proper_transcode(3)
+using_proper_transcode(4)
)
main_dev = [0x01, ]
@@ -416,7 +416,7 @@ def set_using_8b10b(isUsing8b10b):
global global_using_8b10b
global_using_8b10b = isUsing8b10b
def using_proper_code(dev):
def using_proper_transcode(dev):
global global_using_8b10b
if global_using_8b10b:
return genIFRwDataCode(dev, 0x004c, True, 2, [0x1, 0x59], wlog = False)