arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.00974cs.ARcs.ET
收藏

面向低成本FPGA的WASM子集堆栈架构:使用开源EDA流程

A WASM-Subset Stack Architecture for Low-cost FPGAs using Open-Source EDA Flows

KIIT Deemed to be University(KIIT认可大学)

Aradhya Chakrabarti

AI总结:

本文提出了一种基于WASM子集的32位双堆栈微处理器架构,利用开源EDA流程在低成本FPGA上实现高代码密度和可移植性。

摘要:

在资源受限的FPGA上,软核处理器常面临代码密度低和依赖专有工具链的问题。本文详细介绍了针对低成本、资源受限的FPGA设计的32位双堆栈微处理器架构。该处理器在Gowin GW1NR-9(Tang Nano 9K)上实现,采用受WebAssembly(WASM)规范子集启发的指令集架构(ISA),以实现高代码密度。与传统软核依赖专有供应商工具链和不透明IP块不同,该设计使用开源流程进行综合和布线,提供透明性和可移植性。该架构具有双堆栈模型(数据和返回),通过执行-in-place(XIP)机制直接从SPI Flash执行,以节省目标设备上的稀缺Block RAM。分析了堆栈深度参数化涉及的权衡,证明8个入口的分布式RAM实现能够在逻辑资源利用率(约80%)和布线拥堵之间取得平衡。此外,通过改进的有限状态机(FSM)设计解决了单周期堆栈操作中的定时危险。系统在受Flash延迟限制的情况下实现了稳定的27 MHz运行频率,并成功执行了简单的应用程序,包括单数字和多数字中缀计算器。

英文摘要:

Soft-core processors on resource-constrained FPGAs often suffer from low code density and reliance on proprietary toolchains. This paper details the design, implementation, and evaluation of a 32-bit dual-stack microprocessor architecture optimized for low-cost, resource-constrained Field-Programmable Gate Arrays (FPGAs). Implemented on the Gowin GW1NR-9 (Tang Nano 9K), the processor utilizes an instruction set architecture (ISA) inspired from a subset of the WebAssembly (WASM) specification to achieve high code density. Unlike traditional soft-cores that often rely on proprietary vendor toolchains and opaque IP blocks, this design is synthesized and routed utilizing an open-source flow, providing transparency and portability. The architecture features a dual-stack model (Data and Return), executing directly from SPI Flash via an Execute-in-Place (XIP) mechanism to conserve scarce Block RAM on the intended target device. An analysis of the trade-offs involved in stack depth parametrization is presented, demonstrating that an 8-entry distributed RAM implementation provides a balance between logic resource utilization ($\sim 80\%$) and routing congestion. Furthermore, timing hazards in single-cycle stack operations are identified and resolved through a refined Finite State Machine (FSM) design. The system achieves a stable operating frequency of 27 MHz, limited by Flash latency, and successfully executes simple applications including a single and multi-digit infix calculator.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