diff --git a/tb/shinTest/testcase/environment.py b/tb/shinTest/testcase/environment.py index 4ab019c..dfcc0fa 100644 --- a/tb/shinTest/testcase/environment.py +++ b/tb/shinTest/testcase/environment.py @@ -45,6 +45,20 @@ def bringup(): +genIFRwDataCode(2, 0x0, False, 1) +genIFRwDataCode(3, 0x0, False, 1) +genIFRwDataCode(4, 0x0, False, 1) + + +genMessageCode("--使能中断") + +genIFRwDataCode(0, 0x70, True, 4, [0x02, 0x00, 0x00, 0xf0]) + +genIFRwDataCode(1, 0x70, True, 4, [0x00, 0x00, 0x00, 0xf0]) + +genIFRwDataCode(2, 0x70, True, 4, [0x00, 0x00, 0x00, 0xf0]) + +genIFRwDataCode(3, 0x70, True, 4, [0x00, 0x00, 0x00, 0xf0]) + +genIFRwDataCode(4, 0x70, True, 4, [0x00, 0x00, 0x00, 0xf0]) + + +genMessageCode("--设置中断为脉冲模式") + +genIFRwDataCode(0, 0x7c, True, 2, [0x00, 0x81]) + +genIFRwDataCode(1, 0x7c, True, 2, [0x00, 0x81]) + +genIFRwDataCode(2, 0x7c, True, 2, [0x00, 0x81]) + +genIFRwDataCode(3, 0x7c, True, 2, [0x00, 0x81]) + +genIFRwDataCode(4, 0x7c, True, 2, [0x00, 0x81]) ) genPkt.gen("./generated/shin/%s.vh"%(gen_file_def, ), 1) @@ -117,20 +131,6 @@ def bringup(): +genIFRwDataCode(2, 0xc0, False, 4) +genIFRwDataCode(3, 0xc0, False, 4) +genIFRwDataCode(4, 0xc0, False, 4) - - +genMessageCode("--使能中断") - +genIFRwDataCode(0, 0x70, True, 4, [0x03, 0x00, 0x00, 0xf0]) - +genIFRwDataCode(1, 0x70, True, 4, [0x00, 0x00, 0x00, 0xf0]) - +genIFRwDataCode(2, 0x70, True, 4, [0x00, 0x00, 0x00, 0xf0]) - +genIFRwDataCode(3, 0x70, True, 4, [0x00, 0x00, 0x00, 0xf0]) - +genIFRwDataCode(4, 0x70, True, 4, [0x00, 0x00, 0x00, 0xf0]) - - +genMessageCode("--设置中断为脉冲模式") - +genIFRwDataCode(0, 0x7c, True, 2, [0x00, 0x81]) - +genIFRwDataCode(1, 0x7c, True, 2, [0x00, 0x81]) - +genIFRwDataCode(2, 0x7c, True, 2, [0x00, 0x81]) - +genIFRwDataCode(3, 0x7c, True, 2, [0x00, 0x81]) - +genIFRwDataCode(4, 0x7c, True, 2, [0x00, 0x81]) +genMessageCode("--清除中断") +genIFRwDataCode(0, 0x78, True, 4, [0xff, 0xff, 0xff, 0xff]) diff --git a/tb/shinTest/testcase_result/sys_bringup_result.log b/tb/shinTest/testcase_result/sys_bringup_result.log index 312fd7a..8736ffc 100644 --- a/tb/shinTest/testcase_result/sys_bringup_result.log +++ b/tb/shinTest/testcase_result/sys_bringup_result.log @@ -18,6 +18,16 @@ 16'h0000 8'h01 16'h0001 8'h02 16'h0000 8'h01 16'h0001 8'h02 16'h0000 8'h01 16'h0001 8'h02 +16'h0070 8'h00 16'h0004 8'h02 8'h00 8'h00 8'hf0 +16'h0070 8'h00 16'h0004 8'h00 8'h00 8'h00 8'hf0 +16'h0070 8'h00 16'h0004 8'h00 8'h00 8'h00 8'hf0 +16'h0070 8'h00 16'h0004 8'h00 8'h00 8'h00 8'hf0 +16'h0070 8'h00 16'h0004 8'h00 8'h00 8'h00 8'hf0 +16'h007c 8'h00 16'h0002 8'h00 8'h81 +16'h007c 8'h00 16'h0002 8'h00 8'h81 +16'h007c 8'h00 16'h0002 8'h00 8'h81 +16'h007c 8'h00 16'h0002 8'h00 8'h81 +16'h007c 8'h00 16'h0002 8'h00 8'h81 16'h0302 8'h00 16'h0002 8'h04 8'h00 16'h0306 8'h00 16'h0002 8'h04 8'h00 16'h1000 8'h00 16'h0004 8'h00 8'h01 8'h3f 8'hff @@ -47,16 +57,6 @@ 16'h00c0 8'h01 16'h0004 8'h08 8'h00 8'h03 8'h00 16'h00c0 8'h01 16'h0004 8'h08 8'h00 8'h04 8'h00 16'h00c0 8'h01 16'h0004 8'h00 8'h00 8'h00 8'h00 -16'h0070 8'h00 16'h0004 8'h03 8'h00 8'h00 8'hf0 -16'h0070 8'h00 16'h0004 8'h00 8'h00 8'h00 8'hf0 -16'h0070 8'h00 16'h0004 8'h00 8'h00 8'h00 8'hf0 -16'h0070 8'h00 16'h0004 8'h00 8'h00 8'h00 8'hf0 -16'h0070 8'h00 16'h0004 8'h00 8'h00 8'h00 8'hf0 -16'h007c 8'h00 16'h0002 8'h00 8'h81 -16'h007c 8'h00 16'h0002 8'h00 8'h81 -16'h007c 8'h00 16'h0002 8'h00 8'h81 -16'h007c 8'h00 16'h0002 8'h00 8'h81 -16'h007c 8'h00 16'h0002 8'h00 8'h81 16'h0078 8'h00 16'h0004 8'hff 8'hff 8'hff 8'hff 16'h0078 8'h00 16'h0004 8'hff 8'hff 8'hff 8'hff 16'h0078 8'h00 16'h0004 8'hff 8'hff 8'hff 8'hff