Manuscript Offprint
arXiv:2610.40932HippocamFLEX: FPGA Prototyping of Hippocampus-Inspired Architecture for Context-Aware Sequence Prediction
Bhuvanesh S. Kayarabettu
University of Wisconsin–Madison
Madison, WI, USA
Hamed Poursiami
George Mason University
Fairfax, VA, USA
Babak Shahbaba
University of California, Irvine
Irvine, CA, USA
Keiland Cooper
University of California, Irvine
Irvine, CA, USA
Norbert Fortin
University of California, Irvine
Irvine, CA, USA
Maryam Parsa
George Mason University
Fairfax, VA, USA
Akhilesh Jaiswal
University of Wisconsin–Madison
Madison, WI, USA
Abstract
Unlike conventional architectures that treat memory as static pattern storage, the hippocampus organizes experience as ordered sequences and retrieves them through temporally compressed replay spanning prior, current, and anticipated states. This capacity of context-appropriate sequence prediction remains absent from conventional deep learning accelerators and existing neuromorphic fabrics. We present HippocamFLEX, a fully synthesizable digital implementation of these hippocampal computational principles, realized with SystemVerilog RTL on the AMD Zynq UltraScale+, XCZU9EG. The design maps the hippocampal trisynaptic pathway onto three pipeline stages: a Dentate Gyrus / Entorhinal Cortex (DG/EC) stage for hypervector proximity matching, a CA3 stage for context-gated recurrent sequence prediction with multi-phase temporal tagging, and a CA1 stage that integrates past, present, and predicted future events into a theta-sequence inspired output. While much brain-inspired hardware relies on analog mixed-signal design for energy efficiency, this work targets FPGA prototyping as a deliberate architectural choice: FPGAs offer rapid design-space exploration without tape-out cost, bit-exact determinism that simplifies verification. The design supports 64 events across 16 contexts and is verified on physical silicon across context-isolation, temporal-ordering, and mid-sequence sliding-window test cases and is inherently scalable to larger event and context sets.
CCS Concepts
• Hardware → Reconfigurable logic and FPGAs; Emerging architectures.
1 Introduction
The hippocampus encodes, organises, and replays sequences of events in context [1, 8]. It must simultaneously separate overlapping inputs, associate events with their context, predict upcoming events, and compress that past-present-future trajectory into a single oscillatory cycle. Electrophysiology has mapped these functions onto four sub-regions (Fig. 1): the Entorhinal Cortex (EC) provides compact event and context codes; the Dentate Gyrus (DG) orthogonalises overlapping patterns; CA3 stores sequence associations via recurrent collaterals; and CA1 integrates CA3 predictions with a decaying EC trace into temporally-ordered theta inspired sequences [22].
Existing brain-inspired and AI hardware fail to deliver key architectural features required for efficient context-appropriate sequence prediction. Deep learning accelerators [5, 6] lack temporal context; neuromorphic fabrics [7, 15] implement spike dynamics but not the hippocampal pipeline [21] inspired by the unique structure and organization of hippocampal sub-regions.
Notably, context-aware sequence prediction requires more than retrieving a similar stored event. The same event can occur in several contexts with different successors, so a correct recall must identify the context, restrict the associated events, and recover their temporal order. At a sequence terminus, the system must also distinguish the absence of a continuation from a failed lookup. HippocamFLEX implements these operations as a parameterized digital pipeline. Parallel event and context searches feed a context-gated recurrent crossbar; stored timing codes distinguish the present event from its two predicted successors. CA1 combines those predictions with a decaying trace of observed events and assigns an explicit rank to each active event. The FPGA implementation exposes memory capacities, matching thresholds, and recurrent depth as synthesis parameters, while the AXI4-Stream interface provides a single path for loading memories and collecting recall results.
HippocamFLEX, on the Zynq UltraScale+ XCZU9EG, contributes: (1) a complete three-stage digital pipeline (DG/EC→CA3→CA1) in eleven SystemVerilog modules at 100 MHz; (2) a
Kayarabettu, Jaiswal et al.
seven-opcode AXI4-Stream ISA enabling memorisation and recall over AXI DMA; and (3) a bare-metal AArch64 driver verified on silicon across context-isolation, temporal-ordering, and sequence-terminus cases. The evaluation covers both functional behavior and implementation cost.
2 Related Work
2.1 Memory Models and Hardware Architectures
MFEC [3] and NEC [19] demonstrated that similarity-based episodic caching accelerates reinforcement learning; MERLIN [25] added predictive structure; HAMI [17] employs context-sensitive indexing closest to hippocampal function. However, all of the above works are software-only implementation with no description of a pathway to hardware emulation.
TrueNorth [15] and Loihi [7] scale spiking dynamics to millions of neurons; Neurogrid [2] pursues mixed signal analog emulation. For sequence prediction, Kreiser et al. [12] used dynamic neural fields, Bouhadjar et al. [4] coupled spiking neural networks (SNNs) with resistive RAM, and Siegel et al. [23] achieved context-aware prediction with memristive neurons. None of the above works assembles EC matching, CA3 context-gated prediction, and CA1 integration in one end-to-end validated system [21].
Further, feed-forward deep learning accelerators [5, 6] have no associative recall. Hopfield networks [9, 10] and dense associative memories [13, 20] provide content-addressable recall but lack context-gating mechanism. Memristor [14] and analog [24] accelerators trade reconfigurability for energy efficiency.
2.2 HippocamPEX: Mixed-Signal Hippocampal Architecture
HippocamPEX [11] develops an end-to-end mixed-signal architecture for context-aware sequence prediction. Its EC module uses 6T-SRAM+4T-CAM (content addressable memory) arrays; CA3 combines a context-gated heteroassociative crossbar with a multi-port CAM sequence predictor; and CA1 integrates capacitor-based past traces with present and future event signals through analog ramp-based temporal ordering. HippocamPEX connects these circuits to a neuroscience model and evaluates their representational dynamics and context-specific sequence predictions through analog circuit simulations in GlobalFoundries 22 nm FDX and a MATLAB hardware model. The present work - HippocamFLEX - addresses the complementary FPGA implementation of context-gated sequence prediction, with parameterized RTL, system-level integration, and on-silicon validation.
3 Methodology
3.1 Neuroscience Abstraction
Figure 1 maps hippocampal sub-regions to HippocamFLEX hardware; four neuroscience principles guide the design.
Functional segregation. The EC encodes rapidly-changing events (LEC) and slowly-drifting context (MEC) as separate distributed representations [8]. In HippocamFLEX this becomes two independent Proximity-CAM banks: one for up to 64 event hypervectors and one for 16 context hypervectors, searched in parallel on every recall.
Pattern separation. The DG orthogonalises overlapping EC inputs through massive cell-count expansion and sparse activity. In hardware: a Hamming proximity threshold suppresses any stored hypervector whose mismatch with the query exceeds 13 bits (≈10% of 128), admitting only matches at least 89.8% similar.
Context-gated sequence coding. CA3's recurrent collaterals store sequence associations through Hebbian plasticity, and its conjunction of DG event inputs with EC context inputs at distal dendrites enables context-gated recall. This maps to a 64×64 heteroassociative crossbar gated by a 64×16 context-gate memory, iterated for 7 recurrent hops.
Theta-sequence integration. CA1 receives CA3 predictions (poly-synaptic path) and a decaying EC trace (mono-synaptic path) simultaneously, producing temporally-ordered theta sequences [22]. In hardware CA1 is given both paths explicitly: the CA3 merged voltage array (poly-synaptic) and the DG/EC top-1 event one-hot (mono-synaptic). All 64 event voltage registers are ranked by a pipelined bitonic sorting network, and the resulting rank positions form the theta-sequence output.
3.2 FPGA as a Prototyping Platform
We target the AMD Zynq UltraScale+ XCZU9EG (ZCU102). On an FPGA, all seven memory depths and every numerical parameter (MAX_MISMATCH, DECAY_STEP, counter divisors) are Verilog parameters re-synthesised in minutes, enabling rapid architecture sweeps and bit-exact simulation-to-silicon traceability. The ZCU102's Cortex-A53 PS handles memorisation and result collection; the PL executes the hippocampal recall pipeline at 100 MHz.
3.3 Hyper-dimensional Encoding and the Proximity-CAM Abstraction
Events and contexts use 128-bit binary hypervectors (HVs). Independent random vectors share approximately 50% of their bits; the benchmark in Section 9 instead composes correlated digit and colour representations. As a dimensionality comparison, VS-Graph [18] reports less than 1.5% accuracy degradation when reducing HV width from 8192 to 128 in graph classification. That result concerns a different workload.
Proximity-CAM lookup. The core lookup primitive in hyper-dimensional systems is nearest-prototype retrieval: given a query vector, find the stored vector with highest similarity. In software frameworks such as VS-Graph [18], this reduces to a cosine-similarity scan over class prototypes. The Proximity Content-Addressable Memory (Proximity-CAM) searches stored hypervectors by similarity rather than by an explicit address. HippocamFLEX computes the Hamming distance , computed for all stored entries in parallel in one registered pipeline stage. The Proximity-CAM banks use flip-flop register files to make every stored row available to the parallel comparison logic in that stage. In the memory organization used here, a BRAM's mandatory output register would push the result to a second stage, breaking the pipeline handshake. The 8-bit distance represents all mismatch counts from 0 to 128; the threshold gate admits distances up to 13 and suppresses the rest.
Kayarabettu, Jaiswal et al.

