修复小BUG
This commit is contained in:
parent
18f5c05019
commit
21fe0f8a56
|
|
@ -1 +1 @@
|
|||
FourChZCaseGenerator.ipynb
|
||||
FourChZEnvelopeGenerator.py
|
||||
|
|
@ -6,8 +6,8 @@
|
|||
"metadata": {
|
||||
"collapsed": true,
|
||||
"ExecuteTime": {
|
||||
"end_time": "2026-07-29T02:47:18.264723Z",
|
||||
"start_time": "2026-07-29T02:47:18.172357Z"
|
||||
"end_time": "2026-07-29T03:01:52.429375Z",
|
||||
"start_time": "2026-07-29T03:01:52.309686Z"
|
||||
}
|
||||
},
|
||||
"source": [
|
||||
|
|
@ -85,13 +85,13 @@
|
|||
]
|
||||
}
|
||||
],
|
||||
"execution_count": 10
|
||||
"execution_count": 7
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2026-07-29T02:47:24.889706Z",
|
||||
"start_time": "2026-07-29T02:47:24.774951Z"
|
||||
"end_time": "2026-07-29T03:02:19.226590Z",
|
||||
"start_time": "2026-07-29T03:02:19.100355Z"
|
||||
}
|
||||
},
|
||||
"cell_type": "code",
|
||||
|
|
@ -218,13 +218,13 @@
|
|||
]
|
||||
}
|
||||
],
|
||||
"execution_count": 11
|
||||
"execution_count": 10
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2026-07-29T02:19:42.215024Z",
|
||||
"start_time": "2026-07-29T02:19:42.192273Z"
|
||||
"end_time": "2026-07-29T03:17:00.368454Z",
|
||||
"start_time": "2026-07-29T03:17:00.270114Z"
|
||||
}
|
||||
},
|
||||
"cell_type": "code",
|
||||
|
|
@ -298,13 +298,13 @@
|
|||
]
|
||||
}
|
||||
],
|
||||
"execution_count": 4
|
||||
"execution_count": 11
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2026-07-28T09:26:33.012700Z",
|
||||
"start_time": "2026-07-28T09:26:32.989301Z"
|
||||
"end_time": "2026-07-29T03:17:02.737072Z",
|
||||
"start_time": "2026-07-29T03:17:02.628758Z"
|
||||
}
|
||||
},
|
||||
"cell_type": "code",
|
||||
|
|
@ -372,20 +372,20 @@
|
|||
"text": [
|
||||
"执行 config_chip_reg\n",
|
||||
"执行了 instruction_config\n",
|
||||
"生成文件路径:D:\\MyDocument\\工作\\Z芯片的case生成器\\4ch-Z_Generator\\gen_cases\\General\\RAMP_MCU_STEP_HEX.txt\n",
|
||||
"生成文件路径:D:\\MyDocument\\工作\\Z芯片的case生成器\\Chip_Case_Generator\\4ch-Z_Generator\\gen_cases\\RAMP\\RAMP_MCU_STEP_HEX.txt\n",
|
||||
"执行 config_chip_reg\n",
|
||||
"执行了 instruction_config\n",
|
||||
"生成文件路径:D:\\MyDocument\\工作\\Z芯片的case生成器\\4ch-Z_Generator\\gen_cases\\General\\RAMP_MCU_STEP_HEX.txt\n",
|
||||
"生成文件路径:D:\\MyDocument\\工作\\Z芯片的case生成器\\Chip_Case_Generator\\4ch-Z_Generator\\gen_cases\\RAMP\\RAMP_MCU_STEP_HEX.txt\n",
|
||||
"执行 config_chip_reg\n",
|
||||
"执行了 instruction_config\n",
|
||||
"生成文件路径:D:\\MyDocument\\工作\\Z芯片的case生成器\\4ch-Z_Generator\\gen_cases\\General\\RAMP_MCU_STEP_HEX.txt\n",
|
||||
"生成文件路径:D:\\MyDocument\\工作\\Z芯片的case生成器\\Chip_Case_Generator\\4ch-Z_Generator\\gen_cases\\RAMP\\RAMP_MCU_STEP_HEX.txt\n",
|
||||
"执行 config_chip_reg\n",
|
||||
"执行了 instruction_config\n",
|
||||
"生成文件路径:D:\\MyDocument\\工作\\Z芯片的case生成器\\4ch-Z_Generator\\gen_cases\\General\\RAMP_MCU_STEP_HEX.txt\n"
|
||||
"生成文件路径:D:\\MyDocument\\工作\\Z芯片的case生成器\\Chip_Case_Generator\\4ch-Z_Generator\\gen_cases\\RAMP\\RAMP_MCU_STEP_HEX.txt\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"execution_count": 26
|
||||
"execution_count": 12
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
|
|
|
|||
|
|
@ -11,11 +11,6 @@ class FourChZChipConfig(object):
|
|||
self.mk = mk_instance
|
||||
self.FolderName = kwargs.get('FolderName')
|
||||
self.config_file = kwargs.get('config_file')
|
||||
self._setup_environment()
|
||||
|
||||
def _setup_environment(self):
|
||||
if self.FolderName:
|
||||
os.makedirs(self.FolderName, exist_ok=True)
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -0,0 +1,54 @@
|
|||
{
|
||||
"ch0": {
|
||||
"channel": 0,
|
||||
"chip_mode": "RAMP",
|
||||
"ramp_ctrl": "MCU",
|
||||
"instr_type": "ramp_step",
|
||||
"ensemble_num": 2,
|
||||
"param_num": 2,
|
||||
"height": [128, 256],
|
||||
"step_time": [50, 50],
|
||||
"FolderName": "RAMP",
|
||||
"CaseName": "RAMP_MCU_STEP",
|
||||
"config_file": "D:\\MyDocument\\工作\\Z芯片的case生成器\\Chip_Case_Generator\\4ch-Z_Generator\\gen_cases\\RAMP\\RAMP_MCU_STEP_HEX.txt"
|
||||
},
|
||||
"ch1": {
|
||||
"channel": 1,
|
||||
"chip_mode": "RAMP",
|
||||
"ramp_ctrl": "MCU",
|
||||
"instr_type": "ramp_step",
|
||||
"ensemble_num": 2,
|
||||
"param_num": 2,
|
||||
"height": [128, 256],
|
||||
"step_time": [50, 50],
|
||||
"FolderName": "RAMP",
|
||||
"CaseName": "RAMP_MCU_STEP",
|
||||
"config_file": "D:\\MyDocument\\工作\\Z芯片的case生成器\\Chip_Case_Generator\\4ch-Z_Generator\\gen_cases\\RAMP\\RAMP_MCU_STEP_HEX.txt"
|
||||
},
|
||||
"ch2": {
|
||||
"channel": 2,
|
||||
"chip_mode": "RAMP",
|
||||
"ramp_ctrl": "MCU",
|
||||
"instr_type": "ramp_step",
|
||||
"ensemble_num": 2,
|
||||
"param_num": 2,
|
||||
"height": [128, 256],
|
||||
"step_time": [50, 50],
|
||||
"FolderName": "RAMP",
|
||||
"CaseName": "RAMP_MCU_STEP",
|
||||
"config_file": "D:\\MyDocument\\工作\\Z芯片的case生成器\\Chip_Case_Generator\\4ch-Z_Generator\\gen_cases\\RAMP\\RAMP_MCU_STEP_HEX.txt"
|
||||
},
|
||||
"ch3": {
|
||||
"channel": 3,
|
||||
"chip_mode": "RAMP",
|
||||
"ramp_ctrl": "MCU",
|
||||
"instr_type": "ramp_step",
|
||||
"ensemble_num": 2,
|
||||
"param_num": 2,
|
||||
"height": [128, 256],
|
||||
"step_time": [50, 50],
|
||||
"FolderName": "RAMP",
|
||||
"CaseName": "RAMP_MCU_STEP",
|
||||
"config_file": "D:\\MyDocument\\工作\\Z芯片的case生成器\\Chip_Case_Generator\\4ch-Z_Generator\\gen_cases\\RAMP\\RAMP_MCU_STEP_HEX.txt"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,204 @@
|
|||
00300108
|
||||
00100004
|
||||
00000008
|
||||
|
||||
00300124
|
||||
00100004
|
||||
40000000
|
||||
|
||||
002000dc
|
||||
00100028
|
||||
00000000
|
||||
80000000
|
||||
00000002
|
||||
00000002
|
||||
00800000
|
||||
00000032
|
||||
00006400
|
||||
01000000
|
||||
00000032
|
||||
00003200
|
||||
|
||||
00100000
|
||||
0010005c
|
||||
001000b7
|
||||
00200137
|
||||
0dc0af83
|
||||
0bf12c23
|
||||
0e00ae03
|
||||
00c00313
|
||||
0e80a383
|
||||
fff38393
|
||||
00008413
|
||||
0e40a283
|
||||
fff28293
|
||||
0ec42f83
|
||||
0f042f03
|
||||
0f442e83
|
||||
00640433
|
||||
0de12023
|
||||
0bf12e23
|
||||
0dc12223
|
||||
fe2e800b
|
||||
fc029ee3
|
||||
fc0396e3
|
||||
0c012223
|
||||
0000002b
|
||||
|
||||
00500000
|
||||
00100004
|
||||
00000000
|
||||
|
||||
00900108
|
||||
00100004
|
||||
00000008
|
||||
|
||||
00900124
|
||||
00100004
|
||||
40000000
|
||||
|
||||
008000dc
|
||||
00100028
|
||||
00000000
|
||||
80000000
|
||||
00000002
|
||||
00000002
|
||||
00800000
|
||||
00000032
|
||||
00006400
|
||||
01000000
|
||||
00000032
|
||||
00003200
|
||||
|
||||
00700000
|
||||
0010005c
|
||||
001000b7
|
||||
00200137
|
||||
0dc0af83
|
||||
0bf12c23
|
||||
0e00ae03
|
||||
00c00313
|
||||
0e80a383
|
||||
fff38393
|
||||
00008413
|
||||
0e40a283
|
||||
fff28293
|
||||
0ec42f83
|
||||
0f042f03
|
||||
0f442e83
|
||||
00640433
|
||||
0de12023
|
||||
0bf12e23
|
||||
0dc12223
|
||||
fe2e800b
|
||||
fc029ee3
|
||||
fc0396e3
|
||||
0c012223
|
||||
0000002b
|
||||
|
||||
00b00000
|
||||
00100004
|
||||
00000000
|
||||
|
||||
00f00108
|
||||
00100004
|
||||
00000008
|
||||
|
||||
00f00124
|
||||
00100004
|
||||
40000000
|
||||
|
||||
00e000dc
|
||||
00100028
|
||||
00000000
|
||||
80000000
|
||||
00000002
|
||||
00000002
|
||||
00800000
|
||||
00000032
|
||||
00006400
|
||||
01000000
|
||||
00000032
|
||||
00003200
|
||||
|
||||
00d00000
|
||||
0010005c
|
||||
001000b7
|
||||
00200137
|
||||
0dc0af83
|
||||
0bf12c23
|
||||
0e00ae03
|
||||
00c00313
|
||||
0e80a383
|
||||
fff38393
|
||||
00008413
|
||||
0e40a283
|
||||
fff28293
|
||||
0ec42f83
|
||||
0f042f03
|
||||
0f442e83
|
||||
00640433
|
||||
0de12023
|
||||
0bf12e23
|
||||
0dc12223
|
||||
fe2e800b
|
||||
fc029ee3
|
||||
fc0396e3
|
||||
0c012223
|
||||
0000002b
|
||||
|
||||
01100000
|
||||
00100004
|
||||
00000000
|
||||
|
||||
01500108
|
||||
00100004
|
||||
00000008
|
||||
|
||||
01500124
|
||||
00100004
|
||||
40000000
|
||||
|
||||
014000dc
|
||||
00100028
|
||||
00000000
|
||||
80000000
|
||||
00000002
|
||||
00000002
|
||||
00800000
|
||||
00000032
|
||||
00006400
|
||||
01000000
|
||||
00000032
|
||||
00003200
|
||||
|
||||
01300000
|
||||
0010005c
|
||||
001000b7
|
||||
00200137
|
||||
0dc0af83
|
||||
0bf12c23
|
||||
0e00ae03
|
||||
00c00313
|
||||
0e80a383
|
||||
fff38393
|
||||
00008413
|
||||
0e40a283
|
||||
fff28293
|
||||
0ec42f83
|
||||
0f042f03
|
||||
0f442e83
|
||||
00640433
|
||||
0de12023
|
||||
0bf12e23
|
||||
0dc12223
|
||||
fe2e800b
|
||||
fc029ee3
|
||||
fc0396e3
|
||||
0c012223
|
||||
0000002b
|
||||
|
||||
01700000
|
||||
00100004
|
||||
00000000
|
||||
|
||||
|
|
@ -1 +1,6 @@
|
|||
{"ch0":{"channel":0,"chip_mode":"RAMP","ramp_ctrl":"SPI","fixed_enable":true,"fixed_value":22767,"height":512,"step_time":34,"FolderName":"RAMP","CaseName":"RAMP_SPI","config_file":"D:\\MyDocument\\工作\\Z芯片的case生成器\\Chip_Case_Generator\\4ch-Z_Generator\\gen_cases\\RAMP\\RAMP_SPI_HEX.txt"},"ch1":{"channel":1,"chip_mode":"RAMP","ramp_ctrl":"SPI","fixed_enable":true,"fixed_value":22767,"height":512,"step_time":34,"FolderName":"RAMP","CaseName":"RAMP_SPI","config_file":"D:\\MyDocument\\工作\\Z芯片的case生成器\\Chip_Case_Generator\\4ch-Z_Generator\\gen_cases\\RAMP\\RAMP_SPI_HEX.txt"},"ch2":{"channel":2,"chip_mode":"RAMP","ramp_ctrl":"SPI","fixed_enable":true,"fixed_value":22767,"height":512,"step_time":34,"FolderName":"RAMP","CaseName":"RAMP_SPI","config_file":"D:\\MyDocument\\工作\\Z芯片的case生成器\\Chip_Case_Generator\\4ch-Z_Generator\\gen_cases\\RAMP\\RAMP_SPI_HEX.txt"},"ch3":{"channel":3,"chip_mode":"RAMP","ramp_ctrl":"SPI","fixed_enable":true,"fixed_value":22767,"height":512,"step_time":34,"FolderName":"RAMP","CaseName":"RAMP_SPI","config_file":"D:\\MyDocument\\工作\\Z芯片的case生成器\\Chip_Case_Generator\\4ch-Z_Generator\\gen_cases\\RAMP\\RAMP_SPI_HEX.txt"}}
|
||||
{
|
||||
"ch0": { "channel": 0, "chip_mode": "RAMP", "ramp_ctrl": "SPI", "fixed_enable": true, "fixed_value": 22767, "height": 512, "step_time": 34, "FolderName": "RAMP", "CaseName": "RAMP_SPI", "config_file": "D:\\MyDocument\\工作\\Z芯片的case生成器\\Chip_Case_Generator\\4ch-Z_Generator\\gen_cases\\RAMP\\RAMP_SPI_HEX.txt" },
|
||||
"ch1": { "channel": 1, "chip_mode": "RAMP", "ramp_ctrl": "SPI", "fixed_enable": true, "fixed_value": 22767, "height": 512, "step_time": 34, "FolderName": "RAMP", "CaseName": "RAMP_SPI", "config_file": "D:\\MyDocument\\工作\\Z芯片的case生成器\\Chip_Case_Generator\\4ch-Z_Generator\\gen_cases\\RAMP\\RAMP_SPI_HEX.txt" },
|
||||
"ch2": { "channel": 2, "chip_mode": "RAMP", "ramp_ctrl": "SPI", "fixed_enable": true, "fixed_value": 22767, "height": 512, "step_time": 34, "FolderName": "RAMP", "CaseName": "RAMP_SPI", "config_file": "D:\\MyDocument\\工作\\Z芯片的case生成器\\Chip_Case_Generator\\4ch-Z_Generator\\gen_cases\\RAMP\\RAMP_SPI_HEX.txt" },
|
||||
"ch3": { "channel": 3, "chip_mode": "RAMP", "ramp_ctrl": "SPI", "fixed_enable": true, "fixed_value": 22767, "height": 512, "step_time": 34, "FolderName": "RAMP", "CaseName": "RAMP_SPI", "config_file": "D:\\MyDocument\\工作\\Z芯片的case生成器\\Chip_Case_Generator\\4ch-Z_Generator\\gen_cases\\RAMP\\RAMP_SPI_HEX.txt" }
|
||||
}
|
||||
|
|
@ -10,14 +10,6 @@
|
|||
00100004
|
||||
80000000
|
||||
|
||||
00500000
|
||||
00100004
|
||||
00000000
|
||||
|
||||
00100000
|
||||
00100004
|
||||
0000002b
|
||||
|
||||
00900108
|
||||
00100004
|
||||
00000008
|
||||
|
|
@ -30,14 +22,6 @@
|
|||
00100004
|
||||
80000000
|
||||
|
||||
00b00000
|
||||
00100004
|
||||
00000000
|
||||
|
||||
00700000
|
||||
00100004
|
||||
0000002b
|
||||
|
||||
00f00108
|
||||
00100004
|
||||
00000008
|
||||
|
|
@ -50,14 +34,6 @@
|
|||
00100004
|
||||
80000000
|
||||
|
||||
01100000
|
||||
00100004
|
||||
00000000
|
||||
|
||||
00d00000
|
||||
00100004
|
||||
0000002b
|
||||
|
||||
01500108
|
||||
00100004
|
||||
00000008
|
||||
|
|
@ -70,11 +46,3 @@
|
|||
00100004
|
||||
80000000
|
||||
|
||||
01700000
|
||||
00100004
|
||||
00000000
|
||||
|
||||
01300000
|
||||
00100004
|
||||
0000002b
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue