current property

CsrImplementationConfiguration get current

Policy used when a constructor does not provide an explicit override.

Without an enclosing run, a MemoryConfigurationScope requesting MemoryBacking.model selects the software implementation with every hardware register connected, so ports match the RTL; otherwise the RTL implementation is used.

Implementation

static CsrImplementationConfiguration get current =>
    Zone.current[_key] as CsrImplementationConfiguration? ??
    (MemoryConfigurationScope.current.backing == MemoryBacking.model
        ? const CsrImplementationConfiguration(
            implementation: CsrImplementation.model)
        : const CsrImplementationConfiguration());