Figure 1: Mapping hippocampal computations to HippocamFLEX. Left: Biological regions; centre: shared computations; right: hardware blocks. The timeline compares biological event activity with FPGA scores and temporal ranks.
4 HippocamFLEX Architecture and Algorithm
HippocamFLEX operates in two phases: memorisation and recall. During memorisation, hypervectors (compact binary codes for events and contexts) are written into the on-chip memory banks (Proximity-CAMs), sequence associations are written to the crossbar, and timing tags are written to the multi-port content-addressable memory (MCAM). The MCAM stores a temporal code for each event-context pair and compares it with three counter
values to identify the present event and its next two successors. During recall (retrieval), a query pair triggers pattern completion in CA3 and theta inspired-sequence replay in CA1, returning the predicted next events with timestamps. Algorithm 1 gives the complete sequence for both phases.
Microarchitecture structure. The three pipeline stages are implemented in SystemVerilog-HDL and sequenced by a six-state Pipeline Controller FSM that fires a one-cycle start pulse to each stage in turn, waits for its one-cycle done reply, and advances. No stage begins before the previous one has finished. Memorisation
Kayarabettu, Jaiswal et al.
Table 1: Notation used in Algorithm 1.
| = context / event hypervectors (k=0 ... 15, j=0 ... 63) | |
|---|---|
| = associations: means precedes | |
| = gates: means event j belongs to context k | |
| = timing codes: is position of in context | |
| VP/VF1/VF2 | = voltage tags 0x40 / 0x80 / 0xC0 (present / next / two-ahead) |
| = bitwise XOR; |
Algorithm 1 HippocamFLEX: Memorisation and Recall
Phase 1: Memorisation
1: Init: Reset chip via GPIO; initialise AXI DMA; release reset.
2: CMD 0x1-0x2: Write each and into their Proximity-CAM slots.
3: CMD 0x3-0x4: For each and , set crossbar and context-gate bits.
4: CMD 0x5: For each , write timing code into MCAM[ ][k].
Phase 2: Recall
5: CMD 0x6: Send query as 9-beat AXI packet.
Stage 1 - DG/EC: Pattern Matching (25 cycles, fixed)
6: Parallel for all : ; ? (255- ) : 0. Same for event bank using .
7: Bitonic rank (12 cyc context / 23 cyc event): latch Top-1 context and Top-1 event .
Stage 2 - CA3: Sequence Prediction ( cycles; 27 at )
8: Register gate row for ; active .
9: for step = 1 ... 7 do active active (context-gated neighbours).
10: end for
(9 cycles start-to-done: 7 accumulating hops + init + done)
11: CNTR-1 (÷1) sweeps from 0 until it matches MCAM[ ][ ]: VP = 0x40; lock . ( cycles.)
12: CNTR-2 (÷2) matches : VF1 = 0x80 on next event.
13: CNTR-3 (÷4) matches : VF2 = 0xC0 on two-ahead event. (9 cycles when both are found; 50-cycle sweep at a terminus.)
14: Decay all non-anchor voltages by 4LSB/cycle; merge MCAM tags (priority) with decaying past voltage scores.
Stage 3 - CA1: Temporal Integration (24 cycles)
15: If no VP tag survives CA3, inject the mono-synaptic DG/EC event at VP.
16: Bitonic full rank over merged voltage scores; rank index becomes the timestamp. VF2 → ts = 0 (most future); inactive → ts = 0x3F.
17: Return voltages[63:0], timestamps[63:0], onehot[63:0] via a 35-beat M_AXIS response; assert IRQ.
Total: 31 + 2S + cycles (S=21 bitonic stages at E=64) = 76 at .
commands enter through a mutually exclusive TRAIN state, active only when the recall path is idle. Table 2 has all sub-modules.
5 DG/EC Stage: Pattern Recognition
The DG/EC stage finds the closest stored pattern in two parallel register-file banks—one for the query event, one for the query context—and returns each as a one-hot index. Figure 2 details the sub-blocks executed in order.
Event and Context Proximity-CAMs (Fig. 2, top). Each Proximity-CAM is a synchronous register file that, on a single registered clock edge, compares a 128-bit query against every stored row simultaneously—not one at a time. The Event bank (64×128 b) and Context bank (16×128 b) are both searched on the same cycle and run fully in parallel, as shown by the “run in parallel” brace in the figure. Ruling out BRAM is mandatory: its
Table 2: HippocamFLEX module hierarchy.
| Module | Function |
|---|---|
| hippocamFLEX_axis_wrapper | AXI4-S PS bridge, TX/RX FSMs |
| hippocamFLEX_top | Core processor |
| control_fsm | 6-state pipeline sequencer |
| dg_ec_stage | Stage 1: pattern recognition |
| ap_cam ×2 | Context (16) & event (64) CAMs |
| sort_comparator ×2 | Top-1 bitonic rank |
| ca3_stage | Stage 2: Sequence prediction |
| recurrent_hetero_crossbar | 64×64 assoc + 64×16 gate |
| mcam_sequence_predictor | 3-counter VP/VF1/VF2 tagger |
| temporal_context_tracker | Per-event decay model |
| cal_stage | Stage 3: Temporal integration |
| sort_comparator | Full sort, TOP_K = 64 |
output register would push the result to a second pipeline stage, breaking the handshake with the downstream sorter (see §3.3). Distributed LUTRAM would satisfy that constraint at lower area, but each array is cleared wholesale on reset and distributed RAM has no reset port, so EDA tool infers registers instead; §8 quantifies the cost.
Comparator Trees. Each Comparator Tree broadcasts the 128-bit query to all stored rows simultaneously and computes, for each row : . Vivado synthesises each pop-count as a 7-level binary adder tree (128 XOR bits summed pairwise through carry-save and ripple-carry stages), producing one 8-bit Hamming distance per row, registered in one pipeline stage.
Threshold Gate and Voltage Score Conversion. The Threshold Gate applies the DG's 90% similarity criterion (13/128 ≈ 10% mismatch) independently and in parallel across all distances. Each entry passes a comparator ( ): on pass, the gate computes (PASS → voltage score); on fail, the output is forced to zero (FAIL → 0). This unified voltage representation—higher value means a better match, is propagated through all three pipeline stages, enabling CA1 to sort over a single comparable score space.
Pipelined bitonic ranking. A pipelined bitonic sorting network [16] ranks the similarity scores and selects the Top-1 match. The network uses registered compare–exchange stages for D entries, with fixed latencies of 23 cycles for the 64-entry event bank and 12 cycles for the 16-entry context bank. Ranking latency is independent of the query and the number of entries that pass the threshold.
Synchronizer (done-latch pair). The context and event sorters finish after 12 and 23 cycles. Completion flags retain each result until both are available, then assert output valid for one cycle. This avoids requiring their non-overlapping done pulses to coincide.
6 CA3 Stage: Sequence Prediction
Given the DG/EC event and context one-hot outputs, CA3 performs context-gated propagation (Fig. 3b), then tags the present event and two predicted successors and merges their scores with the decaying past trace (Fig. 3c).
6.1 Context-Gated Crossbar (Fig. 3b)
Event-Event Link Table and Context Gate Table. Two 64-entry register-file banks hold the learned sequence structure. The association memory ( b) stores a 1 at when event i is directly
Kayarabettu, Jaiswal et al.

