Metraipolis › archive › dc_753593ad59f5
Zero-Instruction Sensor Reads: Register-Mapped Peripherals and Hardware PWM on a Five-Stage Soft Processor — arXiv:2608.05638
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.05638
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-31T11:09:22.745Z
- SHA-256 of the archived text
055b1a33956b20db388aa0c6c1780476335e8e6434c5d9612f2a8eabc1e38f69- Stable URL of this page
https://metraipolis.com/documento/dc_753593ad59f5
How to cite
Zero-Instruction Sensor Reads: Register-Mapped Peripherals and Hardware PWM on a Five-Stage Soft Processor — arXiv:2608.05638 — arXiv (en), https://arxiv.org/abs/2608.05638 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_753593ad59f5 (Metraipolis archive dc_753593ad59f5, sha256 055b1a33956b20db388aa0c6c1780476335e8e6434c5d9612f2a8eabc1e38f69)
BibTeX
@misc{dc753593ad59f5,
title = {Zero-Instruction Sensor Reads: Register-Mapped Peripherals and Hardware PWM on a Five-Stage Soft Processor — arXiv:2608.05638},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.05638},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_753593ad59f5; sha256 055b1a33956b20db388aa0c6c1780476335e8e6434c5d9612f2a8eabc1e38f69},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.05638. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
We present a case study in application-driven specialization of a five-stage soft processor, evaluated on the inner control loop of a reaction-wheel self-balancing bicycle. Starting from a custom 32-bit RISC core in the MIPS tradition, we specialize the design in two ways. First, two frequently accessed peripheral inputs are mapped directly into architectural register state, written every cycle by hardware and owned exclusively through the register file's write-port structure rather than by arbitration. Second, four periodic PWM channels are offloaded to hardware and driven continuously from four exported registers, removing periodic actuation from software entirely. Because peripheral values are addressable as ordinary register operands, all ten sensor reads in the control loop cost no dedicated instruction and no dedicated cycle, folding into arithmetic that executes anyway; the memory-mapped equivalent requires an explicit load per snapshot and costs five extra instructions and cycles. The actuation path likewise removes waveform maintenance from software entirely. We report two configurations, because the extensions and the single-cycle array multiplier they were deployed alongside are not present together in a single archived build: an archived configuration, whose worst-case loop is 91 cycles, and the integrated configuration matching the deployed system, at 43 cycles. Against a 20 ms actuation frame these are margins of roughly 7,300x and 15,000x. The deadline is met by so wide a margin in either case that the specialization was not necessary for real-time compliance; its value lies in instruction count and software simplicity, not in determinism, which an on-chip single-cycle I/O region already provides. The zero-instruction sensor read is independent of that choice: the multiplier cannot affect whether a peripheral read needs an instruction of its own. Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-07 in eess.SY). Categorie arXiv: Hardware Architecture (cs.AR) ; Systems and Control (eess.SY). Pagina del lavoro: https://arxiv.org/abs/2608.05638 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-31T10:59:37.444Z dalla pagina https://arxiv.org/catchup/eess.SY/2026-08-07?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).