File tree Expand file tree Collapse file tree 3 files changed +16
-5
lines changed
Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,18 @@ async def handler(data, context):
5353 else :
5454 command = f"mill -i __.test.runMain sims.verilator.Elaborate { config_name } "
5555
56- command += "--disable-annotation-unknown -strip-debug-info -O=debug "
57- command += f"--split-verilog -o={ build_dir } "
56+ # Firtool options (CIRCT). Current set; optional Chipyard-style options below.
57+ command += "--disable-annotation-unknown "
58+ command += "--strip-debug-info "
59+ command += "-O=debug "
60+ # command += f"-repl-seq-mem -repl-seq-mem-file={build_dir}/mem.conf "
61+ command += f"--split-verilog -o={ build_dir } "
62+ # Optional: --disable-annotation-classless (ignore classless annotations)
63+ # Optional: -repl-seq-mem -repl-seq-mem-file=<path>.conf (SRAM macro replacement)
64+ # Optional: --disable-all-randomization (disable mem/reg init; may break semantics)
65+ # Optional: --disable-opt (no optimization) or -O=release (default is release)
66+ # Optional: --output-annotation-file=<path> (emit annotations after lower-to-hw)
67+ # Optional: --no-dedup (disable module dedup); --strip-fir-debug-info (FIR locators)
5868
5969 result = stream_run_logger (
6070 cmd = command ,
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ def pkg_config(flag, pkg):
7474 ])
7575
7676 # -DBBSIM: selects VBBSimHarness in bdb.h / main.cc
77+ # BDB NDJSON trace (+trace=...) is runtime-only; bbdev sim uses +trace=all (04_sim_event_step.py).
7778 cflags = f"{ inc_flags } -DBBSIM -DTOP_NAME='\" V{ topname } \" ' -std=c++17"
7879
7980 ldflags = (
@@ -84,7 +85,7 @@ def pkg_config(flag, pkg):
8485 )
8586
8687 obj_dir = f"{ build_dir } /obj_dir"
87- subprocess .run (f"rm -rf { obj_dir } " , shell = True )
88+ # subprocess.run(f"rm -rf {obj_dir}", shell=True)
8889 os .makedirs (obj_dir , exist_ok = True )
8990
9091 sources = " " .join (vsrcs + csrcs )
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ async def handler(data, context):
6363 bin_path = f"{ build_dir } /obj_dir/V{ topname } "
6464 batch = data .get ("batch" , False )
6565
66- log_path = f"{ log_dir } /bdb.log "
66+ log_path = f"{ log_dir } /bdb.ndjson "
6767 stdout_path = f"{ log_dir } /stdout.log"
6868 fst_path = f"{ waveform_dir } /waveform.fst"
6969
@@ -82,7 +82,7 @@ async def handler(data, context):
8282 f"+elf={ binary_path } "
8383 f"{ '+batch ' if batch else '' } "
8484 f"{ coverage_flag + ' ' if coverage_flag else '' } "
85- f"+fst={ fst_path } +log={ log_path } +stdout={ stdout_path } +permissive-off "
85+ f"+fst={ fst_path } +log={ log_path } +stdout={ stdout_path } +trace=all + permissive-off "
8686 f"{ binary_path } 2> >(spike-dasm > { log_dir } /disasm.log)"
8787 )
8888 script_dir = os .path .dirname (__file__ )
You can’t perform that action at this time.
0 commit comments