[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111221":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":12,"stars30d":14,"stars90d":13,"forks30d":13,"starsTrendScore":13,"compositeScore":15,"rankGlobal":8,"rankLanguage":8,"license":8,"archived":16,"fork":16,"defaultBranch":17,"hasWiki":18,"hasPages":16,"topics":19,"createdAt":8,"pushedAt":20,"updatedAt":21,"readmeContent":22,"aiSummary":23,"trendingCount":13,"starSnapshotCount":13,"syncStatus":24,"lastSyncTime":25,"discoverSource":26},111221,"RSI-Chip","RSI-Labs\u002FRSI-Chip","RSI-Labs",null,"Rust",65,7,1,0,9,38.11,false,"dev",true,[],"2026-11-14 11:28:11","2026-11-18 22:16:19","# Rust EDA Toolchain\n\nThis workspace is an API-first, Rust-native EDA toolchain intended for agent\ndriven digital, analog, and physical-design flows. It is deliberately modular:\neach domain is independently consumable and the `eda-api` facade provides the\none-call surface preferred by automation.\n\n## Run and test\n\n```sh\ncargo fmt --all -- --check\ncargo clippy --workspace --all-targets -- -D warnings\ncargo test --workspace\n```\n\n## CPU program platform\n\n`crates\u002Feda-cpu-platform` contains an executable-centric ISA validation\nplatform. It loads ELF32 RV32I images plus DOS `.COM` and MZ `.EXE` i8086\nimages, executes them through independent golden models, captures output and\nexit status, and exposes directed validation cases. `platform\u002Frtl` contains\nthe full multicycle RV32I core, a broad multicycle i8086 core, directed\nsimulation SOCs, and the i8086 prefix\u002Fopcode\u002FModRM decoder contracts. The\n`--sv` runners attach the external RTL memory buses to sparse host memory, so\nchecked-in RV32I ELF and real-mode COM images can execute beyond the small\ndirected SOC memories. These cores are compiled and simulated, and their\nrelease gates include RTL-to-mapped-netlist LEC. See `platform\u002FREADME.md` for\ncurrent scope and the remaining exhaustive-opcode acceptance gates.\nThe release matrices now correlate both golden models against RTL for the\nRV32I base integer\u002Fdata\u002Fcontrol\u002FCSR\u002Ftrap classes and the broad i8086 ALU,\nModRM, segment, shift\u002Frotate, and unary groups. RV32I additionally runs 64\ndeterministic randomized differential seeds, while i8086 runs 32 seeds mixing\nALU, shift\u002Frotate, unary, prefix, and sparse-memory load\u002Fstore streams.\n\n```sh\ncargo run -p eda-cpu-platform -- validate\ncargo run -p eda-cpu-platform -- i8086 run platform\u002Fprograms\u002Fhello.com\ncargo run -p eda-cpu-platform -- i8086 run platform\u002Fprograms\u002Fhello.com --sv\ncargo run -p eda-cpu-platform -- rv32i run platform\u002Fprograms\u002Frv32i_exit42.elf\ncargo run -p eda-cpu-platform -- rv32i run platform\u002Fprograms\u002Frv32i_exit42.elf --sv\ncargo run -p eda-cpu-platform -- i8086 run platform\u002Fprograms\u002Fhigh_memory.com --sv\ncargo run -p eda-cpu-platform -- rv32i run platform\u002Fprograms\u002Frv32i_high_memory.elf --sv\n```\n\nThe `eda-slang` front-end adapter delegates full SystemVerilog validation,\npreprocessing, and AST serialization to\n[slang](https:\u002F\u002Fgithub.com\u002FMikePopoloski\u002Fslang). It accepts include paths and\nmacro definitions, rejects malformed RTL with slang diagnostics, and emits\npost-elaboration AST JSON. `compile_files` and `compile_source` now use the\nauthoritative direct slang-AST lowering path and fail closed on unsupported\nconstructs; `compile_files_bounded` remains an explicit compatibility and\ndifferential path rather than a silent fallback.\n\nThe direct path lowers elaborated parameter constants, wildcard\u002Fexplicit\npackage imports with scoped constants\u002Ffunctions\u002Ftypedefs\u002Fenums and enum\nmethods, initial\u002Falways\u002Ffinal procedures with `$finish` shutdown execution,\ndirect `$display`\u002F`$write`\u002F`$monitor` formatting tasks for\n`%b\u002F%d\u002F%h\u002F%s\u002F%t`, integral `$time`\u002F`$stime`, per-module\n`timescale`\u002F`timeunit`\u002F`timeprecision` scaling, `$timeformat`, and\n`$printtimescale`, blocking\u002Fnon-blocking assignments, blocks, if plus normal,\nwildcard, inside, and qualified priority\u002Funique case control flow, bounded\nstrings and their checked methods, scalar and edge-qualified event lists,\ndelays, waits, runtime loops, jumps, task return boundaries that resume callers,\nforce\u002Frelease, fork join modes, recursive\nhierarchy, parameterized interfaces, interface arrays and ports, packed and\nunpacked aggregates, simple non-virtual class objects with constructors,\nproperties, methods, single-inheritance field flattening, constructor chaining,\nreceiver-resolved virtual calls, direct base\u002Fderived handle reassignment with\nobject-identity propagation, runtime virtual dispatch through a base handle,\nhierarchy-global static class properties\u002Fmethods shared by object and module\ninstances, package-qualified classes, elaborated value-parameterized class\nspecializations with method-body parameter substitution, scalar and\none-dimensional class-valued composition arrays with nested\nconstruction\u002Ffield\u002Fmethod access, constant-indexed and dynamic class-array\nread\u002Fwrite\u002Fhandle-assignment subsets, null handle assignment\u002Fcomparison,\nchecked `$cast` statements\u002Fconditions between prepared handles with a provable dynamic source, and\nsimple integral\u002Fstring type aliases, class property initializers,\nfirst-class sparse memories, memory file tasks, and top-level and child\nmemory-port sharing. Relational ordering evaluates the full packed operand\nwidth, with direct-versus-bounded coverage for 64-bit wrap, unsigned values\nabove `I64::MAX`, signed minima, and signed\u002Funsigned 65-bit ordering. It\nrecords slang source spans and validates lowered structure against the\nauthoritative AST, including exact whole-element and indexed-part sparse-memory\nread memory\u002Findex\u002Fstart fingerprints plus constant packed element\u002Frange\u002Findexed\nselect physical-range fingerprints. Dynamic packed element reads plus module- and procedure-local dynamic packed\nlvalue updates retain exact selector\u002Fper-bit conditional-tree fingerprints;\nsimple, nested, and forward-declared packed sparse-memory member writes\nretain exact memory\u002Findex\u002Fmember-path\u002FRHS whole-element concatenation fingerprints; and\ndirect class-static property reads and no-argument static functions that directly return a static property retain exact class\u002Fproperty fingerprints. Unsupported\nconstructs receive explicit diagnostics instead of a hidden preprocess\u002Freparse\nfallback.\n\nThe official Accellera UVM 2020.3.1 source direct-lowers with `UVM_NO_DPI`.\nA class derived from official `uvm_test` can be explicitly constructed with its\noverridden `run_phase` executed, and a minimal `run_test(\"class\")` entry can\nconstruct such a class and sequentially execute its user-overridden common phase\nmethods. Its bootstrap phase object supports constant-count\n`raise_objection`\u002F`drop_objection` calls, per-owner counts selected by runtime\nobject identity across prepared registry slots, asynchronous drain before later\nphases, `uvm_root::get().set_timeout(...)` configuration, and rejection of wrong-owner\nobjections, and name\u002Ftype-based factory selection for `run_test` through\nofficial `uvm_factory::get().set_type_override_by_name` and\n`set_type_override_by_type(Class::get_type(), ...)` with replace semantics,\n`set_type_alias(...)`\u002F`set_inst_alias(...)` name resolution, exact\u002Fwildcard-path\n`set_inst_override_by_type(...)`\u002F`set_inst_override_by_name(...)`, and\ndirect `create_component_by_name(...)`\u002F`create_object_by_name(...)` and type-wrapper `create_component_by_type(...)`\u002F`create_object_by_type(...)`,\nand `Class::type_id::create(...)` component\u002Fobject construction through prepared\nclass properties under an explicit synthetic `uvm_root` and the official\n`uvm_test_top` run-test instance name, including compatible derived overrides with runtime virtual\ndispatch, preserved constructor names for `get_name()`, parent-qualified `get_full_name()`, and `get_parent()` identity comparison plus checked parent-handle cast.\nIt also records prepared children by literal constructor name, rejects\nduplicate sibling names, supports `get_child(...)`, relative and leading-dot absolute `lookup(...)`, and\nchecked component-handle recovery, rejects duplicate sibling names, reports the prepared child count through\n`get_num_children()`, checks literal `has_child(...)`, and returns prepared\nhierarchy depth through `get_depth()`.\nA minimal literal `uvm_config_db#(T)` bootstrap records integer and string\nvalues in typed scope\u002Ffield resources, applies the official UVM-no-DPI glob\nsubset (`*`, `?`, and the empty global pattern), honors build-time hierarchy\nprecedence and runtime\u002Fdefault last-write selection, accepts slash-delimited\nliteral regex scopes with official-style context composition and anchored full\nmatches, and resolves conditional `get(...)` and `exists(...)` calls, including\nmissing-entry failure branches;\nprepared `wait_modified(...)` calls wake when a later matching `set(...)`\nexecutes, and literal spell-check mode emits a UVM information message with\nglobal cross-type Levenshtein alternatives. A minimal literal\n`uvm_resource_db#(T)::set\u002Fset_default\u002Fset_anonymous\u002Fset_override\u002F\nset_override_type\u002Fset_override_name\u002Fread_by_name\u002Fwrite_by_name\u002Fread_by_type\u002F\nwrite_by_type` bootstrap now shares those typed resources, including\ncross-reads from `uvm_config_db` entries; conditional writes update an\nexisting matching resource without creating a missing one, defaults initialize\nint\u002Fstring values to zero\u002Fempty, anonymous resources are type-readable, and\nname\u002Ftype overrides retain their official priority direction. Unsupported\nnon-literal values, non-literal spell-check arguments, accessors, direct\nvalue-returning resource forms, and unprepared waiters fail closed.\nDirect official-UVM reporting also accepts literal\n`uvm_report_info(...)`\u002F`uvm_report_warning(...)`\u002F`uvm_report_error(...)` calls,\nthe literal `uvm_info`\u002F`uvm_warning`\u002F`uvm_error`\u002F`uvm_fatal` macro forms with\ndefault or literal-configured verbosity\u002Faction filtering. Literal\n`set_report_*` controls support default\u002Fid\u002Fseverity\u002Fid+severity precedence for\nverbosity and actions, while literal `get_report_max_verbosity_level()`,\n`get_report_verbosity_level(...)`, and `get_report_action(...)` queries return\nthe configured compile-time values. The current action subset is display,\nno-action, default-file `UVM_LOG` stdout suppression, count, fatal exit, and\n`UVM_CALL_HOOK`. Literal report-server counters track\nseverity\u002Fid\u002Fquit counts, and a `UVM_COUNT` report terminates when the configured\nmaximum quit count is reached. User-overridden literal\n`report_hook(...)`\u002Fseverity hook functions execute only when the selected action\nincludes `UVM_CALL_HOOK`, and a literal `0` return suppresses the message. Multiple null-context\n`uvm_report_catcher` registrations support literal\n`UVM_APPEND`\u002F`UVM_PREPEND` ordering and object-scoped registration, and stop\nat the first matching enabled `CAUGHT` result. Literal\n`callback_mode(0\u002F1)` can disable or re-enable a registered catcher, and\nliteral `uvm_report_cb::delete(...)` \u002F `delete_by_name(...)` can remove a\ncontext-matching catcher, and straight-line literal catcher\n`set_severity(...)`, `set_message(...)`, and `set_action(...)` calls modify a\nsubsequent THROW report.\nA literal `uvm_callbacks#(T,CB)::add(...)` subset registers prepared callback\nobjects by runtime context or a null typewide context, resolves the specialized\nT\u002FCB pair, applies typewide callbacks to matching target derivatives, and lowers\nthe `uvm_do_callbacks` macro to ordered callback-method calls with derived\nclass dispatch, and supports literal callback_mode(0\u002F1), callback_mode()\nqueries, object\u002Ftypewide delete(...), and null-root literal delete_by_name(...).\nFull dynamic pools, iterator APIs, derivation registries, and callback tracing\nremain fail-closed.\nA literal official-UVM `uvm_analysis_port#(T)` bootstrap can connect prepared\n`uvm_analysis_export#(T)` chains and `uvm_subscriber#(T)` analysis exports in\norder, detect export cycles, and lower `write(...)` to each subscriber's\nvirtual `write` method. A bounded official-UVM `uvm_tlm_fifo#(int)` subset with\nan explicit size of 1..4 supports statement-form `try_put`, `try_get`,\n`try_peek`, `flush`, blocking `put\u002Fget\u002Fpeek` by suspending on FIFO state, and\nthe `size\u002Fused\u002Fis_empty\u002Fis_full\u002Fcan_*` queries, while expression-form\nside-effecting `try_*` calls and transport APIs remain fail-closed. Literal `uvm_put_port#(int)`, `uvm_put_export#(int)`,\n`uvm_get_peek_port#(int)`, and `uvm_get_peek_export#(int)` objects can form\nmatching endpoint chains that terminate at a bounded FIFO export, route\n`try_*`, blocking `put\u002Fget\u002Fpeek`, and `can_*` operations to that FIFO, reject\ndirection mismatches, and detect endpoint cycles. A literal official-UVM sequence\nbootstrap executes a user `uvm_sequence#(REQ)::body()` with prepared\n`uvm_sequence_item` handles, `start_item`\u002F`finish_item`, a direct\n`uvm_sequencer#(REQ)`, `get_next_item`, `item_done(response)`, and blocking\n`get_response(response)` plus `set_transaction_id(...)`,\n`get_transaction_id()`, and runtime transaction-id-selective\n`get_response(response, transaction_id)` for request\u002Fresponse items with at\nmost four scalar fields and an official-depth-eight FIFO response queue that\nfails closed on overflow. Selective removal preserves the FIFO order of\nremaining responses. Dynamic run-time connections, arbitrary port graphs,\nclass-valued request fields, configurable response-queue depth, the official\noverflow\u002Fdrop\u002Fwarning policy, and the remaining TLM transport APIs remain\nfail-closed.\nThis is still a bootstrap:\nthe registry, config entries, and timeout are finite, phase objects are\nsynthetic, factory overrides and config entries are compile-time mappings, the\nglob\u002Fregex\u002Fprecedence\u002Fwait\u002Fspell model does not prove complete official POSIX\ndialect equivalence or all `uvm_resource_db` APIs and waiter pools,\npriority controls, resource-wide dictionaries, or dynamic resource-pool behavior,\nthere is no parallel phase graph, callback-based objection scheduler, full\ndynamic callback pool, full TLM runtime, or full sequence\u002Fmethodology runtime.\n\nThe bounded internal frontend still provides `HdlSource`, `SourceManager`, and\n`compile_sources` for named multi-unit compatibility testing; its explicit\n`compile_files_bounded` entry point is no longer the executable default.\nThe bounded internal frontend also provides `HdlSource`, `SourceManager`, and\n`compile_sources` for deterministic named multi-unit compilation with parser\nerrors mapped back to their originating file and line.\nModule unpacked arrays now support whole-element reads and writes, including\nfixed multidimensional selections. The IR separates `MemoryStorage::Ordinary`\nvalue arrays from `MemoryStorage::Sparse` memories: ordinary aggregate arrays use\ndense simulator element vectors, do not receive RAM\u002FROM timing templates or\nmacro plans, and emit VCD words only when touched, while process-accessed or\n>4,096-bit storage lowers to first-class sparse `MemoryDecl` objects backed by\ntouched-element maps with explicit read, blocking-write, and NBA-write\noperations; a natural 4 KiB byte array uses 30 flat bits rather than 32,797,\nand the sparse-memory regression extends to 1 MiB-by-8. Ordinary top-level\nports use a separate `ArrayPortDecl` contract and child aliases use\n`ArrayConnection`; matching fixed arrays execute blocking\u002Fnonblocking whole-object\ncopies, positional\u002Fdefault unpacked assignment patterns, `$size`\u002Fbound\u002Fdimension-count\u002F`$bits` queries, one-dimensional integral dynamic-array allocation\u002Flifecycle, queue push\u002Fpop lifecycle, and associative-array key\u002Fvalue lifecycle; dedicated\n`set_ordinary_array_input*` and `read_ordinary_array_output*` APIs enforce the\nOrdinary storage contract and reject sparse-memory ports, while sparse-memory\nAPIs reject Ordinary arrays. Sparse memories\nsupport indexed part-select reads and writes with runtime starts, reversed\nelements, continuous lvalue preservation, disjoint NBA-field merging, and\nlarge `inout` memory-port sharing through the hierarchy. Post-elaboration\ninference marks runtime-written canonical alias groups as RAM and\ninitializer-only memories as ROM, then assigns technology-independent timing\ntemplates (`AsyncRom`, `SyncRom`, `MixedRom`, `AsyncRam`, `SyncRam`, or\n`MixedRam`) plus conservative runtime write-mask, aligned byte-lane, and logical-bank\ncontracts. Synthesis now emits technology-independent distributed\u002Fblock macro candidate plans from these contracts; vendor mapping and block-macro netlist lowering remain future work; small deterministic DistributedRom objects and clocked DistributedRam objects now lower to gates\u002Fregisters, including aligned byte-enable part writes. Sparse-memory VCD output dynamically declares only touched words rather than expanding a 1 MiB memory. Direct slang-AST\nlowering supports inline multidimensional sparse-memory initializers and\ncompile-time `$readmemh`\u002F`$readmemb` loads with constant bounds and runtime `$writememh`\u002F`$writememb` dumps. The bounded path expands\ntwo-to-four-argument memory-file loads\u002Fdumps with constant bounds relative to the first source file and accepts\ncombined net\u002Fdata declarations such as `wire logic`, allowing the preprocessed\nand direct slang paths to share sparse-memory differentials.\n\nThe data-driven regression target currently contains **15,159 unique named\ncases**. It is not a collection of three or four broad assertions: every case\nhas a distinct name and independently reports success or failure. Of those,\n`eda_tests::ams_cases` contributes exactly 3,110 analog\u002Fmixed-signal\ncircuit cases spanning:\n\nThe HDL frontend now executes a SystemVerilog class subset that underpins\nagent-driven verification: `class`\u002F`virtual class` declarations with\n`extends` inheritance, `this`\u002F`super` member and method dispatch (including\n`super.new`), constructors via `h = new(args)` with trailing default\narguments, explicit `null` handle assignment\u002Fcomparison with alias-group\ndetachment, object-identity `==`\u002F`!=` across aliased handles, and declaration\ninitializers, `$cast` between handles on statically known inheritance chains,\nshallow-copy construction via `dst = new source`, void `function`\u002F`task`\nmethods, value-returning methods in\nstatement and expression positions (direct assignment calls also execute\nmethod side effects and virtual dispatch), shared `static` properties and\n`static function` methods addressed through the class name, handle copy semantics, property\nqualifiers (`rand`, `randc`, `local`, `protected`, `const`), classes with\nparameter lists (`class C #(parameter W = 8)` with explicit\n`C #(.W(4))` \u002F `C #(4)` integer specializations and default-value\nsubstitution across widths, defaults, and method bodies, plus parameterized\nbase selection and forwarded actuals in `extends`), package-scope\nclasses with `pkg::Type` visibility, and a built-in UVM-lite `uvm_object`\nbase class (`new`\u002F`get_id`) that derived transaction classes can extend\nwithout any external library. A `string` subset (512-bit NUL-padded\nbyte packing, up to 64 characters) supports declaration, assignment,\nliteral comparison, `len()`\u002F`getc()`\u002F`putc()`\u002F`substr()`\u002F`atoi()`\u002F\n`atohex()`\u002F`atobin()`\u002F`itoa()`\u002F`hextoa()`\u002F`bintoa()`\u002F`compare()`\u002F\n`icompare()`\u002F`toupper()`\u002F`tolower()` methods, class properties, and constructor arguments, plus\n`$sformatf` with fully constant\narguments (compile-time `%0d\u002F%h\u002F%b\u002F%s\u002F%%` formatting into the packed\nstring subset) a `uvm_objection`\ncounter (`raise`\u002F`drop` with call counts and a `drained`\u002F`check_drained`\ntermination check), a depth-four\n`uvm_tlm_fifo` mailbox (`try_put`\u002F`try_get`\u002F`peek` with FIFO ordering,\nfull rejection, and empty reads; sharable by sequencer and driver\nhandles), a sequential UVM-lite `uvm_event`\n(`trigger`\u002F`wait_trigger`\u002F`reset`\u002F`is_on` with trigger and consumption\ncounts), a `uvm_barrier` threshold counter, a bounded depth-four\n`uvm_queue` int deque (`push_front`\u002F`push_back`\u002F`pop_front`\u002F`pop_back`\u002F\n`size`\u002F`delete`, plus pure `peek_front` and statement-side-effect\n`shift_front`), a bounded depth-four `uvm_pool` int-to-int map\n(`add`\u002F`find`\u002F`exists`\u002F`remove`\u002F`num`\u002F`delete` with unique keys), and the\nstatic depth-four `uvm_config_db` string-to-int map\n(`set`\u002F`get`\u002F`exists`\u002F`remove` with class-scope storage), a\nstatic `uvm_factory` type-override table\n(`register`\u002F`set_type_override`\u002F`get_override`\u002F`has_override`\u002F\n`is_registered`, plus depth-four instance overrides that take priority and\nfall back after removal), the\nUVM-lite structural surface (`uvm_report_object`, `uvm_transaction`,\n`uvm_test`, `uvm_env`, `uvm_agent`, `uvm_monitor`, `uvm_scoreboard`, and\nanalysis export\u002Fimp forwarding), the\nUVM-lite sequence flow (`uvm_sequence_item`, virtual-body `uvm_sequence`,\nqueue-backed `uvm_sequencer`, `uvm_seq_item_port`, and `uvm_driver`),\nan analysis port with four explicit subscriber slots and fan-out writes,\na callback base\u002Fpool with four virtual callback slots plus enable\u002Fdisable\nfiltering,\nand the\nUVM message family — `$uvm_info(tag, fmt, args..., verbosity)`,\n`$uvm_warning\u002F$uvm_error(tag, fmt, args...)`, and `$uvm_fatal` (which\nalso terminates the simulation) — emitting\n`[UVM_INFO][tag][UVM_MEDIUM]`-style prefixed formatted messages, with\n`%0d` width modifiers and `%s` string-argument printing, through the\nsimulator display channel.\n\nClasses additionally support **composition** (class-typed properties with\nnested storage, deep dotted paths) and **virtual-method polymorphism**:\neach handle carries a runtime type id, `b = d` propagates it, and calls\nthrough a base-typed handle lower to a `case` on that id, selecting the\nmost-derived override for every concrete derived class (statement and\nexpression forms; `super.m` stays statically bound; non-virtual methods\nkeep static binding). Handle assignment implements **reference\naliasing**: `q = p` makes both handles share storage (writes through\neither are visible through the other), and `h = new(...)` splits `h`\nback into its own object while former aliases retain the old one. A built-in virtual `uvm_component` base class extends `uvm_object`\nwith a `run_phase()` hook, an integrated objection lifecycle, component\nnames, parent back-references, and four explicit child slots, giving\ntestbenches the env\u002Fdriver\u002Fmonitor hierarchical structure used by UVM\nwithout requiring the full class library. The built-in component executes the\ncanonical common phase sequence — build, connect, end-of-elaboration,\nstart-of-simulation, run, extract, check, report, and final — with virtual\noverrides at every hook.\n\n## RV32I CPU (signoff vehicle)\n\n`rv32i\u002F` hosts the end-to-end foundry-signoff target: a single-cycle RV32I\nsubset core written in the synthesizable register + case-multiplexer style\n(16-word instruction\u002Fdata storage, 32-entry register file with hardwired\nx0, one-cycle 512-bit program-image load port, EBREAK halt, and\n`dbg_pc\u002Fdbg_x10\u002Fdbg_x11` debug outputs). The implemented instruction set\ncovers all RV32I base OP\u002FOP-IMM arithmetic-logic-shift operations\n(including SRA via a whole-word arithmetic identity), LUI, AUIPC, JAL,\nJALR, every branch condition, the complete memory subset\n(LW\u002FLH\u002FLHU\u002FLB\u002FLBU loads with sign\u002Fzero extension and byte\u002Fhalf\nselection; SW\u002FSH\u002FSB stores via read-modify-write merging), and SYSTEM\n(EBREAK\u002FECALL halt, FENCE nop). `rv32i_cases.rs` drives machine-code programs through the compiled\ndesign with a Rust-side encoder (including a LUI+ADDI constant loader) and\nchecks architectural results: arithmetic overflow pairs, logic ops, logical\nvs arithmetic shifts, signed\u002Funsigned compares, LUI\u002FAUIPC, counted\nbranch loops, JAL\u002FJALR call-return, LW\u002FSW round trips, a Fibonacci\nmixed program, a class-composed Monitor\u002FScoreboard\u002FEnv testbench that\nsamples the debug ports and reports pass\u002Ffail, RTL scan-chain DFT\ninsertion with a full-chain audit, and an MMMC PDK signoff case (model\ncorrelation, per-corner implementation, timing, DRC, LEF\u002FDEF\u002FSDF\nphysical databases, and full sequential-equivalence LEC) for the complete\n2243-flop netlist. The full `rv32i_pdk_signoff_mmmc_pass` gate is enabled\nand PASSES. A staged physical signoff\n(`rv32i_pdk_physical_signoff_mmmc_pass`) runs in-suite and PASSES —\nmodel correlation, two-corner timing (worst 201.125 ns), zero DRC\nerrors, and LEF\u002FDEF\u002FSDF generation — via a new staged-flow API that\ncan run physical closure independently when a manifest does not require\nLEC. The generated artifact lives at\n`rv32i\u002Fverify\u002Fsignoff_report.txt` and covers physical signoff,\npower\u002FIR, single- and multi-layer power meshes with EM, UPF\npower-domain IR (with per-domain multilayer meshes), and CTS.\nThe `rv32i_default_physical_flow_routes_full_core` gate exercises the\ndefault 256-site-by-256-track physical grid without the signoff manifest's\nexplicit 2048-track override, then checks routing, DRC, and sequential-count\ninvariants. Power\u002FIR and CTS stages also run in-suite on RV32I:\n`rv32i_power_and_ir_analysis` drives full-chip\nswitching activity with a wide-vector activity format (the 512-bit\nprogram image is supplied directly as a sized Verilog literal `512'h...`\non the top-level port; the power\u002FIR pipeline now accepts arbitrary-width\ninputs), asserting positive total power\u002Fcurrent, a worst IR\nrow, and mapped-cell accounting, while `rv32i_cts_inserts_and_audits_\nclock_tree` synthesizes and audits the post-synthesis clock tree\n(nonempty trees, buffers inserted, sequential count preserved), `rv32i_power_mesh_ir_and_em` solves the placed design's power-mesh IR\nby Gauss-Seidel iteration (positive current, finite worst drop,\nnonempty nodes\u002Fsegments, converged iterations), and\n`rv32i_multilayer_mesh_em_lifetime` runs the two-layer M8\u002FM7 mesh with\nBlack-equation electromigration lifetime estimation (positive finite\nworst EM lifetime, converged solver), and\n`rv32i_upf_domain_ir_and_mesh` parses a UPF power-domain view\n(`set_design_top`, `create_power_domain TOP`, VDD\u002FVSS supply ports),\nruns domain-aware IR, and produces per-domain multilayer meshes for\nevery physically populated domain. Driving that case already surfaced and\nfixed two real tool bugs: `always @*` case blocks without defaults\ninferred combinational loops, and synthesis dropped registers that were\nonly assigned in an `if` branch's `else` path (2049 state bits collapsed\nto 545). PDK manifests now carry per-layer routing track capacity\n(`tracks N`) that feeds the global router. Sequential equivalence is now\nopen on the full RV32I gold-versus-mapped design and **passes**. The proof\nfollows the scalable parts of Kepler Formal's LEC flow: normalize shared\nboundary variables, construct cached Boolean\u002FCNF miters, solve with the\nindustrial Kissat CDCL backend, and only decompose individual outputs when a\nmiter is satisfiable. The Rust engine retains its sound correspondence-point\ninduction for this reordered, technology-mapped netlist and adds the same\nKissat revision used by Kepler as a vendored backend.\n\nThe former full-netlist pre-encode was dead overhead and has been removed.\nCone encoding now takes cut predicates, the inductive gate-side cut set is\nmaintained incrementally, dense NetId sets avoid SipHash overhead, already\ndischarged internal points are not replayed, and topological flop scheduling\nis computed once instead of walking every full cone. SAT contexts keep the\nin-tree incremental CDCL as a fallback but use Kissat first, including model\nextraction for CEGAR refinement.\n\nThe full RV32I LEC profile reports `equivalent=true` with no counterexample:\n362\u002F3128 directly named points, 8660 accepted correspondence points in\ntotal, and 2406 localized final miter queries. The enabled\n`rv32i_pdk_signoff_mmmc_pass` gate passes model correlation, LEC, two-corner\ntiming, zero-DRC physical databases, and the complete `rv32i_` regression\nsuite passes as well.\n\nThe analog contribution includes:\n\n* 301 unique resistive divider DC solutions;\n* 20 physical `SHEET\u002FL\u002FW` resistor solutions.\n* 20 temperature\u002Fwidth-corrected `.rmodel` layer-resistor solutions.\n* 20 width-bin sheet-rho\u002Foffset interpolation resistor solutions.\n* 251 unique RC transient charging solutions;\n* 150 unique RL transient solutions with initial-condition enforcement;\n* 100 unique AC low-pass transfer sweeps;\n* 100 SIN\u002FPULSE\u002FPWL\u002FDC source-waveform checks;\n* 50 voltage-controlled source networks;\n* 48 nonlinear diode operating-point\u002FKCL checks.\n* 40 NMOS Level-1 saturation solutions;\n* 25 PMOS Level-1 saturation solutions;\n* 20 BSIM3 long-channel `LEVEL=8` DC diode-connected solutions.\n* 20 BSIM3 short-channel\u002FDIBL `DVT0\u002FDVT1\u002FDVT2` DC diode-connected solutions.\n* 20 BSIM3 narrow-width `DVT0W\u002FDVT1W\u002FW0` DC diode-connected solutions.\n* 20 BSIM3 temperature `KT1\u002FKT2\u002FKT1L\u002FUTE` DC diode-connected solutions.\n* 20 BSIM3 rectangular `WMIN\u002FWMAX\u002FLMIN\u002FLMAX` geometry-bin selection\u002Fcurrent checks.\n* 20 NMOS\u002FPMOS mobility-degradation and velocity-saturation checks.\n* 35 forward-active Ebers-Moll BJT solutions.\n* 60 resistor thermal-noise Johnson-Nyquist checks;\n* 40 diode shot-noise operating-point checks.\n* 60 MOS gate-charge transient RC checks;\n* 40 BJT junction-capacitance AC-pole checks.\n* 50 resistor-divider Monte Carlo statistical sweeps;\n* 50 RC transient Monte Carlo statistical sweeps.\n* 50 fully correlated process Monte Carlo divider sweeps.\n* 50 explicit cross-parameter covariance Monte Carlo divider sweeps.\n* 20 distance-dependent spatial-mismatch Monte Carlo divider sweeps.\n* 20 normal\u002Flognormal marginal-distribution Monte Carlo divider sweeps.\n* 20 full-covariance Monte Carlo divider sweeps.\n* 20 imported vendor-style statistical-model Monte Carlo divider sweeps.\n* 20 deterministic power-law resistor\u002FMOS aging checks.\n* 50 diode depletion-capacitance voltage-dependence checks;\n* 50 BJT junction-capacitance voltage-dependence checks.\n* 50 MOS saturation charge-partition AC-coupling checks.\n* 50 MOS flicker-noise frequency-slope checks;\n* 50 diode flicker-noise frequency-slope checks.\n* 50 resistor thermal-noise temperature checks;\n* 50 MOS mobility temperature checks.\n* 50 diode transit\u002Fdiffusion charge checks;\n* 50 BJT transit\u002Fdiffusion charge checks.\n* 50 resistor-divider analytic sensitivity checks.\n* 20 exact linear-DC adjoint gradient\u002FHessian checks.\n* 20 diode-connected ideal-NMOS DC implicit gradient\u002FHessian checks.\n* 20 diode-connected ideal-NPN DC implicit gradient\u002FHessian checks including instance `AREA`.\n* 20 exact linear-AC magnitude adjoint gradient\u002FHessian checks.\n* 20 exact nonlinear diode DC implicit gradient\u002FHessian checks.\n* 20 exact series-RC transient-final gradient\u002FHessian checks.\n* 20 general backward-Euler linear RCL transient-final gradient\u002FHessian checks.\n* 20 general trapezoidal linear RCL transient-final gradient\u002FHessian checks.\n* 20 nonlinear diode AC magnitude gradient\u002FHessian checks.\n* 10 nonlinear diode transit-time AC magnitude gradient\u002FHessian checks.\n* 10 nonlinear diode depletion-capacitance AC magnitude gradient\u002FHessian checks.\n* 10 nonlinear diode junction-parameter AC magnitude gradient\u002FHessian checks.\n* 10 AC magnitude optimization cases using analytic Hessian\u002FGauss-Newton polish.\n* 50 Sobol variance-decomposition checks.\n* 50 correlated Sobol covariance-decomposition checks.\n* 50 resistor TC1 temperature checks;\n* 50 resistor TC2 temperature checks.\n* 50 bounded differential-evolution optimization checks.\n* 50 quantized mixed-integer optimization checks (integer\u002FE-series R and pF C grids).\n* 50 two-objective Pareto frontier optimization checks.\n* 25 constrained Pareto frontier optimization checks.\n* 20 algebraic-constraint Pareto frontier optimization checks.\n* 10 transcendental\u002Fmin-max function-constraint Pareto checks.\n* 15 three-objective Pareto frontier optimization checks.\n* 10 NSGA-III-style reference-direction Pareto checks.\n* 10 adaptive two-layer reference-direction Pareto checks.\n* 50 periodic-steady-state RC low-pass checks.\n* 50 automatic-fundamental PSS checks.\n* 20 autonomous CMOS ring-oscillator PSS startup checks.\n* 50 AM source\u002Fenvelope-following checks.\n* 100 deterministic clock period\u002Fhigh\u002Flow\u002Fduty waveform-measurement checks.\n* 100 deterministic multi-bit signal Hamming-comparison checks.\n* 100 deterministic different-net Manhattan polygon\u002Frectangle spacing checks.\n* 100 deterministic via bottom\u002Ftop enclosure checks.\n* 100 rectangle overlap sweeps covering union, intersection, difference, and exclusive-or.\n* 100 arbitrary-angle simple-polygon exact area\u002Fbounds\u002Fcontainment\u002Ftranslation\n  checks.\n* 100 arbitrary-angle simple-polygon exact spacing and intersection checks.\n* 100 arbitrary-angle layout-document storage, hit-test, SVG, translation, and\n  DRC integration checks.\n* 100 arbitrary-angle polygon editor tool, preview, vertex-drag, undo, and\n  redo session checks.\n* 100 direct arbitrary-angle two-pin route exact-length, blockage, conflict,\n  and spacing checks.\n* 100 schematic pointer-drag event sweeps.\n* 100 schematic wire-tool snap\u002Fconnectivity event sweeps.\n* 100 browser-host wire-event HTTP round trips.\n* 100 browser-host layout rectangle-event HTTP round trips.\n* 100 browser-host layout polygon-event HTTP round trips.\n* 100 parameterized generate-for elaboration cases spanning widths 1..100.\n* 100 parameterized generate-case branch-selection elaboration\u002Fsimulation\n  cases.\n* 100 generated-clock divide-by cases.\n* 100 asynchronous\u002Flogically-exclusive\u002Fphysically-exclusive clock-group cases.\n* 100 RTL flow-cache source hit\u002Fmiss cases plus invalid-source and concurrent-agent checks.\n* 100 casez\u002Fcasex priority-match simulation cases.\n* Browser schematic\u002Flayout zoom-pan-property-grid integration checks.\n* 100 SystemVerilog variable-type\u002Fdefault-width elaboration cases.\n* 100 fixed one-dimensional module unpacked-net-array update\u002Fsimulation cases.\n* 100 fixed multidimensional module unpacked-net-array update\u002Fsimulation\n  cases.\n* 100 fixed unpacked module array-port whole-vector connection\u002Fsimulation\n  cases.\n* 100 fixed one-dimensional unpacked array-slice port connection\u002Fsimulation\n  cases.\n* 100 SystemVerilog ascending\u002Fdescending indexed part-select elaboration and\n  simulation cases.\n* 100 runtime-base indexed part-select simulation and out-of-range rejection\n  checks.\n* 100 runtime-base indexed part-select blocking-write simulation cases.\n* 100 inline-function runtime-base indexed part-select local\u002Fpackage-function\n  simulation cases.\n* 100 runtime-base indexed part-select non-blocking write and multi-field NBA\n  merge simulation cases.\n* 100 runtime-base indexed part-select NBA RTL-versus-gate synthesis and\n  simulation cases.\n* 100 reversed packed-range indexed part-select constant\u002Fruntime simulation\n  cases.\n* 100 reversed packed-range indexed part-select blocking\u002Fnon-blocking write\n  simulation cases.\n* 100 reversed packed-range inline-function indexed part-select simulation\n  cases.\n* 100 reversed packed-range continuous indexed-lvalue drive\u002Fsimulation cases.\n* 100 fixed unpacked-array element indexed part-select read\u002Fwrite simulation\n  cases.\n* 100 inline-function unpacked-array element indexed part-select\n  read\u002Fwrite\u002Fpreservation simulation cases.\n* 100 runtime unpacked-array element-index plus packed indexed-select\n  simulation cases.\n* 100 inline-function runtime array element-index plus packed indexed-select\n  simulation cases.\n* 100 runtime unpacked-array element-index indexed blocking\u002Fnon-blocking\n  assignment simulation cases.\n* 100 runtime unpacked-array element-index indexed assignment synthesis and\n  RTL-versus-gate simulation cases.\n* Direct sparse-memory IR and frontend tests covering multidimensional\n  logical\u002Fphysical mapping, reversed elements, part-select reads\u002Fwrites,\n  blocking writes, NBA field merging, continuous lvalues, runtime indexes, X\n  out-of-range reads, 4 KiB arrays, and 1 MiB-by-8 arrays.\n* 100 runtime unpacked-array element-index constant-packed-base continuous\n  indexed-lvalue simulation cases.\n* 100 inline-function runtime array element-index indexed assignment\n  simulation cases.\n* 100 scalar runtime packed-base continuous indexed-lvalue simulation cases.\n* 100 SystemVerilog package-constant\u002Fimport\u002Fscoped-reference elaboration cases.\n* 100 local\u002Fpackage SystemVerilog enum-typedef width\u002Fconstant elaboration cases.\n* 100 local\u002Fpackage packed-struct member-selection simulation cases.\n* 100 local\u002Fpackage packed-union overlapping-member simulation cases.\n* 100 simple SystemVerilog function inlining\u002Fsimulation cases.\n* 100 simple package-function import\u002Finlining\u002Fsimulation cases.\n* 100 nested non-recursive SystemVerilog function inlining\u002Fsimulation cases\n  plus recursion rejection.\n* 100 SystemVerilog function local-variable inlining\u002Fsimulation cases.\n* 100 SystemVerilog function if\u002Felse inlining\u002Fsimulation cases.\n* 100 SystemVerilog function exact-case inlining\u002Fsimulation cases.\n* 100 SystemVerilog function bounded-for unrolling\u002Fsimulation cases.\n* 100 SystemVerilog function casez\u002Fcasex wildcard-case inlining\u002Fsimulation\n  cases.\n* 100 SystemVerilog function constant-repeat unrolling\u002Fsimulation cases.\n* 100 SystemVerilog function bounded-while unrolling\u002Fsimulation cases.\n* 100 SystemVerilog function packed-struct local field-update\u002Fsimulation\n  cases.\n* 100 SystemVerilog function fixed unpacked-array local update\u002Fsimulation\n  cases.\n* 100 SystemVerilog function fixed multidimensional unpacked-array local\n  update\u002Fsimulation cases.\n* 100 SystemVerilog interface\u002Fmodport producer-consumer elaboration,\n  direction-enforcement, and simulation cases.\n* 100 SystemVerilog fixed interface-array element-selection simulation cases.\n* 100 fixed multidimensional interface-array element-selection simulation\n  cases.\n* 100 fixed module-instance-array vector-connection slicing simulation cases.\n* 100 fixed multidimensional module-instance-array row-major slicing\n  simulation cases.\n* 100 static virtual-interface port producer\u002Fconsumer simulation cases.\n* 100 SystemVerilog immediate-assertion simulation\u002Ffailure-rejection cases.\n* 100 signed SystemVerilog arithmetic\u002Fcast\u002Fshift simulation cases.\n* 100 signed arithmetic\u002Fcomparison\u002Fshift synthesis and RTL-versus-gate\n  simulation cases.\n* 100 clocked overlapping-implication SystemVerilog property simulation and\n  failure-rejection cases.\n* 100 non-overlapping `|=>` SystemVerilog next-sample property simulation and\n  failure-rejection cases.\n* 100 SystemVerilog `assume property` \u002F labeled `cover property` simulation\n  and coverage-hit cases.\n* 100 fixed-cycle `##[n]` SystemVerilog property-delay simulation and\n  coverage\u002Ffailure-rejection cases.\n* 100 bounded-delay-range `##[a:b]` SystemVerilog property simulation and\n  coverage\u002Ffailure-rejection cases.\n* 100 bounded consecutive-repetition `[*n]` SystemVerilog property simulation\n  and coverage\u002Ffailure-rejection cases.\n* 100 bounded repetition-range `[*a:b]` SystemVerilog property simulation and\n  coverage\u002Ffailure-rejection cases.\n* 100 bounded goto-repetition `[->n]` SystemVerilog property simulation and\n  coverage\u002Ffailure-rejection cases.\n* 100 bounded goto-repetition-range `[->a:b]` SystemVerilog property\n  simulation and coverage\u002Ffailure-rejection cases.\n* 100 bounded nonconsecutive-repetition `[=n]` \u002F `[=a:b]` SystemVerilog\n  property simulation and coverage\u002Ffailure-rejection cases.\n* 100 `disable iff` SystemVerilog property abort\u002Fre-enable simulation cases.\n* 100 bounded same-delay SystemVerilog sequence `and`\u002F`or` composition\n  property simulation cases.\n* 100 bounded fixed-delay two-sequence SystemVerilog composition property\n  simulation cases.\n* 100 SDC design-wide transition\u002Fcapacitance\u002Ffanout quality-rule parsing and\n  analysis cases.\n* 100 object-scoped SDC transition\u002Fcapacitance\u002Ffanout quality-rule parsing,\n  override, wildcard, and analysis cases.\n* 100 SDC `set_input_transition` \u002F `set_load` port\u002Fnet\u002Fpin parsing and\n  quality-analysis cases.\n* 100 SDC `set_clock_transition` root\u002Fgenerated-clock parsing and clock-network\n  transition-analysis cases.\n* 100 SDC independent minimum\u002Fmaximum clock-transition setup, hold, recovery,\n  and removal lookup cases.\n\nRun a subset by case-name prefix:\n\n```sh\nSUITE_FILTER=ams_rc cargo test -p eda-tests --test suite\n```\n\n## Major crates\n\n| Area | Crates |\n|---|---|\n| Shared IR\u002Flogic\u002Flibrary\u002Fnetlist | `eda-core`, `eda-ir` |\n| RTL frontend | `eda-hdl`, `eda-slang` |\n| Digital simulation and waves | `eda-sim`, `eda-waveform` |\n| Analog\u002Fmixed-signal simulation | `eda-ams` |\n| Synthesis and netlist export | `eda-synth` |\n| Formal\u002Fequivalence | `eda-formal`, `eda-assert` |\n| Timing and constraints | `eda-sta`, `eda-sdf`, `eda-spef` |\n| Physical implementation | `eda-pnr`, `eda-cts`, `eda-eco` |\n| Editable schematic database | `eda-schematic` |\n| Power\u002FIR\u002Freliability | `eda-power`, `eda-upf`, `eda-ir` |\n| Verification quality | `eda-coverage`, `eda-cdc`, `eda-dft`, `eda-fault`, `eda-lvs` |\n| Agent\u002FAPI\u002FCLI surfaces | `eda-api`, `eda-cli`, `eda-tests` |\n| Long-running agent service | `eda-daemon` |\n\n## Agent API examples\n\n```rust\n\u002F\u002F RTL to mapped netlist, equivalence, timing, placement, and routing.\nlet flow = eda_api::run_flow(rtl, Some(\"top\"))?;\n\n\u002F\u002F SPICE DC\u002FAC\u002Ftransient analyses.\nlet results = eda_api::run_spice(spice)?;\nlet text = eda_api::spice_report(&results);\n\n\u002F\u002F Machine-readable capability\u002Fgap discovery.\nlet gaps = eda_api::missing_capabilities();\nlet audit = eda_api::capability_report();\n\n\u002F\u002F Launch the bundled browser schematic editor host.\nlet editor = eda_api::SchematicBrowserServer::bind(document, \"127.0.0.1:0\")?;\n\n\u002F\u002F Launch the bundled browser layout\u002FDRC editor host.\nlet layout = eda_api::LayoutBrowserServer::bind(\n    layout_document, \"M1\", \"vdd\", \"VIA1\", \"127.0.0.1:0\",\n)?;\n```\n\nThe CLI mirrors key API flows:\n\n```sh\ncargo run -p eda-cli -- capabilities\ncargo run -p eda-cli -- daemon --listen 127.0.0.1:7822\ncargo run -p eda-cli -- pdk design.v --top top --pdk process.pdk\ncargo run -p eda-cli -- ams design.spice\ncargo run -p eda-cli -- ams design.spice --stats vendor.stats\ncargo run -p eda-cli -- ams design.spice --def-locations layout.def\ncargo run -p eda-cli -- ams design.spice --rmodels layers.rmodels\ncargo run -p eda-cli -- flow design.v --top top\n```\n\n## Scope and current gaps\n\nThis project is not yet, and must not be represented as, a drop-in replacement\nfor Cadence or Synopsys. The capability API is intentionally explicit about\nimplemented, partial, and missing domains. The current high-priority gaps are:\n\n1. advanced foundry MOSFET\u002FBJT compact models beyond Level-1\u002FEbers-Moll and their advanced charge equations;\n2. complete foundry sheet-resistance\u002Faging models, noise correlation, nonlinear covariance propagation, multi-carrier envelope solving, and harmonic balance;\n3. externally certified foundry PDK calibration and golden model correlation;\n   portable typed PDK manifests, explicit PVT-tagged delay-scale corners, and\n   checksummed inline per-corner Liberty views with deterministic per-corner\n   signoff checks are implemented.\n4. a commercial-strength SystemVerilog\u002FSDC language surface;\n5. an interactive schematic\u002Flayout editor shell (the API-first editable schematic database and SVG renderer exist);\n6. complete daemon coverage for every API and externally cancellable long-running jobs;\n   the current JSON\u002FTCP daemon, remote job queue, and typed job manager cover a\n   foundational subset including formal RTL equivalence, standalone RTL\n   STA\u002FPnR\u002FDFT\u002FCDC\u002Ffault\u002Fpower\u002FIR-EM\u002Ftemporal-property BMC, functional\n   coverage, and timed RTL simulation, with cooperative RTL\u002FPDK stage,\n   SAT\u002FBMC\u002Fequivalence\u002Fk-induction search, simulator delta scheduling, router\n   search, single-corner physical-timing stages, and AMS\n   optimizer\u002Fquantized-refine loop cancellation.\n\nUse `eda_api::capabilities()` or `eda capabilities` to obtain the authoritative\ncurrent-state audit rather than relying on this document alone.\n","RSI-Chip 是一个面向电子设计自动化（EDA）的 Rust 原生工具链，聚焦于数字\u002F模拟\u002F物理设计流程的模块化、API 优先架构。核心功能包括：支持 RV32I 和 i8086 指令集的黄金模型仿真与 RTL 验证平台（含 ELF32、.COM、.EXE 程序加载执行）、SystemVerilog 前端集成（基于 slang 库实现 AST 解析与诊断）、以及跨层级的差分验证与 LEC（逻辑等价性检查）支撑能力。技术特点为高内聚低耦合的 crate 设计、支持软硬件协同仿真（--sv 模式对接 RTL 总线）、确定性随机测试与全指令覆盖验收门控。适用于 CPU 微架构验证、教学级处理器实现、SoC 原型快速评估及 EDA 工具链研发场景。",2,"2026-11-24 04:40:28","CREATED_QUERY"]