Figure 2: DG/EC Stage. (a) Locator. (b) Two Proximity-CAM banks (Event: 64×128 b; Context: 16×128 b register files) search every stored row in parallel. Comparator Trees compute 8-bit Hamming distances; the Threshold Gate zeroes mismatches >13 and converts valid distances to voltage scores (v=255−d). Two pipelined bitonic sorting networks run in parallel (23 and 12 cycles); the done-latch Synchronizer holds both results until the deeper network finishes, then asserts out_valid.
followed by event j in any trained context. These fabric registers implement the recurrent heteroassociative crossbar. The gate memory (64×16 b) stores a 1 at (j, k) when event j is valid inside context k; it enforces context boundaries so that associations trained in one context cannot activate events belonging to another.
Context Gate Register. The context mask is computed from the stable context one-hot and registered once at recall start. Subsequent hops use the registered mask, removing gate-memory reads from the recurrent feedback path. The earlier combined association/gate cone contained 64 × (64 + 16) = 5,120 AND terms and prevented timing closure at 100 MHz.
8-Step Propagator. Starting from the singleton set {j*}, the propagator accumulates for seven fixed clock cycles (MAX_STEPS = 8; the eighth cycle only raises done, giving a 9-cycle start-to-done block latency):
Active ← Active ∪ (assoc_mem rows for active events, AND-masked by gate_results)
OR accumulation ensures that all transitively reachable events, up to seven hops away, are collected in the activated event set forwarded to panel (c).
6.2 Theta-Inspired Multi-Phase Sequence Predictor (Fig. 3c)
Temporal Sequence MCAM (Multi-Port CAM). A 64×16×6-bit register file stores the sequence position t ∈ [0, 63] of every (event, context) pair loaded during memorisation. On each recall, CNTR-1
sweeps this memory to locate t_ref, the position of the anchor event j* in the current context k*.
3-Phase Counter Predictor. CNTR-1 counts from 0; CNTR-2 and CNTR-3 then start at t_ref:
-
Present Ctr (÷1): matches MCAM[j*][k*], latching t_ref; tags j* VP = 0x40.
-
Future-1 Ctr (÷2): accepts only an activated event at t_ref+1; tags VF1 = 0x80.
-
Future-2 Ctr (÷4): accepts only t_ref+2; tags VF2 = 0xC0.
The offset, not the rate, selects the event; the ÷2 and ÷4 rates only stagger when the tags are issued, modelling theta-phase staggering. A timeout at t_ref+25 ends an unmatched sweep (50 cycles at a sequence terminus), so the pipeline cannot stall.
Past Activity Tracker. Independently of the MCAM predictor, a 64-entry register array maintains a decaying trace of the past anchor events. At each recall start the anchor j* is charged to 0xFF; all other registers lose 4 LSB every clock cycle. Crucially, only the anchor charges the tracker: permitting predicted future events to charge it would corrupt CA1 temporal ordering on subsequent recalls by making predicted events appear as past ones.
Voltage Selector. For each of the 64 events, the selector applies a simple priority rule: if a non-zero MCAM voltage tag (VP, VF1, or VF2) is available it takes precedence over the decaying past voltage; otherwise the fading past trace passes through. The resulting 64×8-bit merged voltage array encodes a full past-present-future window and is forwarded to CA1 for temporal ordering.
Kayarabettu, Jaiswal et al.

