diff options
| author | PFiS1737 <[email protected]> | 2026-06-11 18:19:31 +0800 |
|---|---|---|
| committer | PFiS1737 <[email protected]> | 2026-06-11 18:19:31 +0800 |
| commit | f79a29470d8384072a5931af05354130f997a032 (patch) | |
| tree | e293daa60f019e4fa266c968e3164f7f50bf31b3 | |
| parent | df4500ecb7d0be4fdcef557d646e5abf43818857 (diff) | |
fix
| -rw-r--r-- | xmake/rules/verilator/verilator.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/xmake/rules/verilator/verilator.lua b/xmake/rules/verilator/verilator.lua index 1530be62c..72de7b91b 100644 --- a/xmake/rules/verilator/verilator.lua +++ b/xmake/rules/verilator/verilator.lua @@ -226,18 +226,21 @@ endmodule]]) switches.THREADS = values:trim() elseif key == "test_TRACE_VCD" then -- VCD Tracing output mode? 0/1 (from --trace-vcd) - switches.TRACE = values:trim() switches.TRACE_VCD = values:trim() elseif key == "test_TRACE_FST" then -- FST Tracing output mode? 0/1 (from --trace-fst) - switches.TRACE = values:trim() switches.TRACE_FST = values:trim() elseif key == "test_TRACE_SAIF" then -- SAIF Tracing output mode? 0/1 (from --trace-saif) - switches.TRACE = values:trim() switches.TRACE_SAIF = values:trim() end end) + + switches.TRACE = ( + switches.TRACE_VCD == "1" or + switches.TRACE_FST == "1" or + switches.TRACE_SAIF == "1" + ) and "1" or "0" end assert(verilator_root, "the verilator root directory not found!") |
