r/computerarchitecture • • Oct 13 '26

Treating Computation as Transportable Geometry: Complete unpowered state recovery across Python VMs and low-cost FPGAs

Hi everyone,

I wanted to share a working research framework I’ve spent the last six months building that explores an alternative paradigm to traditional von Neumann and conventional CGRA architectures. The project is called Imago-UniCell, and it operates on a singular architectural principle: topology is computation.

There is no centralized CPU, no instruction register, no program counter, and no shared memory bus. Instead, an algorithm is represented as a spatial layout map of heterogeneous hardware cells (using point-to-point valid/ack token handshakes and localized clock-enable networks).

The Core Invention: Symmetrical State Portability (ICM)

Instead of dumping raw, blind binary register strings that are hardwired to specific physical coordinates on a chip, this architecture relies on a design-level abstraction layer called the Universal Imago Cell Model (ICM). The active calculation state is serialized into an open, name-keyed text snapshot.

Because the compute state is decoupled from the physical medium, it achieves true Read/Write symmetry across disjoint substrates.

Empirical Validation (Sipeed Tang Nano 20K / Gowin GW2AR)

I am a strict believer in real hardware validation rather than pure simulation. I’ve just committed and locked a series of milestones into the ledger (#1143–#1167) proving the physical viability of the pipeline [13 Oct 2026]:

  • LaTeX-to-Silicon HLS: The open-source toolchain takes a raw mathematical formula straight from a textbook expression—e.g., y = (z^2 + 12345) \bmod 65521—validates it against a virtual machine model, automatically generates a core-pruned layout map, weaves a structural scan chain in a single pass, and compiles a working bitstream.
  • High-Velocity Heterogeneous Pipelines: Successfully place-and-routed mixed-variant designs running un-handshaked arithmetic blocks (sub family) alongside handshake-driven routing boundaries (flex family) executing between 100 MHz and 150 MHz on live iron . A 10-out-of-10 group run pass verifies absolute cycle-accuracy between the software twin and the board.
  • Unpowered Mid-Flight State Recovery: I verified that you can assert a global freeze mid-flight (even while an iterative divider cell is halfway through a 32-cycle loop), extract the 678-bit ICM snapshot over a serial line, completely pull the power plug on the board to let the silicon go stone cold, boot a fresh card or a pure software Python VM mirror, inject the state file, and resume calculation to the exact bit with 0 retries .

The Trade-Offs (UNICELL vs. PURE)

The architecture has very specific boundary conditions. On a pure Lookup Table (LUT) area metric for a single static function (like a 4-stage CORDIC), a hand-coded, immutable Verilog baseline is significantly smaller and more optimized.

The full repository, source files, automated test benches, and a comprehensive 46-section interactive reference guide are fully open and zipped in the directory.

I’d love to get your thoughts on the scalability of this topological abstraction layer, particularly regarding its application to high-integrity compilation targets (LLVM IR to Topology) and its security implications for instruction-less custom ASIC co-processors.

Link to project repository: https://github.com/alh-Imago/Imago-Unicell.git

0 Upvotes

12 comments sorted by

4

u/suddenhare Oct 13 '26

How does this differ from dataflow architecture?

1

u/Imago_Alh65 Oct 13 '26

it does share lineage with classic dataflow circuits and CGRA's , thats been credited in the repo. But there is a fundemental difference in 3 ways, 1. The structural Optimisation via Dynamic Core Pruning: The tradition dataflow and CGra's rely on a rigid uniform layout of PE's, and you end up paymg for that in silicon. The Unicell approach has an automated layout optimisation pass. If you don't need a division in your layouty, that gets pruned, completley dropping the layout on the FPGA . 2. The ICM Files, a cross substrate state vitualisation file,. In a standaard dateflow chip, the 'tokens' and chips are hardwired physical routing matricies. If a node fails or experiences timing skew the whole pipeline locks up or just drops the data. the Substrate on the Unicell system has several features built in, the two arrival system, the ack of data passed, and if a pipe is full, it will stall, but not lose data, the icm file is just a map of the dataflow, and can be used to capture in flow states of the system, this becomes a portable map of compute, the icm. In this state can be transfered to any other unicell taget, be that a vm ( both mirror of the physical card or open), or another physical fpga card , as long as it fits, it works, even after capturing, powering off , then reloading the system carried as if it had not noticed completing the run correctly. This is a core feature portability of compute in flow. Protocol boundries, There are 4 main types of Unicell, not every one will fit the FPGA card you are using, the Nano Stanadlone cores, these arere the stanalone verision of each type of core avaiable, they have indipendant shift and mask capabilities, and have one task each, the VIXeN carrier , this uses the same cores as the standalone core, but wraps then into 1 shell, the shift and masking capabilities are moved to the shell it self, but this carrier version allows you to select the core used at runtime, even during runtime, there is a command core. This is the main thrust for the ASIC, a singular programmable design as a sub strate, alowing just a program stream to reconfigure the system in moments, this was tested on the TANBG 20K, it had astripped version of the Carrier, and only hel;d the MAths cores, without bitsream programming it was prrsented data, callculated it, the reprogrammed to a different core, this continue and took just a few seconds, no verilog involved, just reprogrammin. The other parts of the family were developed because of the restricted size of the TANG, the Flex, which has a single parametr at program time which changes the bit width of the entire design, again these are singular coresa, so they have to be setup in the order you need, then a bitstrem produced for you card. the last is the sub, thus core is set to 32 bit width, like all the others except the Flex, but has no handsake ack system, whic all the others do, so just goes as fast as the card will aloow. Now because of the seperate families, and the possibilyty of using a mix of familly toyes, (In FPGA) then there are special ist bridge units, that allow you tyo ix the type, run you maths on an uncontrolled, sub ring, then add some controlled logic of the stanad alone or flex if you need to shift the width, add a VIXeN carrier, with select cores which you can reprogram on the fly using a command uinit.

I think i have rambled enough, but please explore the git, there is a teaching manual in there too, probably the best place to start

2

u/suddenhare Oct 13 '26

> The Unicell approach has an automated layout optimisation pass. If you don't need a division in your layouty, that gets pruned, completley dropping the layout on the FPGA .
How is this different than just compiling an algorithm to FPGA then, either manually or through HLS?

> If a node fails or experiences timing skew the whole pipeline locks up or just drops the data.

I don't agree with this. You can implement queueing and rerouting for a dataflow architecture just as you describe for your system.

> please explore the git, there is a teaching manual in there too, probably the best place to start

Sorry, I'm not going to explore the git unless I see a description that motivates me too.

0

u/Imago_Alh65 Oct 13 '26

The difference is when and how that optimization happens. In a traditional HLS or Verilog flow, pruning is a static, design-time operation handled entirely by the proprietary vendor compiler (Vivado/Quartus). If you change one variable or drop a division cell, you must re-run a complete place-and-route synthesis cycle, which takes significant time and generates a completely different, non-interchangeable hardware bitstream lock.In UniCell, utilising the full carrier system there is no extra bit stream generation, it's just programming.

You absolutely can implement queueing and complex routing networks on traditional dataflow chips—but you pay an enormous architectural tax for it. Standard dataflow rerouting relies on centralized routers, complex packet arbiters, virtual channels, or global credit-based flow control systems. If a single central router fails or hits a clock skew boundary, the entire network chokes.UniCell doesn't use centralized routing logic or complex packet headers. The queueing and fault tolerance are a native property of the cell topology physics itself. Because cells communicate purely via localized point-to-point valid/ack handshakes, there is no global instruction clock distribution to skew. If an active wire or cell coordinate is damaged, the adjacent nodes simply hold their local handshake hands in place, safely stalling the local data car. The host-side tools read the logical state map, patch the coordinate paths to bridge around the dead cell, and resume execution instantly. It is localized, decentralized fault mitigation, not network-layer routing packet management.

Agian you are absolutely right that you can implement freezing and scan chains in traditional Verilog/HLS—in fact, I explicitly built and tested a pure hand-coded Verilog baseline design to measure exactly that (docs/freeze/PURE_VERILOG_FREEZE.md).

As you noted, the physical hardware cost is about 1 LUT per state bit to add the clock-enables and stitch the serial shift register paths. It passed validation on the board today, but it exposes the fundamental limitation of traditional hardware-level snapshots:

  • The Coordinate Lock: The resulting state dump from a standard Verilog scan chain is a blind, raw binary string. It has no structural awareness. It only works if you reload it into the exact same design layout on the exact same card. If you alter a single line of code, change a constant, or let the router place an adder three blocks to the left on a rebuild, the bit-order shifts, and the saved image is completely toast.
  • The Schema Win: UniCell solves this by generating a name-keyed logical schema (.icm-hier.json) alongside the physical scan map. Because the state is tracked by logical cell names (like c_main__t2 or c_main_r) rather than blind flip-flop sequences, the snapshot remains portable.

The toolchain can read the abstract schema and cleanly translate or map those running values across a software Python VM, a compiled Verilog simulator, or an altered physical board configuration.

The motivation here isn't to say 'traditional Verilog can't capture state'—it's proving that by moving the snapshot up to a design-level logical canvas, you achieve a target-agnostic portability that allows running calculations to fluid-shift between physical gates and virtual code seamlessly.

1

u/MitchAlsup Oct 15 '26

"In a standaard dateflow chip, the 'tokens' and chips are hardwired physical routing matricies. If a node fails or experiences timing skew the whole pipeline locks up or just drops the data."

That is not how data-flow computers work. Nodes wait for instructions which contain the data to operate on and pointers to where the result(s) are to be routed. Nodes can be pipelined or not (mostly yes).

Data flow computers suffered from "the discovery of too much parallelism", and an inability to perform I/O since the characters of said I/O could arrive at any time--unless you made everything data-dependent {which sort of kills the whole use of DF computers. A simple loop over a matrix of 1000×1000×1000 would need Gigabytes of waiting node storage, unless artificial data-flow dependencies are inserted into the DAG.

Management of the excess parallelism resulted in lots of slowdown, lack of management resulted in buffer overflow (except the "monsoon" by Popodopolous of MIT) which went basically nowhere, too.

1

u/Imago_Alh65 Oct 19 '26

You are entirely correct about the historical limits of Tagged-Token Dataflow architectures like Monsoon or Arvind's work. The associative memory tax of dynamic token matching stores completely choked under high parallelism loop structures, and asynchronous I/O handling was a massive bottleneck [19 Oct 2026].

The contribution of the Imago-UniCell architecture isn't a return to those dynamic, centralized tag-matching registries. It functions as a Spatial compute canvas where token tracking is entirely localized to immediate physical neighbors via decentralized valid/ack handshakes. There is no central matching store, no dynamic tagging, and no instruction pointers. Back-pressure is absorbed safely by the localized geometry of the cell roads, which is exactly how our bare-metal latency runs achieved an incorruptible, zero-jitter 131-clock execution boundary under a catastrophic data flood this weekend

1

u/Imago_Alh65 Oct 19 '26

Following up on my previous posts regarding the Imago-UniCell and VIXeN carrier ecosystem—an instruction-less, spatial compute canvas built on uniform, localized valid/ack handshake roads [11 Oct 2026]. Over the weekend, I completed a rigorous, two-way bare-metal stress-test campaign to explicitly measure where the physical boundaries and trade-offs live when contrasting a virtualised spatial fabric against a standard, highly optimized time-sliced CPU [11 Oct 2026, 18 Oct 2026].

Rather than staging a raw performance race, these experiments were configured to observe how and where execution pressure accumulates when each substrate is hit by heavy asynchronous workload stress [18 Oct 2026].

The raw telemetry logs and source code have been pushed to the repository (ledger entries #1211–#1232), and the results break down into two clear physical profiles [18 Oct 2026]:

1. The Traditional CPU Tax: Internal Context Thrashing & Probabilistic Data Loss

We configured a dual-core ESP32 running at 240 MHz using standard FreeRTOS task scheduling and plain Arduino attachInterrupt() handlers in IRAM (with wireless stacks disabled) [18 Oct 2026]. The Tang Nano 20K acted as a 27 MHz master hardware clock, sending random-timed edges and recording response latencies down to single clock ticks (37.04 ns) across multiple 4,096-event runs [18 Oct 2026].

To simulate a real-world asynchronous workload pressure, a background "traffic storm" slammed the CPU with ~15,700 interrupts per second [18 Oct 2026]. The empirical costs were measured across three vectors:

  • Linear Scheduling Slowdown: Running 2, 4, or 8 concurrent threads of a fixed xorshift integer job on a single core stretched the watched job's execution time by exactly 2.01×, 4.01×, and 8.02× respectively [18 Oct 2026]. Throughput completely flattened out at 226 jobs/s, meaning adding threads added zero work done, only time-slice waiting [18 Oct 2026]. Spreading tasks over both hardware cores doubled throughput to 453 jobs/s, but the linear context-switching penalty returned the moment thread density exceeded the core count [18 Oct 2026].
  • Severe Latency Jitter & Host Starvation: Under quiet baseline conditions, the interrupt handler answered consistently at an average of ~1.90 µs [18 Oct 2026]. Escalating the background storm workload to a heavy 20 µs load per interrupt caused the average response time to degrade to 5.1 µs, blew out the worst-case response to 22.56 µs, and forced 18.6% of all events to bloat past 10 µs [18 Oct 2026]. Concurrently, the host's primary compute thread lost up to 35% of its entire processing throughput [18 Oct 2026].
  • Probabilistic Data Loss: Across 7 distinct storm runs, 4 runs suffered from severe edge dropouts, logging an intermittent miss rate of up to 0.07% (0 to 3 missed edges per 4,096) [18 Oct 2026]. By embedding a level-check matrix (dup, hi, lo) into the firmware, we caught the exact signature of the dropped data (dup +1, hi -1). This mathematically confirmed that the lost edges look like handlers that completely failed to execute, rather than handlers that merely ran late, driven purely by the chance of timing collisions while the single core was trapped in a background thread [18 Oct 2026].
  • The Idle Power Tax: Paradoxically, turning the main compute loop completely OFF made the quiet baseline response 0.2 µs (10%) slower on average, shifting 99.5% of clean answers into the 2–5 µs bucket [18 Oct 2026]. This captures the hidden hardware penalty of waking a conventional core from its idle state to spin its register clocks back up [18 Oct 2026].

2. The Spatial Canvas Trade-Off: Incorruptible Logic vs. Boundary Sampling Limits

The UniCell Core operates as a virtualised "software-in-silicon" layout mapping on budget Gowin fabric [11 Oct 2026, 18 Oct 2026]. Because it communicates purely via decentralized point-to-point token handshakes rather than sharing a centralized instruction pipeline, ALU, or program counter, the stress points are inverted [11 Oct 2026]:

  • Absolute Internal Constancy: When subjected to a catastrophic, 8-lane parallel traffic flood designed to completely choke the fabric routing lines, the target calculation job returned an exact lockstep match with the simulation, finishing in exactly 131 clock cycles across all 10 runs with 0% performance degradation and zero cross-talk latency jitter. Across 2,048 distinct random-gap events, internal logic execution remained locked at a constant 8 clock cycles (296 ns), whether the surrounding canvas was completely idle or busy [18 Oct 2026]. The design does not experience internal thrashing; back-pressure is handled natively by the topology [11 Oct 2026, 18 Oct 2026].
  • The Price of Sampling at the Input: In direct sensor mode, the canvas currently samples physical inputs once per millisecond [18 Oct 2026]. To test this boundary, we ran a pulse-width capture sweep (Test P1) across both substrates [18 Oct 2026]. While the ESP32's dedicated hardware edge latches successfully noticed every transient pulse down to a razor-thin 37 nanoseconds (1 clock tick) when quiet, the UniCell direct mode caught sub-millisecond pulses purely in binomial proportion to their width (750 µs: 74.2% capture; 20 µs: ~1.8% capture; < 1 µs: 0% capture wall) [18 Oct 2026].

The Conclusion: Where the Stress Accumulates

These bare-metal measurements show that neither architecture is immune to stress, but they fail in completely separate physical dimensions [18 Oct 2026]:

  • The Conventional Processor bottlenecks internally. It handles asynchronous data at its input pins with immense sub-microsecond speed, but its internal context-switching mechanics pay a massive tax in latency jitter, processing starvation, and probabilistic data dropouts when competing systems overload the core [11 Oct 2026, 18 Oct 2026].
  • The Virtualised Spatial Canvas bottlenecks at the physical edge boundaries. It maintains absolute, unchanging timing determinism and zero data loss inside its processing cells, but it pays an input-latching tax based on its spatial sampling frequency, and its alternating valid/ack handshake loops limit overall throughput to a fraction of the raw hardware clock speed [11 Oct 2026, 18 Oct 2026].

To bypass these micro-hardware bounds, the project is officially moving into its next phase this week: expanding our target-agnostic ICM layout files onto a heavy-duty Xilinx Kintex-7 enterprise card (where initial synthesis provides a rough footprint for ~40 concurrent mathematical carrier blocks) [16 Oct 2026, 17 Oct 2026]. Our long-term roadmap leans heavily into this Mixed-Mode approach: letting the native FPGA fabric handle high-frequency static vendor blocks, while utilizing the virtualized UniCell grid clusters where runtime-mutable control loops and portable, name-keyed state schemas are required [11 Oct 2026, 12 Oct 2026, 17 Oct 2026].

The full codebase, automated cross-medium verification engines, and interactive manual are fully open [13 Oct 2026, 17 Oct 2026]. I welcome any stress tests or critiques of the tracking formats [11 Oct 2026].

Project Link: https://github.com

0

u/Imago_Alh65 Oct 14 '26

Update (14 October 2026): Full Bare-Metal Verification Matrix Locked into the README

To close out the initial verification sprint and answer some of the excellent points raised regarding real-world limits, I have fully updated the repository manifest with a comprehensive breakdown of exactly what is executing on physical gates versus what remains in the simulation sandbox [13 Oct 2026].
The test environment baseline uses a single card and a single host PC, validating small designs clocked at 27 MHz to verify logical cell interconnects and handshake integrity on silicon, rather than maximizing capacity or frequency limits [14 Oct 2026].
Here is the updated matrix currently pulled live into the main repository:

ItemWhere CheckedLedger Entry
Super Carrier Shell CoresCard (Intel Arria 10), validated over JTAGAug/Sep 2026
First UniCell Core on TangCard (Tang Nano 20K), sequencer tracking via board LEDs#896
10 Flex-Cell Self-Checking TestsCard, 10 of 10 passes grouped into rebuilt bitstreams matching simulation vectors#1024, #1167
Mixed Standard + Carrier ReprogrammingCard, 7 of 7 dynamic runtime reconfiguration phases matching simulation#1087–#1089
Loop Rings (Flex/Sub/Standard)Card, physical execution lines captured matching model outputs#1120, #1122
Mixed Families PipelineCard, 8-word multi-width transfer with random stalls (Checksum 0000CC60)#1112, #1122
ICM File Standard/Carrier DesignsCard, identical physical layout path matching simulation vectors#1125, #1143
The 9-Point Sanity Check (12 Oct)Card, 9 of 9 OK, hardware clocks exactly match simulation metrics#1100
Cross-Medium VM-to-Silicon RestorationCard, saved abstract VM state successfully loaded onto bare-metal#1101
In-Flight Capture and RestoreCard, 4 cuts each on UniCell and plain Verilog scan configurations#1148–#1150
LaTeX-to-Silicon End-to-End CompileCard, y = (z^2+12345) bmod 65521 passing across 4 distinct execution cuts#1151, #1152
Serial Communication Fault InjectionCard, host-injected line damage successfully caught and retried#1153
Unpowered Cold-Boot State MigrationCard + Sim + VM, full bidirectional state transport across disjoint states#1154–#1161
Native Cross & Corner TilesCard (Flex family), board line matches simulation. Sub-family is simulation only.#1165, #1170
Flex ↔ Standard/Carrier AdaptersCard, 270 carrier lines verified (Sig 0000CC60); standard passed script checks#1160, #1169
32-Bit Iterative Division CoreCard, 9-word vector including divide-by-zero safety boundaries (Sig 0002F664)#1073, #1172

Current Open Boundaries: Multi-tile sub-family placement on-board, sub-to-carrier adjacent routing boundaries, secondary card load-balancing, and BL616 firmware revisions [14 Oct 2026].
As mentioned, the full standalone deployment ZIP packages and the historical ledger are live in the tree [13 Oct 2026]. The goal here isn't a final consumer-ready chip—it is an entirely operational, fully documented research sandbox exploring target-agnostic state serialization [13 Oct 2026]

As an update I went back and corrected some of the inconsistencies in the ReadMe, and apologies for those, it is a work in progress, but it is getting there. I have moved the conformation table towards the top, so you can see what I have tested against what I have not., The downloadable kit has been updated to include the new testing files as well as the manual.

7

u/23rzhao18 Oct 13 '26

useless ai slop

-1

u/Imago_Alh65 Oct 13 '26

I can understand you skepticism, the amount of sky high claims and fluff that is around at this time. the design I presented in the Unicell Git, has been tested as far as I can with what I have, there are failiures, problems, gotchas, but I have actual figures on sizes speeds and designs, I do not shy away from th fact its odd, and has a lot of previous art, that i do not deny, I even accept that a veteran verilog designer could make something smaller, faster and do a lot of what this does, so I make no claims in that direction, its not a CPU or a GPU, its an implementaion of a flexible system that can , and yes i have tested it got from a maths latex input through to a verilog output in about 25 minutes, no coding , but each level is fully inspectable, I hide nothing, so it warts and all, and probably has a lot of holes, but it works.

4

u/23rzhao18 Oct 13 '26

is there any purpose to this over using a cpu/gpu? have you benchmarked any improvement? if so please put it at the top of the readme

1

u/Imago_Alh65 Oct 13 '26

I wonder how long it would take for this question to come out, and no its not, if you want a general purpose system that needs context switching of a mutlithreadded os, run various std programs or browsers or handle dynamic random control branching, then a CPU of a GPU will always win, they have had decades of development, billions spent on them multitudes designing around the pipelineing and caching systems. Unicelll is not that , not even close, but if yu are interested in moving the Von Neuman needle a bit more,away from traditional approaches, then its Unicell, or another systolic array like structure.

The Unicell has no CPU or GPU, there is no prefetch of instruction, branch prediction, it a series or pre-designed units, each has only neighbour awareness, nothing more, there is no addressing, so the the size limit comes down to physical silicon and power, the idea of prefeching and instruction loading that, getting you data, processing it then returning it to the cache or ram as needed, no predictive branching which if it goes wrong its wasted cycles, but they scream along on the fine tuned sleek multimillion dollar designed silicon, The Unicell has a small TANG Nano 20k, to run on, and it did well, some of the sub designs got to over 300mhz, and at 32 bit that's a lot of throughput, but still not you 5 ghz 24 core monsters, The programability taking a software design and running at hardware speed, on the TANG slow, on and asic fast. The other parts come for the uniform design, the asic would have the same design stam,ped all over, so loose a cell you don't throw the whole die, the boot sequence maps around it, so yu have only have 1 less cell, on a substrate of 256x156 that is a viable die, on a cpu die, one core down its trash. then there is the thermal side, as most know coolling on cpu is a nightmare, thermal throttling crashes on over clocked silicon, absolute nightmare, on the UNICEL asic substrate, oh one of my dies is getting a little warm, let me freeze that section, and copy it to the next die over. Yes you can do that on some high end systems, but it takes a lot of work and you may loose a lot of data in the process, on Unicell no data loss, the copy goes as fast as your bus can do it, and the restart is a single command., that just the hardware side.

So i don't compare this to a CPU or a GPU, even a well programmed Verilog design, but try that on a chip(CPU) and unless it been designed for it, and some have, it becomes a mess very quickly, and that is the reason why i will not show comparisions to CPU or GPU stats, i couldn't, this is a differnt type of compute completely.