Figure 3: CA3 Stage. (a) Locator. (b) Context-gated crossbar: 64×64 association memory and 64×16 gate memory; gate mask registered once per recall breaks the feedback cone; active events propagate over 8 fixed hops. (c) 3-phase predictor: three counters at ÷1, ÷2, ÷4 sweep the 64×16×6-bit MCAM, tagging VP/VF1/VF2. Past tracker decays non-anchor events; voltage selector prioritizes MCAM tags. Output: 64-element merged voltage array to CA1.
7 CA1 Stage: Temporal Integration
CA1 translates the 64-element merged voltage array, where VP = 0x40 marks the present event, VF1 = 0x80 marks near-future, VF2 = 0xC0 marks far-future, and decaying values mark past events→ into an explicit ordered sequence with a monotonically-assigned integer timestamp per event. It is also where the two entorhinal paths converge. Figure 4 details the sub-blocks.
7.1 Mono/Poly Convergence and EC Fallback (Fig. 4b, top)
CA1 receives the same EC input twice–poly-synaptically through DG and CA3, and mono-synaptically straight from EC–and HippocamFLEX keeps both: the 64-element merged voltage array from CA3, and the DG/EC top-1 event one-hot tapped before CA3 sees it. A VP detector scans the merged array for the present tag (merged[i] = 0x40). When CA3 produces no VP tag, CA1 injects the EC-identified event at VP. When both paths name a present event and disagree, the stage raises a mismatch flag, making the divergence observable instead of letting the CA3 answer silently win.
7.2 Full Bitonic Sorting Network (Fig. 4b, middle)
CA1 reuses the DG/EC network with TOP_K = 64, so the whole ranking is kept rather than just the winner. Events land in descending voltage order: VF2 (0xC0 = 192) first, VF1 (0x80 = 128) next, VP (0x40 = 64) after that, then any decaying past residuals in order of
their remaining charge; inactive events with voltage = 0 are never placed. The 64-lane sorting network has 21 compare–exchange stages and a fixed 23-cycle latency, independent of the number of active events.
7.3 Positional Rank Latch and Timestamp Registers (Fig. 4b, lower)
Because the network emits the complete ordering in one cycle, the rank index represents position in the theta-inspired sequence; no additional sequencing logic is needed. For each rank slot i, if the accompanying score is non-zero the latch writes i into the timestamp register of the event named by addr [i] and sets that event's flag; if the score is zero the register takes the sentinel 0x3F and the flag stays clear. Monotonicity is therefore structurally embedded: rank 0 is the highest merged voltage (most future), and ranks increase into the past by construction.
All timestamp registers capture their assigned ranks when the sorter completes. Their values therefore encode positions in the ranked output, rather than elapsed clock cycles during the ordering operation.
Together the Sorted Event Flags (64-bit active-event mask) and Event Timestamps (64 values, with rank 0 for the most future event and sentinel 0x3F for inactive events) form the theta inspired-sequence output.
Kayarabettu, Jaiswal et al.

