RVA23-Compliant Homogeneous Fusion RISC-V Architecture for Edge AI

    This article examines a homogeneous fusion computing architecture that combines a high-performance RISC-V CPU cluster with an ISA-integrated AI-CPU cluster under a unified RISC-V ISA and Linux operating system. It explains why this approach addresses the software, memory, and scheduling limitations of conventional CPU-plus-accelerator designs, discusses the role of RVA23 compatibility, and covers software-hardware co-design for LLM inference, OS-level resource governance, robotics use cases, and the evolution path of the architecture.

    RVA23-Compliant Homogeneous Fusion RISC-V Architecture for Edge AI

    1. Background and Problem Definition

    As edge computing enters a new stage driven by local large language models (LLMs) and robotics applications, the industry faces a core contradiction: how to deliver both strong general-purpose computing performance and strong AI compute capability in a single system, while making the result scalable and commercially viable at controllable cost.

    Traditional solutions usually adopt a heterogeneous architecture, pairing a general-purpose CPU with a discrete AI accelerator such as an NPU or GPU. Although mature, this approach exposes several prominent problems in edge scenarios:

    • Fragmented software stack: Accelerators often require proprietary drivers, runtimes, and operator libraries, which are separated from the main CPU software ecosystem and incur high porting and maintenance costs.
    • Memory boundary overhead: The CPU and accelerator usually do not share a unified address space, so data movement and address translation introduce significant latency and power costs.
    • Split scheduling: General-purpose tasks and AI tasks belong to different scheduling domains, making resource governance complex and making deterministic end-to-end latency guarantees difficult to achieve.

    To address these challenges, a computing paradigm called homogeneous fusion has been proposed: under a unified RISC-V instruction set architecture (ISA) and extension framework, a high-performance RISC-V CPU cluster is combined with an AI-optimized AI-CPU cluster, meaning ISA-integrated AI compute units. Both run the same Linux operating system and use threads or tasks as the basic scheduling unit, enabling unified scheduling and resource governance. This forms a system-level delivery model of “one platform, one software stack, one operational surface.”

    2. Architecture Design Philosophy of Homogeneous Fusion

    2.1 Analogy and Evolution Logic

    This design approach can be compared with the evolution of the mobile Internet era: to achieve both high performance and low power on smartphones, the industry introduced big.LITTLE designs on top of the Arm ecosystem running a single operating system. Although the two core types have different performance positions, they share the same ISA and operating system view, thereby keeping the software cost of heterogeneity within a controllable range.

    Similarly, in the AI era, the goal of homogeneous fusion is to obtain both high performance and high AI throughput within a unified RISC-V ecosystem while avoiding the system fragmentation caused by traditional heterogeneous acceleration. The key difference is that big.LITTLE addresses the “performance tier” problem, whereas homogeneous fusion addresses the problem of unifying general-purpose computing and AI computing paradigms.

    2.2 Division of Work Between the Two Clusters

    The architecture contains two types of compute clusters:

    1. High-performance CPU cluster: Responsible for the operating system, control plane, system services, and complex application logic, with emphasis on single-thread and multi-thread performance, system responsiveness, and engineering maintainability.
    2. AI-CPU cluster: An AI-first compute unit that natively supports neural network computation through ISA-level extensions, such as IME-like extensions for matrix operations and AI inference. It is especially designed through software-hardware co-design for efficient LLM inference execution.

    Because both share the same ISA foundation, AI compute resources can be invoked with low overhead within the same address space and process model. This is the most fundamental difference from the traditional “CPU plus discrete accelerator” approach.

    3. RVA23 Compatibility: A Key Anchor for Ecosystem Strategy

    RVA23 is an application processor profile defined by RISC-V International. It specifies the base instruction set and mandatory extension set required to build full Linux ecosystem compatibility. For edge AI chips, implementing RVA23 has multiple implications:

    • Plug-and-play software ecosystem: Compliance with RVA23 means mainstream Linux distributions, compiler toolchains, and language runtimes can run directly without customized porting.
    • Standardized path for extensions: RVA23 provides a standardized framework for extensions such as vector and bit-manipulation extensions. Custom extensions required by the AI-CPU can be layered on top without breaking ecosystem compatibility.
    • Long-term maintainability: A standardized ISA baseline reduces the risk of binary compatibility issues across product generations and protects customers’ software investment.

    From an engineering practice perspective, enabling RVA23 involves complete implementation across multiple layers, including instruction set implementation, privileged architecture, memory model consistency such as RVWMO, and virtual memory support. It is an important measure of the maturity of a RISC-V application-level processor.

    4. Software-Hardware Co-Design for LLM Inference

    The core bottlenecks of LLM inference at the edge are memory bandwidth, operator execution efficiency, and KV cache management. The co-design of the AI-CPU cluster usually focuses on the following areas.

    4.1 ISA-Level AI Extensions

    By introducing extension instructions for matrix multiplication, activation functions, and quantization within the RISC-V ISA framework, AI operators can be scheduled by compilers like ordinary instructions. This avoids the asynchronous overhead of traditional accelerators, such as “submit task—wait—retrieve result.” Typically, matrix operation extensions map tiled computation to tightly coupled on-chip compute units, while vector extensions handle data movement and post-processing.

    4.2 Memory and Cache Strategy

    LLM inference has clear memory-intensive characteristics. Co-design needs to consider:

    • Large-capacity, low-latency on-chip cache or tightly coupled memory for storing activations and KV cache;
    • Efficient computation paths supporting low-precision data types such as INT8 and INT4, reducing bandwidth pressure while maintaining model quality;
    • Coherent shared memory between the CPU cluster and AI cluster to avoid explicit copying.

    Schematically, a compute kernel with integrated AI extensions can be expressed approximately as:

    1. // Pseudo-code: ISA-extension matrix multiplication kernel
    2. void matmul_int8(int8_t *A, int8_t *B, int32_t *C,
    3. int M, int N, int K) {
    4. for (int m = 0; m < M; m += TILE_M)
    5. for (int n = 0; n < N; n += TILE_N)
    6. // A single extension instruction performs tiled accumulation for TILE_M x TILE_N x K
    7. ai_mma_blocked(&A[m * K], B, &C[m * N]);
    8. }

    4.3 Compiler Stack and Operator Generation

    To shorten the adaptation cycle for new models, the AI software stack introduces a domain-specific compilation path similar to Triton: developers describe operators with high-level tensor semantics, and the compiler automatically performs tiling, instruction selection, and pipeline scheduling, mapping them to AI extension instructions. This greatly reduces the engineering burden of hand-writing operators when deploying new models at the edge.

    5. OS Scheduling and Resource Governance

    In a homogeneous fusion system, the AI cluster and the general-purpose cluster are part of a unified resource pool from the operating system’s perspective. Resource governance needs to solve three problems:

    1. Task placement: The scheduler places tasks on the appropriate cluster according to their compute characteristics, such as general logic versus tensor-intensive work, while ensuring deterministic latency for control-plane tasks.
    2. Compute quotas: In multi-task concurrent scenarios, cgroup-like mechanisms manage quotas for CPU time, memory bandwidth, and AI compute to prevent inference workloads from crowding out system services.
    3. Unified observability: General-purpose and AI workloads share the same monitoring, logging, and profiling toolchain, avoiding the maintenance burden of “two observability systems” in heterogeneous systems.

    This unified scheduling at thread/task granularity is the software foundation that makes the “homogeneous” promise achievable.

    6. Typical Application Form: Edge AI and Robotics

    Taking robotics as an example, a typical workload partition is as follows:

    • Control plane: Real-time-sensitive tasks such as motion control, sensor fusion, and safety monitoring run on the high-performance CPU cluster;
    • AI plane: Tasks such as visual perception, voice interaction, and local LLM inference run on the AI-CPU cluster;
    • Coordination logic: The decision layer directly calls inference results within the same address space, without cross-device communication, significantly reducing end-to-end latency.

    Compared with the traditional “main control board plus AI module” approach, this integrated design reduces board area, power consumption, and system complexity, offering direct commercial value for cost-sensitive edge products.

    7. Evolution Path and Outlook

    The value of this paradigm has been validated in actual deployments of first-generation products: the general-purpose RISC-V CPU ensures system and ecosystem compatibility, control-plane determinism, and engineering maintainability; ISA-integrated AI compute resources are invoked with low overhead, greatly reducing the complexity of edge deployment. Second-generation products further significantly enhance general-purpose computing performance, system responsiveness, and single-thread/multi-thread capabilities to support more complex edge control planes and application logic.

    Looking ahead, as the RVA23 ecosystem continues to mature and AI extension compiler toolchains mature, homogeneous fusion is expected to become an important architecture option for edge AI and robotics. It trades ISA uniformity for software stack simplicity and memory coherence for efficient data paths, ultimately enabling low-cost, scalable delivery of both general-purpose and AI capabilities on resource-constrained edge hardware.