Files

345 lines
18 KiB
Plaintext
Raw Permalink Normal View History

2026-05-22 10:02:42 +08:00
---------------custom config--------------
run:
mode: autoline
save:
en: True
pub:
prefix: SimpleSPI
subdir: MyExperimentsSimple
gpt:
model: qwen-max
rtlgen_model: qwen-max
autoline:
result_path: results/myproject_simple_spi
cga:
enabled: True
max_iter: 15
target_coverage: 85.0
probset:
path: data/myproject/spi_controller_simple.jsonl
mutant_path: None
more_info_paths: []
only: ['spi_controller_simple']
promptscript: pychecker
timeout: 300
save_compile: False
debug:
max: 3
itermax: 10
update_desc: False
TBcheck:
discrim_mode: col_70_wrong_row_25_correct
------------------------------------------
------config info (custom + default)------
run:
version: 2.0
author: Ruidi Qiu - Technical University of Munich
time: 20260410_184133
custom_path: config/myproject_simple_spi.yaml
mode: autoline
hostname: localhost
pid: 633505
pyversion: 3.12.3 (main, Mar 3 2026, 12:15:18) [GCC 13.3.0]
save:
en: True
root: saves/0406~0412/MyExperimentsSimple/SimpleSPI_20260410_184133/
pub:
prefix: SimpleSPI
dir: saves/0406~0412/
subdir: MyExperimentsSimple/
log:
en: True
dir: logs/
notes: None
cfg_pmode: iwantall
debug_en: False
level: TRACE
message:
en: True
dir: messages/
format: json
iverilog:
en: True
subdir: ivcode_nodebug
load:
prompt:
path: config/initial_prompts/prompt1.txt
pick_idx: []
stage_template:
path: config/templates/stage_template0301.txt
gpt:
model: qwen-max
key_path: config/key_API.json
temperature: None
json_mode: False
chatgpt:
start_form: chat
one_time_talk: False
rtlgen_model: qwen-max
iverilog:
dir:
task_id:
autoline:
result_path: results/myproject_simple_spi
cga:
enabled: True
max_iter: 15
target_coverage: 85.0
probset:
path: data/myproject/spi_controller_simple.jsonl
mutant_path: None
gptgenRTL_path: None
more_info_paths: []
only: ['spi_controller_simple']
exclude: []
exclude_json: None
filter: [{}]
checklist:
max: 3
debug:
max: 3
reboot: 1
py_rollback: 2
onlyrun: None
promptscript: pychecker
timeout: 300
TBcheck:
rtl_num: 20
correct_max: 3
discrim_mode: col_70_wrong_row_25_correct
correct_mode: naive
rtl_compens_en: True
rtl_compens_max_iter: 3
itermax: 10
update_desc: False
save_compile: False
save_finalcodes: True
error_interruption: False
_initialized: True
------------------------------------------
--------------default config--------------
run:
version: 2.0
author: Ruidi Qiu - Technical University of Munich
time: None
custom_path: None
mode: qwen-max
save:
en: True
root: None
pub:
prefix: None
dir: saves/$weekrange$/
subdir:
log:
en: True
dir: logs/
notes: None
cfg_pmode: iwantall
debug_en: False
level: TRACE
message:
en: True
dir: messages/
format: json
iverilog:
en: True
subdir: ivcode_nodebug
load:
prompt:
path: config/initial_prompts/prompt1.txt
pick_idx: []
stage_template:
path: config/templates/stage_template0301.txt
gpt:
model: 4o
key_path: config/key_API.json
temperature: None
json_mode: False
chatgpt:
start_form: chat
one_time_talk: False
rtlgen_model: None
iverilog:
dir:
task_id:
autoline:
result_path: results
cga:
enabled: True
max_iter: 10
target_coverage: 100.0
probset:
path: None
mutant_path: None
gptgenRTL_path: None
more_info_paths: []
only: ['lemmings3', 'lemmings4', 'ece241_2013_q8', '2014_q3fsm', 'm2014_q6', 'review2015_fsm', 'rule110', 'fsm_ps2']
exclude: []
exclude_json: None
filter: [{}]
checklist:
max: 3
debug:
max: 5
reboot: 1
py_rollback: 2
onlyrun: None
promptscript: None
timeout: 300
TBcheck:
rtl_num: 20
correct_max: 3
discrim_mode: col_full_wrong
correct_mode: naive
rtl_compens_en: True
rtl_compens_max_iter: 3
itermax: 10
update_desc: False
save_compile: True
save_finalcodes: True
error_interruption: False
------------------------------------------
2026-04-10 18:41:33 | INFO | all configurations are loaded, starting the main process...
2026-04-10 18:41:33 | INFO |
2026-04-10 18:41:33 | INFO | ######################### task 1/1 [spi_controller_simple] #########################
2026-04-10 18:42:03 | INFO | [spi_controller_simple] [TBgen] stage_0 ends (30.45s used)
2026-04-10 18:42:30 | INFO | [spi_controller_simple] [TBgen] stage_1 ends (27.12s used)
2026-04-10 18:43:34 | INFO | [spi_controller_simple] [TBgen] stage_2 ends (63.70s used)
2026-04-10 18:44:10 | INFO | [spi_controller_simple] [TBgen] stage_3 ends (35.55s used)
2026-04-10 18:46:28 | INFO | [spi_controller_simple] [TBgen] stage_4 ends (138.23s used)
2026-04-10 18:46:28 | INFO | [spi_controller_simple] [TBgen] stage_checklist ends (0.00s used)
2026-04-10 20:05:32 | INFO | [spi_controller_simple] [TBgen] stage_4b ends (4744.53s used)
2026-04-10 20:06:16 | INFO | [spi_controller_simple] [TBgen] stage_5 ends (44.08s used)
2026-04-10 20:06:16 | INFO | [spi_controller_simple]
2026-04-10 20:06:16 | INFO | [spi_controller_simple] [TBsim] iverilog compilation : passed!
2026-04-10 20:06:17 | ERROR | [spi_controller_simple] Error when running TBsim, iter: 1. Message: [Errno 2] No such file or directory: 'saves/0406~0412/MyExperimentsSimple/SimpleSPI_20260410_184133/spi_controller_simple/1_1_TBgen/TBgen_codes/TBout.txt' | location: autoline/TB_autoline.py, func: run_stages_core, line: 361 | caller: location: autoline/TB_autoline.py, func: run_stages, line: 317
2026-04-10 20:06:17 | WARNING | [spi_controller_simple] ⚠️ Pipeline interrupted. Cooling down for 15s to avoid API Rate Limit... | location: autoline/TB_autoline.py, func: run_stages_core, line: 366 | caller: location: autoline/TB_autoline.py, func: run_stages, line: 317
2026-04-10 20:07:02 | INFO | [spi_controller_simple] [TBgen] stage_0 ends (27.11s used)
2026-04-10 20:07:31 | INFO | [spi_controller_simple] [TBgen] stage_1 ends (29.45s used)
2026-04-10 20:08:34 | INFO | [spi_controller_simple] [TBgen] stage_2 ends (62.65s used)
2026-04-10 20:09:21 | INFO | [spi_controller_simple] [TBgen] stage_3 ends (47.59s used)
2026-04-10 20:10:56 | INFO | [spi_controller_simple] [TBgen] stage_4 ends (95.11s used)
2026-04-10 20:10:56 | INFO | [spi_controller_simple] [TBgen] stage_checklist ends (0.00s used)
2026-04-10 20:25:32 | INFO | [spi_controller_simple] [TBgen] stage_4b ends (875.32s used)
2026-04-10 20:26:19 | INFO | [spi_controller_simple] [TBgen] stage_5 ends (47.23s used)
2026-04-10 20:26:19 | INFO | [spi_controller_simple]
2026-04-10 20:26:19 | INFO | [spi_controller_simple] [TBsim] iverilog compilation : passed!
2026-04-10 20:26:19 | INFO | [spi_controller_simple] [TBsim] python simulation : passed!
2026-04-10 20:26:19 | INFO | [spi_controller_simple] [TBsim] TBsim finished : True!
2026-04-10 20:26:19 | INFO | [spi_controller_simple]
2026-04-10 20:26:19 | INFO | [spi_controller_simple] rtl list not found, generating naive rtls for testbench checking
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: missing_assignment | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: single_bit_flip | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: single_bit_flip | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: bit_index_shift | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: stuck_at_state | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: single_bit_flip | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: tiny_offset | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: single_bit_flip | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: invert_bit | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: bit_index_shift | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: invert_single_signal | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: invert_counter | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: bit_index_shift | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: invert_counter | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: tiny_offset | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: invert_single_signal | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: invert_single_signal | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: tiny_offset | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: bit_index_shift | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | DEBUG | [spi_controller_simple] Applied mutation: single_bit_flip | location: autoline/rtl_mutator.py, func: _safe_log, line: 33
2026-04-10 20:26:19 | INFO | [spi_controller_simple] 20 mutation-based RTLs generated (from reference RTL)
2026-04-10 20:26:19 | INFO | [spi_controller_simple] [TBcheck] [discriminator] Plan 2: Capturing Reference RTL outputs as ground truth...
2026-04-10 20:26:19 | INFO | [spi_controller_simple] [TBcheck] [discriminator] Capturing Reference RTL outputs as ground truth...
2026-04-10 20:26:19 | INFO | [spi_controller_simple] [TBcheck] [discriminator] Reference RTL check results: failed scenarios = [1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7], passed scenarios = []
2026-04-10 20:26:19 | INFO | [spi_controller_simple] [TBcheck] [discriminator] Captured Reference RTL outputs for 7 scenarios
2026-04-10 20:26:19 | INFO | [spi_controller_simple] [TBcheck] [discriminator] Plan 2: Captured outputs for 7 scenarios
2026-04-10 20:26:19 | INFO | [spi_controller_simple] [TBcheck] [discriminator] Discriminating the testbench, NO.0 discrimination
2026-04-10 20:26:20 | POSITIVE | [spi_controller_simple] [TBcheck] [discriminator] TB_discriminating finished, TB passed, wrong scenarios: [], scenario pass ratio: 0/7
2026-04-10 20:26:20 | INFO | [spi_controller_simple] [TBcheck] Testbench passed the funccheck
2026-04-10 20:26:20 | INFO | [spi_controller_simple] [TBcheck] self funccheck finished. Next Action: [pass]
2026-04-10 20:26:20 | INFO | [spi_controller_simple]
2026-04-10 20:26:20 | INFO | [spi_controller_simple] [spi_controller_simple] Starting Coverage-Guided Agent (CGA)...
2026-04-10 20:26:20 | INFO | [spi_controller_simple] [spi_controller_simple] Running Semantic Analysis (Layer 0)...
2026-04-10 20:26:20 | INFO | [spi_controller_simple] FSM detected: state (4 states)
2026-04-10 20:26:20 | INFO | [spi_controller_simple] Total function points identified: 8
2026-04-10 20:26:20 | INFO | [spi_controller_simple] Energy allocator initialized: 8 targets
2026-04-10 20:26:20 | INFO | [spi_controller_simple] Diversity injector initialized with history file: saves/0406~0412/MyExperimentsSimple/SimpleSPI_20260410_184133/spi_controller_simple/CGA/test_history.json
2026-04-10 20:26:20 | INFO | [spi_controller_simple] Quality evaluator initialized
2026-04-10 20:26:20 | INFO | [spi_controller_simple] --- CGA Iter 0 (Baseline) ---
2026-04-10 20:26:21 | INFO | [spi_controller_simple] Baseline Coverage: 77.55%
2026-04-10 20:26:21 | INFO | [spi_controller_simple] --- CGA Iter 1 / 15 ---
2026-04-10 20:26:21 | INFO | [spi_controller_simple] Target: Exception_DefaultCase
2026-04-10 20:26:21 | INFO | [spi_controller_simple] Asking LLM to fix missing logic (Current: 77.55%)...
2026-04-10 20:27:11 | INFO | [spi_controller_simple] Quality Evaluation: diversity=1.00
2026-04-10 20:27:11 | SUCCESS | [spi_controller_simple] Coverage Improved! +16.33% (77.55% -> 93.88%)
2026-04-10 20:27:11 | INFO | [spi_controller_simple] Unreachable analysis: 1 truly unreachable, 2 potentially coverable
2026-04-10 20:27:11 | WARNING | [spi_controller_simple] Coverage reached target, but found 1 unreachable branches: | location: autoline/TB_cga.py, func: run, line: 1617 | caller: location: autoline/TB_autoline.py, func: run_TBCGA, line: 301
2026-04-10 20:27:11 | WARNING | [spi_controller_simple] Truly unreachable by RTL design (1 lines): | location: autoline/TB_cga.py, func: run, line: 1619 | caller: location: autoline/TB_autoline.py, func: run_TBCGA, line: 301
2026-04-10 20:27:11 | WARNING | [spi_controller_simple] Line 93: default: begin - default branch in fully-covered case statement | location: autoline/TB_cga.py, func: run, line: 1619 | caller: location: autoline/TB_autoline.py, func: run_TBCGA, line: 301
2026-04-10 20:27:11 | WARNING | [spi_controller_simple] Potentially coverable but not tested (2 lines): | location: autoline/TB_cga.py, func: run, line: 1619 | caller: location: autoline/TB_autoline.py, func: run_TBCGA, line: 301
2026-04-10 20:27:11 | WARNING | [spi_controller_simple] Line 94: state <= IDLE; - potentially coverable but not tested | location: autoline/TB_cga.py, func: run, line: 1619 | caller: location: autoline/TB_autoline.py, func: run_TBCGA, line: 301
2026-04-10 20:27:11 | WARNING | [spi_controller_simple] Line 95: spi_clk_en <= 1'b0; - potentially coverable but not tested | location: autoline/TB_cga.py, func: run, line: 1619 | caller: location: autoline/TB_autoline.py, func: run_TBCGA, line: 301
2026-04-10 20:27:11 | INFO | [spi_controller_simple] Stopping: unreachable branches exist by RTL design
2026-04-10 20:27:11 | INFO | [spi_controller_simple] CGA Finished. Final Coverage: 93.88%
2026-04-10 20:27:11 | INFO | [spi_controller_simple] Unreachable analysis: 1 truly unreachable, 2 potentially coverable
2026-04-10 20:27:11 | WARNING | [spi_controller_simple] Unreachable branches found: 1 lines | location: autoline/TB_cga.py, func: run, line: 1636 | caller: location: autoline/TB_autoline.py, func: run_TBCGA, line: 301
2026-04-10 20:27:11 | INFO | [spi_controller_simple] Unreachable branches report saved to: saves/0406~0412/MyExperimentsSimple/SimpleSPI_20260410_184133/spi_controller_simple/CGA/unreachable_branches_report.txt
2026-04-10 20:27:11 | INFO | [spi_controller_simple] Energy report saved to saves/0406~0412/MyExperimentsSimple/SimpleSPI_20260410_184133/spi_controller_simple/CGA/energy_report.txt
2026-04-10 20:27:11 | INFO | [spi_controller_simple] Diversity report saved to saves/0406~0412/MyExperimentsSimple/SimpleSPI_20260410_184133/spi_controller_simple/CGA/diversity_report.txt
2026-04-10 20:27:11 | INFO | [spi_controller_simple] Quality evaluation report saved to saves/0406~0412/MyExperimentsSimple/SimpleSPI_20260410_184133/spi_controller_simple/CGA/quality_evaluation_report.txt
2026-04-10 20:27:11 | INFO | [spi_controller_simple] Semantic Coverage: 72.02%
2026-04-10 20:27:11 | INFO | [spi_controller_simple] Saved optimized TB to: saves/0406~0412/MyExperimentsSimple/SimpleSPI_20260410_184133/spi_controller_simple/final_TB.v
2026-04-10 20:27:11 | INFO | [spi_controller_simple] [TBeval] Eval 1: Golden RTL checking begins
2026-04-10 20:27:11 | FAILED | [spi_controller_simple] [TBeval] Eval 1: Golden RTL checking failed!
2026-04-10 20:27:11 | INFO | [spi_controller_simple] [TBeval] [spi_controller_simple] Eval 2/2b is skipped because Eval 1 failed
2026-04-10 20:27:11 | INFO | [spi_controller_simple]
2026-04-10 20:27:11 | INFO |
########## Analyze of Chatbench_RunInfo ##########
#### pass numbers:
Eval2 : 0
Eval1 : 0
Eval0 : 1
total : 1 (Failed: 0)
passed TB by autoline reboot action (from TB3_check): 0
passed TB by functional corrector: 0
#### CGA Coverage Info:
Average Coverage : 93.88%
Max Coverage : 93.88%
Min Coverage : 93.88%
#### tokens and cost:
average prompt tokens: 22081
average completion tokens: 17022
total cost: 1.4629
average cost: 1.4629
#### time:
average time: 6337.85s
#### debug info table:
FUNCTIONAL debug info table:
(debugged here means functional debugging)
| un-func-debugged | func-debugged | total |
failed | 0 | 0 | 0 |
Eval0 | 0 | 1 | 1 |
Eval1 | 0 | 0 | 0 |
Eval2 | 0 | 0 | 0 |
#### Eval2 ratio:
#### CGA Coverage Detail List:
Task ID | Coverage
----------------------------------------
spi_controller_simple | 93.88%
loose Eval2 pass metric applied: 0.8