Figure 4: CA1 Stage. (a) Locator. (b) The two EC paths converge: the CA3 merged voltage array (poly-synaptic) and the DG/EC event one-hot (mono-synaptic) meet at the VP-detect and fallback block, which also raises a mismatch flag when the two disagree. A full bitonic sorting network (TOP_K = 64) then ranks all events in a fixed 23 cycles: VF2 (0xC0) first, VF1 (0x80), VP (0x40), then past residuals; voltage-0 events are never placed. The positional rank latch writes each rank index straight into that event's timestamp register; inactive events retain 0x3F (6-bit sentinel = max).
8 Implementation
8.1 System-Level Integration
Figure 5 shows the four-IP block design on a single 100 MHz clock domain (pl_c1k0).
Address map. HPM0_FPD drives SmartConnect 0 to AXI DMA (0xA000_0000, 64 KB) and AXI GPIO (0xA001_0000, 64 KB). DMA MM2S/S2MM buses reach DDR via SmartConnect 1 and HP0_FPD; two CMA buffers are fixed at 0x6BA00000 (TX) and 0x6BA01000 (RX).
Reset and interrupts. pl_reset0 fans out to all four peripherals; GPIO bit[0] drives sw_rst_n for firmware warm-reset. x1concat[2:0] aggregates mm2s_intr, s2mm_intr, and irq_result_ready into pl_ps_irq0[2:0]; the wrapper asserts irq_result_ready as a one-cycle pulse on result capture.
Table 3 defines the seven-opcode AXI4-Stream ISA.
8.2 Design Parameters and Memory
Tables 4 and 5 list parameters and memory.
8.3 Design, Synthesis and Verification
All memories map to FF arrays (Table 5) for three reasons: the Proximity-CAM search requires results in one registered stage (BRAM adds a mandatory second); the crossbar requires 1-bit write granularity BRAM ports cannot provide; and the MCAM uses two simultaneous variable indices Vivado will not infer onto dual-port

Figure 5: Vivado block design.
HPM0_FPD→SC0→DMA/GPIO; DMA data via SC1 and HP0_FPD; GPIO bit[0]→sw_rst_n; three IRQ lines.
BRAM. The datapath uses $countones(q ⊕ m_i) for 8-bit Hamming distances, clock-enable divisors (÷2, ÷4) for temporal tagging, bitonic sorting networks for Top-1 selection and full ranking, and a linear 4 LSB/cycle decrement for the past-event trace.
Synthesis targets Vivado 2023 on XCZU9EG (ZCU102). Five memorisation-control FFs needed false-path annotations, and the high-fanout activated register required MAX_FANOUT=64. Because every memory is a flip-flop array, the design uses no BRAM, URAM
Kayarabettu, Jaiswal et al.
Table 3: HippocamFLEX AXI4-Stream ISA. Beat = one 32-bit word; opcode in bits [31:28] of Beat 0; HV[127:0] sent LSB-first over 4 data-beats.
| Cmd | Opcode | Beats | Bytes | Beat 0 encoding |
|---|---|---|---|---|
| Memorise Context HV | 0x1 | 5 | 20 | [31:28]=0x1, [6:0]=addr; Beats 1-4: context HV[127:0] |
| Memorise Event HV | 0x2 | 5 | 20 | [31:28]=0x2, [6:0]=addr; Beats 1-4: event HV[127:0] |
| Link Events (Crossbar) | 0x3 | 1 | 4 | [31:28]=0x3, [20:14]=from_event, [13:7]=to_event, [0]=1 |
| Assign Context Gate | 0x4 | 1 | 4 | [31:28]=0x4, [20:14]=event, [13:7]=context, [0]=1 |
| Set Timing (MCAM) | 0x5 | 1 | 4 | [31:28]=0x5, [20:14]=event, [13:7]=context, [5:0]=code |
| Recall (Query) | 0x6 | 9 | 36 | [31:28]=0x6; Beats 1-4: ctx_hv; Beats 5-8: evt_hv |
| Status Query | 0x7 | 1 | 4 | [31:28]=0x7 (no payload) |
Table 4: Key design parameters.
| Parameter | Value | Biological analogue |
|---|---|---|
| HV_WIDTH | 128 b | EC hypervector dimensionality |
| NUM_CONTEXTS | 16 | Max distinct contexts |
| NUM_EVENTS | 64 | Max distinct events |
| MAX_MISMATCH | 13 b | 90% similarity threshold (DG) |
| MAX_STEPS | 8 | CA3 recurrent depth |
| CNTR_WIDTH | 6 b | Temporal code range (0–63) |
| VOLTAGE_WIDTH | 8 b | Digital ML voltage (0x00–0xFF) |
| DECAY_STEP | 4 LSB | Capacitor discharge rate |
| VP/VF1/VF2 | 0x40/0x80/0xC0 | Present/Future-1/Future-2 |
| Clock | 100 MHz | PS FCLK_CLK0 |
Table 5: On-chip memory inventory.
| Memory | Dimensions | Type |
|---|---|---|
| Context Proximity-CAM | 16 × 128 b | Register file |
| Event Proximity-CAM | 64 × 128 b | Register file |
| Crossbar assoc. memory | 64 × 64 b | Register file |
| Crossbar gate memory | 64 × 16 b | Register file |
| MCAM temporal memory | 64 × 16 × 6 b | Register file |
| Past-voltage registers | 64 × 8 b | FF array |
| CA1 timestamp registers | 64 × 6 b | FF array |
or DSP (Table 7), leaving the entire hard-block fabric free for a co-resident accelerator. Three testbench levels cover the design: a unit bench for Proximity-CAM Top-1 selection; an integration bench for CA3 voltage tags and CA1 timestamp monotonicity on the ZABCD sequence; and an AXI wrapper bench exercising all seven opcodes, back-pressure, and the full 35-beat response. All three pass under both behavioural and post-implementation simulation. Table 6 summarises the latency profile. With fixed-latency sorting networks the two ranking stages no longer dominate, and CA3's anchor sweep–whose length is set by the stored temporal code –becomes the critical term.
8.4 Resource Scaling
We swept event capacity to measure its resource and latency costs. We synthesised with everything else fixed (Table 7).
Table 6: Pipeline latency and performance summary at 100 MHz. MCAM sweep is data-dependent: 18 cycles at with both predictions found, 59 at a sequence terminus.
| Metric | Value | Notes |
|---|---|---|
| DG/EC latency | 25 cyc (0.25 μs) | 1 popcount + 23-cyc bitonic |
| CA3 latency | 27 cyc (0.27 μs) | 9 crossbar + 18 MCAM† |
| CA1 latency | 24 cyc (0.24 μs) | 21-stage bitonic, TOP_K = 64 |
| Total | 76 cyc (0.76 μs) | Seq. DG/EC→CA3→CA1 |
Table 7: Post-place resources versus event capacity on XCZU9EG (274,080 LUT, 548,160 FF). All other parameters fixed; BRAM, URAM and DSP are zero at every point.
| Events | LUT | % | FF | % | Cycles |
|---|---|---|---|---|---|
| 32 | 28,661 | 10.5 | 25,214 | 4.6 | 64 |
| 64 | 76,056 | 27.8 | 58,061 | 10.6 | 76 |
| 128 | 220,287 | 80.4 | 146,132 | 26.7 | 90 |
The resource model has three terms:
and only the crossbar is quadratic: associate memory holds one bit per ordered pair of events. Latency touches only through the two ranking stages,
Quadrupling capacity from 32 to 128 events costs the LUTs but only 41% more cycles (64 to 90 at ).
Only the term is data-dependent. CNTR-1 sweeps from zero, so locating the anchor costs cycles; the two future counters then resolve in 9 more when both predictions are found, but at a sequence terminus no event carries or and the sweep instead runs to its timeout, 50 cycles. Recall at therefore spans 76 cycles in the common case to 117 at a terminus. Reducing the MCAM sweep would address this variable latency.
Two ceilings meet at : the AXI4-Stream header packs the event index into seven bits, and the design already fills 80% of the device. Sparse or banked association storage is a candidate for reducing the capacity cost.
Kayarabettu, Jaiswal et al.
(a) Digit Event Encoding
Orange: D1, D7 share {b,c} core; D5, D6, D9 share {a,c,d,f,g} core ⇒ correlated 128-bit HVs

