RISC-V Homogeneous Fusion Edge Architecture: Boundaries and Deployment Conditions

    Homogeneous fusion architecture on RISC-V combines general-purpose CPU clusters and AI-optimized compute clusters under one ISA and one operating system, aiming to reduce heterogeneous development overhead at the edge. This article explains the design philosophy, what the RVA23 profile really means for edge LLM inference, hardware-software co-design considerations, unified OS scheduling and resource governance, and three conditions you must verify before committing to this architecture. It is a good fit for edge workloads that mix general control tasks with lightweight AI inference, but not for hard real-time control or projects that depend on a closed-source NPU ecosystem.

    The Bottom Line

    Homogeneous fusion architecture suits edge scenarios where general-purpose control tasks coexist with lightweight AI inference and where you want to reduce the burden of heterogeneous development. It is not suitable for scenarios with strict hard real-time control requirements, nor for projects that must rely on a specific closed-source NPU ecosystem. Before deployment, you must confirm three things: the target chip’s extension and standardization status, cache coherence and memory model of the shared address space, and end-to-end performance data for your target model.

    1. Design Philosophy of Homogeneous Fusion Computing

    The core idea of homogeneous fusion computing is to place a general-purpose RISC-V CPU cluster and an AI-optimized compute cluster together under a unified RISC-V instruction set architecture and extension framework. Both types of compute units run the same operating system (typically Linux) and are scheduled and managed at the thread or task level.

    This approach resembles the big.LITTLE design of the mobile era, where phone chips combined big and little cores under a unified ARM architecture and a single OS to balance performance and power. Homogeneous fusion extends this idea to AI workloads: on one instruction set and one operating system, it provides both high general-purpose performance and high AI throughput, while trying to control the software fragmentation costs caused by heterogeneity.

    The general-purpose RISC-V CPU handles OS compatibility, control-plane determinism, and long-term maintainability. The ISA-integrated AI compute resources run in the same address space and process model, with low invocation overhead. Ideally, this reduces cross-device data copies and context switches.

    The table below compares the two approaches:

    Dimension CPU + Discrete NPU Homogeneous Fusion (RISC-V)
    Programming model Requires dedicated drivers, runtimes, or vendor SDKs Based on standard instruction set and Linux process model
    Memory copies Often requires moving data between host and device memory Shared address space can reduce copies, but depends on cache coherence
    Scheduling unit Device task queues, independent of CPU scheduling Threads or tasks, included in unified scheduling and resource governance
    Ecosystem fragmentation Toolchains vary significantly across NPUs Relies on a unified ISA, but parts like matrix extensions remain vendor-specific
    Applicable boundary High compute density, efficient for fixed operators Mixed general and AI workloads, cost- and complexity-sensitive scenarios

    This table does not mean homogeneous fusion is better on every metric. A discrete NPU may achieve higher energy efficiency on specific operators; the advantages of homogeneous fusion lie mainly in system complexity and development and maintenance costs.

    2. What the RVA23 Profile Really Means and Its Impact on Edge LLMs

    RVA23 is an application processor profile defined by RISC-V International, officially released in 2024. It specifies a set of mandatory and optional extensions, such as integer, atomic operations, compressed instructions, and the vector extension (V). It is not an instruction set itself. The instruction set is defined by the base ISA and its extensions; a profile specifies which extensions an application processor should include, making it easier for the software ecosystem to develop against a unified baseline.

    This matters for hardware selection. With an RVA23-compatible processor, operating systems, compilers, and libraries can be configured and optimized against the same baseline, and porting costs are typically lower than developing for scattered extension combinations. However, RVA23 does not define the matrix computation capabilities that large language models require. Matrix operations are usually provided by vendor extensions or independent AI compute units, and this part should not simply be treated as part of RVA23.

    For edge LLM inference, the practical impact of RVA23 mainly includes the following:

    • Vector width: The vector register length (VLEN) may differ across implementations, so the same inference kernel will have noticeably different throughput on different hardware and must be tested per target device.
    • Compiler version: The compiler must support the relevant extensions and tuning options. Older toolchains may fail to generate efficient vector code.
    • Kernel configuration: The kernel must enable the corresponding features, such as saving and restoring vector context and performance-counter-related options.
    • Performance validation: Measure tokens generated per second, time to first token, memory bandwidth usage, and power consumption with your target model on your target hardware, rather than relying on peak compute figures.

    3. Hardware-Software Co-design for Efficient LLM Inference

    When running large language models on edge devices, the first bottleneck encountered is usually memory bandwidth, followed by peak compute. The homogeneous fusion approach uses hardware-software co-design to reduce data movement and keep compute units close to the data.

    3.1 Matrix Extensions and a Unified Address Space

    Some vendors have proposed extensions targeting matrix multiplication. IME, commonly mentioned in related material, is one example, but its full name, exact instruction definitions, and standardization status should be confirmed against the vendor’s official documentation. If a matrix extension is not yet standardized, it depends on specific compiler, kernel, and runtime support. Such extensions should not be written into cross-platform solutions as general capabilities.

    When the AI compute unit shares the same address space as the general-purpose CPU, tensor data can be accessed directly by both types of units, without copying back and forth between separate device memory and main memory. But this conclusion has prerequisites. Cache coherence must hold between the two types of units, or the necessary cache maintenance operations must be performed before and after task submission. If the AI compute unit accesses memory through a non-coherent DMA path, explicit cache flushes or invalidations are required, and while copies are reduced, synchronization overhead remains. Memory ordering must also be correct; otherwise, model weights may be read before they are fully written.

    3.2 Mapping the Software Stack

    At the software level, kernels can be written in high-level languages such as Triton. Whether these tools can generate code for a specific AI compute unit depends on whether the backend already supports that hardware. Before use, confirm the backend version and validate the correctness and performance of the generated kernels.

    If the compiler and runtime can treat both types of compute units uniformly, operators can be mapped more easily to the appropriate unit for load balancing. But such mapping requires the runtime to maintain accurate hardware capability information and to provide fallback paths when resources are insufficient.

    3.3 Task Scheduling Example

    The following pseudocode shows the dispatch logic for general tasks and inference tasks under a unified control plane. It is illustrative code and cannot be compiled or run directly. Its functions are assumed to be provided by a hypothetical runtime, with error handling and fallback branches added.

    1. // Illustrative pseudocode, not runnable code.
    2. // Functions like allocate_shared_memory and load_model_weights
    3. // are assumed to be provided by the runtime.
    4. int schedule_edge_task(Task task) {
    5. if (task.type == TASK_GENERAL) {
    6. return dispatch_to_cpu_cluster(task);
    7. }
    8. if (task.type != TASK_LLM_INFERENCE) {
    9. return ERR_UNSUPPORTED_TASK;
    10. }
    11. if (!ai_cpu_available()) {
    12. // Fallback: run a quantized small model on the general-purpose CPU
    13. return dispatch_to_cpu_cluster_fallback(task);
    14. }
    15. void* tensor_ptr = allocate_shared_memory(task.tensor_size);
    16. if (tensor_ptr == NULL) {
    17. return ERR_OUT_OF_MEMORY;
    18. }
    19. if (load_model_weights(tensor_ptr) != OK) {
    20. free_shared_memory(tensor_ptr);
    21. return ERR_MODEL_LOAD;
    22. }
    23. // In a shared address space, ensure cache coherence or perform
    24. // cache maintenance before submission
    25. sync_memory_for_device(tensor_ptr, task.tensor_size);
    26. return dispatch_to_ai_cpu_cluster(task, tensor_ptr);
    27. }

    This code demonstrates three key points: check capabilities first, allocate resources second, and synchronize memory last. A real implementation also needs to handle concurrent access, read-only sharing of weights, and task cancellation.

    4. OS-Level Unified Scheduling and Resource Governance

    The goal of homogeneous fusion is to let one platform, one software stack, and one control plane manage all compute. But this goal has prerequisites and cannot be achieved automatically by the default Linux scheduler alone.

    Unified scheduling typically requires the following conditions:

    • Same ISA and same OS: Both types of compute units must be correctly recognized by the kernel and use a consistent memory model.
    • Cache coherence: The access order and visibility of shared data must be guaranteed by hardware or an explicit software protocol.
    • Scheduling domains and capacity information: The kernel needs to know the compute capacity differences between cores to make sensible load-balancing decisions. Linux scheduling domains and CPU capacity mechanisms provide basic support, but AI compute units usually also require driver or kernel extension cooperation.
    • User-space runtime or driver: Accelerated tasks often need to be wrapped as schedulable kernel threads or submitted through a dedicated driver. Ordinary threads are not automatically scheduled onto AI compute units.

    In resource-constrained edge environments, power and thermal design power (TDP) are metrics that must be strictly controlled. A resource governance module can monitor the load on general-purpose CPUs and AI compute units, dynamically adjust frequency and voltage via DVFS, and power down some AI compute units when idle. These measures also bring side effects:

    • Frequent frequency scaling causes performance jitter; time to first token and inter-token latency may become unstable.
    • After downscaling, latency increases, but the numerical results of model output do not change.
    • Waking AI compute units after power-down takes time, so the first response to a burst request will be slower.
    • Control tasks with high real-time requirements should be isolated on dedicated cores and not share scheduling policies with inference tasks.

    Cloud-edge collaboration is a common deployment pattern for this architecture. The cloud handles model distribution, version management, and global monitoring, while edge devices perform low-latency inference and control locally. The design should clearly define local behavior for network disconnection, version rollback, and model validation failure, rather than assuming the device is always online.

    5. Three Conditions to Verify Before Deployment

    5.1 Extension and Standardization Status

    Confirm which RVA23 extensions the target chip supports, whether the matrix extension is standardized, and whether the compiler, kernel, and runtime support it. Record this information in your selection documentation, with vendor documentation as the authoritative reference.

    5.2 Shared Memory Coherence and Memory Ordering

    Confirm whether the memory access path of the AI compute unit satisfies cache coherence. If not, explicitly define when cache maintenance occurs in software and verify memory ordering with concurrency tests.

    5.3 End-to-End Performance Data

    Using your target model, target quantization method, and realistic input lengths, record time to first token, throughput, memory usage, power consumption, and temperature on the target hardware. Only this data can show whether the homogeneous fusion approach actually delivers benefits.

    6. Conclusion

    A RISC-V-based homogeneous fusion architecture offers a path to lower system complexity for edge AI. It relies on a unified instruction set, a unified operating system, and a shared address space to reduce the development burden caused by heterogeneity. But the benefits of this path depend on the extension support of the specific hardware, cache coherence, software stack maturity, and scheduling implementation. RVA23 provides a consistent application processor baseline but does not directly solve the matrix computation problem; matrix capabilities must be verified separately.

    At the project initiation stage, first use the three conditions above to judge feasibility, then run end-to-end benchmarks with the target model. Only when the benchmark data supports it is homogeneous fusion worth adopting as the primary architectural direction.