Skip to content

0.11.7

Latest

Choose a tag to compare

@aionhw aionhw released this 22 Nov 00:43
· 559 commits to main since this release

Xezim 0.11.7 lowers elaboration memory, speeds up event waits and queues, builds C and C++ DPI sources from the file list, and fixes a long list of array, real-number, timing and conformance issues reported and patched by contributors.

  • Elaboration memory. Compilation-unit declarations, prepared module bodies, declared types, typed parameters, constraint blocks, coverage scope strings and scope-tree paths are shared across instances instead of copied, unused parameter-environment bodies are released, and the parser holds 8-byte tokens. On the synthetic fixtures of #721, 4,000 module definitions beside 200 unit declarations peak at 107 MiB instead of 1,500 MiB, and 16,000 package constants in 4,000 instances compile in 3.0 s and 139 MB instead of 74.9 s and 8.97 GB (reproducers and suggestions by @amal-khailtash; token and callable-body work by @Thomasb81; parameter-overlay work by @akashlevy).
  • Scheduling and queues. A process parked on an event control over signals is examined only when one of them is written (XEZIM_WAITER_INDEX=0 restores the old scan), and pop_front, push_front, insert and delete(i) no longer take time proportional to the queue: 30,000 pop_front calls take 0.31 s instead of 396 s (reported by @Ganesh-TNL). Covergroup with filters, constant-select functions, CRC-style select chains and timing-check conditions also compile or evaluate far faster (@auty1395, @git-hevangel, @Ganesh-TNL).
  • DPI, VPI and files. C and C++ sources named among the design files are compiled, linked and cached as one DPI library (-CFLAGS/-LDFLAGS; --compile -o warns that the artifact does not include them), and an import no library defines binds to a function already loaded, such as one of the C library (@akashlevy). $readmem*/$writemem* handle associative and multidimensional arrays, and $writemem* writes the §21.5.3 layout (@akashlevy). VPI assertion objects, callbacks and controls, and cocotb 2.1 support (@shabbarvejlani, @ds54e).
  • Waveforms. --wave-suppress excludes modules and hierarchical paths from the VCD, FST and XTrace dumps, and $dumpvars takes indexed generate-block, instance-array and array-element scopes (@Ganesh-TNL).
  • Correctness. Unpacked arrays and assignment patterns (rows, slices, type keys, replications, intra-assignment captures), real/shortreal storage and conversion, simulation time above 2^53 ticks, literal and 2-state port actuals, user-defined nettypes, packed port selects, clocking drives, class-parameter widths in compiled methods, and IEEE 1800-2023 conformance points such as the vacuous-success pass action, duplicate definitions and string comparison (@ds54e, @akashlevy, @Thomasb81, @auty1395, @chuanseng-ng, @shabbarvejlani, @Ganesh-TNL, @git-hevangel, @marcobrambilla99, @rharikrishna25, @Dragon-Git, @philipaxer, @davekeeshan).
  • Exit status. A run that SIGINT or SIGTERM stopped exits 130 or 143 instead of 0, and a task recursion that never waits is reported as a zero-delay loop instead of overflowing the stack (@akashlevy).

Build requirements: Rust 1.100 or newer, Clang and LLVM archive tools. All three crates (xezim, xezim-core, sv-parser) are versioned 0.11.7; the simulator pins the matching core release commit.

Validation of the implementation: 8,159 release tests passed with five ignored tests (one deliberate difference from the reference simulator and four pinned open gaps), 766 core tests, 296 parser tests, the CI JIT smoke tests and 55 further native-backend tests, and the DPI tests on the nested-scheduler fallback. xezim -V prints xezim version 0.11.7.

See full release notes, contributors and the user guide.

Compiled artifacts written by 0.11.6 or earlier are refused with the "recompile with current xezim" message; recompile saved designs. Rust users of the library: Simulator::widths is now a SignalWidths instead of a HashMap<String, u32>.