(b) Segment composition and hypervector similarity

Figure 6: 7-segment benchmark. (a) D0–D9 mapped to active segments; orange digits share correlated segment cores (D1/D7 share {b,c}; D5/D6/D9 share {a,c,d,f,g}), stressing the DG/EC pattern-separation stage. (b) Segment composition matrix and pairwise HV similarity (1–). Off-diagonal values range 63–88%; diagonal (self-similarity) shown as filled cells.
8.5 Timing Closure
Both deployable configurations were implemented against an 8.333 ns (120 MHz) constraint, tighter than the 100 MHz deployment clock, and close timing with no failing setup or hold endpoints. Worst setup slack (WNS) is +0.316 ns at 32×16 and +0.628 ns at 64×16, giving of 124.7 and 129.8 MHz, i.e., ≈25% margin at 100 MHz. The larger design's slightly higher reflects place-and-route seed variance, not a trend.
9 Results
9.1 Simulation Results
All three testbenches (§8) pass behavioural and post-implementation simulation in Vivado 2023 with no assertion failures; the unit bench also confirms Proximity-CAM Top-1 within the ≤13-bit window for every trained HV.
9.2 7-Segment Benchmark on Silicon
9.2.1 Benchmark Design. A hippocampal benchmark requires events that are ambiguous alone; correct recall depends on context. Ten digit patterns (D0–D9) are defined over eight colour contexts; the on-silicon suite exercises seven digits (D1–D7) across five of them (Red, Green, Blue, Magenta, White). Each digit HV is the OR of fixed random 128-bit segment bases; context HVs are composites of RGB channel bases. Correlated digits (e.g., D3, D5, D7 all share the {a, c} core) deliberately stress DG pattern separation.
9.2.2 On-Silicon Results. The statically-linked AArch64 driver loads all contexts and events, writes crossbar and MCAM entries, and runs eight recall cases (Table 8); all 36 scoreboard checks pass. T1–T5 validate VP/VF1/VF2 assignment and monotonic CA1 ordering across five clean contexts. T6 (Blue/D3 mid-sequence) confirms the sliding window: D2 receives voltage 0x00 and CA1
Kayarabettu, Jaiswal et al.
Table 8: On-silicon memorise-recall. “CA1 order”: ts[F2]<ts[F1]<ts[VP]. “—” denotes no prediction; “n.c.” denotes a tier the test does not assert.
| Test | Ctx | Anchor | VP | VF1/VF2 | Check |
|---|---|---|---|---|---|
| T1 | Blue | D1 | D1 | D2/D3 | CA1 order |
| T2 | Red | D7 | D7 | D5/D3 | CA1 order |
| T3 | Green | D2 | D2 | D4/D6 | CA1 order |
| T4 | Magenta | D1 | D1 | D3/D5 | CA1 order |
| T5 | White | D3 | D3 | D5/D7 | CA1 order |
| T6 | Blue | D3 | D3 | D4/D5 | D2 inactive |
| T7a | Blue | D3 | D3 | D4/n.c. | D7 inactive |
| T7b | Red | D3 | D3 | — | D4,D2 inactive |
sentinel 0x3F, showing the prediction window advanced without hallucinating a past event as future.
Context Isolation: Anchor Event D3 Across Three Contexts



Figure 7: On-silicon context isolation (anchor D3, three contexts). Top: merged-voltage profiles; dashed lines at VP/VF1/VF2 tiers. Bottom: CA1 rank timestamps (0 = most future). Two distinct mechanisms hold the boundary: under Blue the gate memory excludes D7 outright, whereas under Red D5 and D7 are activated by the shared edges but receive no tag, because D3 is the sequence terminus and Red holds no event at or .
T7a/T7b are the stress tests: context isolation under shared crossbar edges. In T7a (Blue/D3), D7 must stay inactive despite D3→D5→D7 existing in Magenta—the gate memory holds the boundary. In T7b (Red/D3), D3 is terminal; both D4 and D2 show 0x00 voltage and 0x3F timestamps, confirming correct abstention. Figure 7 visualises the three-context comparison: D5 acquires VF2 under Blue ( ) but VF1 under Magenta ( ), confirming that MCAM tags are context-relative, not event-identity-relative.
10 Discussion
Context isolation (T7a, T7b) uses complementary mechanisms: context gates exclude irrelevant events, while context-specific timing codes suppress unsupported continuations at sequence termini.
CA1's monotonic timestamps directly realise theta-sequence ordering in synthesisable logic [22], demonstrating temporal integration within the complete FPGA pipeline.
The main cost is the register-based association memory, which grows quadratically with event capacity; the bitonic networks keep ranking latency fixed per configuration, so the MCAM anchor search is the only data-dependent latency term.
Future work includes offline replay of prioritized event-in-context sequences into a cortical association graph, probabilistic Top-K recall, and C3M (Conformal Configurable Compute-in-Memory) implementations for area and energy studies. These extensions are unevaluated; the verified digital behavior can provide regression tests.
11 Conclusion
HippocamFLEX demonstrates that proximity-based pattern separation, context-gated recurrent prediction, and theta inspired-sequence temporal integration can be jointly realised in synthesisable RTL and verified on physical silicon. All eight on-silicon test cases pass; context isolation holds under shared crossbar edges, CA1 timestamps are monotonically ordered, and sequence termini are correctly detected as prediction absence rather than hallucinated continuations. In summary, HippocamFLEX is the first work to translate biological architectural details of hippocampal subregions to an FPGA platform, laying the groundwork for emulating other brain sub-regions on FPGAs.
Acknowledgments
This work was supported in part by the National Science Foundation under Award Nos. CCF-2319619, CCF-2319618, and CCF-2319617. This work was also partially supported by the National Institutes of Health under Award Nos. R01-MH115697, R01-DC017687, and R01-CA297869, and by the National Science Foundation under Award Nos. CAREER IOS-1150292, BCS-1439267, and DGE-1839285. AI disclosure: LLMs were used only to enhance the architecture diagrams; they were NOT used for the ideation, design, results, data or result figures.
References
[1] Timothy A. Allen and Norbert J. Fortin. 2013. The evolution of episodic memory. Proceedings of the National Academy of Sciences 110 (2013), 10379–10386.
[2] Ben Varkey Benjamin, Peiran Gao, Emmett McQuinn, Swadesh Choudhary, Anand R. Chandrasekaran, Jean-Marie Bussat, Rodrigo Alvarez-Icaza, John V. Arthur, Paul A. Merolla, and Kwabena Boahen. 2014. Neurogrid: A mixed-analog-digital multichip system for large-scale neural simulations. Proc. IEEE 102, 5 (2014), 699–716. doi:10.1109/JPROC.2014.2313565
[3] Charles Blundell, Benigno Uria, Alexander Pritzel, Yazhe Li, Avraham Ruderman, Joel Z. Leibo, Jack Rae, Daan Wierstra, and Demis Hassabis. 2016. Model-free episodic control. arXiv preprint arXiv:1606.04460.
[4] Younes Bouhadjar, Sebastian Siegel, Tom Tetzlaff, Markus Diesmann, Rainer Waser, and Dirk J. Wouters. 2023. Sequence learning in a spiking neuronal network with memristive synapses. Neuromorphic Computing and Engineering 3, 3 (2023), 034014. doi:10.1088/2634-4386/acf1c4
[5] Lukas Cavigelli, David Gschwend, Christoph Mayer, Samuel Willi, Beat Muheim, and Luca Benini. 2015. Origami: A convolutional network accelerator. In Proceedings of the 25th Edition on Great Lakes Symposium on VLSI (GLSVLSI). 199–204.
[6] Tianshi Chen, Zidong Du, Ninghui Sun, Jia Wang, Chengyong Wu, Yunji Chen, and Olivier Temam. 2014. DianNao: A small-footprint high-throughput accelerator for ubiquitous machine-learning. In Proceedings of the 19th International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS). 269–284.
Kayarabettu, Jaiswal et al.
[7] Mike Davies, Narayan Srinivasa, Tsung-Han Lin, Gautham Chinya, Yongqiang Cao, Sri Harsha Choday, Georgios Dimou, Prasad Joshi, Nabil Imam, Shweta Jain, et al. 2018. Loihi: A neuromorphic manycore processor with on-chip learning. IEEE Micro 38, 1 (2018), 82–99.
[8] Howard Eichenbaum. 2004. Hippocampus: Cognitive processes and neural representations that underlie declarative memory. Neuron 44, 1 (2004), 109–120.
[9] John J. Hopfield. 1982. Neural networks and physical systems with emergent collective computational abilities. Proceedings of the National Academy of Sciences 79, 8 (1982), 2554–2558.
[10] John J. Hopfield. 1984. Neurons with graded response have collective computational properties like those of two-state neurons. Proceedings of the National Academy of Sciences 81, 10 (1984), 3088–3092.
[11] Md Abdullah al Kaiser, Keiland W. Cooper, Rouhan Noor, Ankur Singh, Zhishun Yang, Hamed Poursiami, Bhuvanesh Sathish Kayarabettu, Ziyi Liang, Babak Shahbaba, Maryam Parsa, Norbert J. Fortin, and Akhilesh Jaiswal. 2026. HippocamPEX: A Hippocampus-Inspired In-Silico Architecture for Context-aware Sequence Prediction, arxiv. (2026).
[12] Raphaela Kreiser, Dora Aathmani, Ning Qiao, Giacomo Indiveri, and Yulia Sandamirskaya. 2018. Organizing sequential memory in a neuromorphic device using dynamic neural fields. Frontiers in Neuroscience 12 (2018), 717.
[13] Dmitry Krotov and John J. Hopfield. 2016. Dense associative memory for pattern recognition. Advances in Neural Information Processing Systems 29 (2016), 1172–1180.
[14] Boxun Li, Peng Gu, Yi Shan, Yu Wang, Yiran Chen, and Huazhong Yang. 2015. RRAM-based analog approximate computing. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 34, 12 (2015), 1905–1917.
[15] Paul A. Merolla, John V. Arthur, Rodrigo Alvarez-Icaza, Andrew S. Cassidy, Filipp Sawada, Filipp Akopyan, Bryan L. Jackson, Nabil Imam, Chen Guo, Brian Brezzo, et al. 2014. A million spiking-neuron integrated circuit with a scalable communication network and interface. Science 345, 6197 (2014), 668–673.
[16] Rene Mueller, Jens Teubner, and Gustavo Alonso. 2012. Sorting Networks on FPGAs. The VLDB Journal 21, 1 (2012), 1–23. doi:10.1007/s00778-011-0232-z
[17] Hamid Poursiami, Ahmad Moshruba, Keiland W. Cooper, Derek Gobin, Mohammed A.-A. Kaiser, Arnav Singh, Rashed Noor, Babak Shahbaba, Akhilesh
Jaiswal, Norbert J. Fortin, et al. 2025. A Scalable Reinforcement Learning Framework Inspired by Hippocampal Memory Mechanisms for Efficient Contextual and Sequential Decision Making. Scientific Reports 15, 1 (2025), 25221.
[18] Hamed Poursiami, Shay Snyder, Guojing Cong, Thomas Potok, and Maryam Parsa. 2025. VS-Graph: Scalable and Efficient Graph Classification Using Hyper-dimensional Computing. In arXiv preprint arXiv:2512.03394.
[19] Alexander Pritzel, Benigno Uria, Sriram Srinivasan, Adrià Puigdoménech Badia, Oriol Vinyals, Demis Hassabis, Daan Wierstra, and Charles Blundell. 2017. Neural episodic control. In Proceedings of the 34th International Conference on Machine Learning (ICML), Vol. 70. PMLR, 2827–2836.
[20] Hubert Ramsauer, Bernhard Schäfl, Johannes Lehner, Philipp Seidl, Michael Widrich, Thomas Adler, Lukas Gruber, Markus Holzleitner, Milena Pavlović, Geir Kjetil Sandve, et al. 2021. Hopfield networks is all you need. In International Conference on Learning Representations (ICLR).
[21] Catherine D. Schuman, Shruti R. Kulkarni, Maryam Parsa, J. Parker Mitchell, Prasanna Date, and Bill Kay. 2022. Opportunities for neuromorphic computing algorithms and applications. Nature Computational Science 2, 1 (2022), 10–19.
[22] Babak Shahbaba, Lingge Li, Forest Agostinelli, Mansi Saraf, Gabriel A. Elias, Keiland W. Cooper, Pierre Baldi, and Norbert J. Fortin. 2022. Hippocampal ensembles represent sequential relationships among an extended sequence of nonspatial events. Nature Communications 13, 1 (2022), 787.
[23] Sebastian Siegel, Tobias Ziegler, Younes Bouhadjar, Tom Tetzlaff, Rainer Waser, Regina Dittmann, and Dirk J. Wouters. 2023. Demonstration of neuromorphic sequence learning on a memristive array. In Proceedings of the 2023 Annual Neuro-Inspired Computational Elements Conference (NICE '23). ACM, 108–114. doi:10.1145/3584954.3585000
[24] Renée St. Amant, Amir Yazdanbakhsh, Jaewoo Park, Ben Thwaites, Hadi Esmaeilzadeh, Arjang Hassibi, Luis Ceze, and Doug Burger. 2014. General-purpose code acceleration with limited-precision analog computation. In IEEE/ACM International Symposium on Computer Architecture (ISCA). 505–516.
[25] Gregory Wayne, Chia-Chun Hung, David Amos, Mehdi Mirza, Arun Ahuja, Agnieszka Grabska-Barwinska, Jack Rae, Piotr Mirowski, Joel Z. Leibo, Adam Santoro, et al. 2018. Unsupervised Predictive Memory in a Goal-Directed Agent. arXiv preprint arXiv:1803.10760 (2018).