Manuscript Offprint
arXiv:2610.36481A State Augmented Approach to Paralle Modeling in High-Level Synthesis
A State Augmented Approach to Parallel Modeling in High-Level Synthesis
Nicholas Kovacs
University of South Florida
Bellini College of Cybersecurity, AI, and Computing
Tampa, Florida, USA
Abstract
High-level synthesis (HLS) can schedule only the concurrency made legal by its input description. For feedback-coupled designs, a sequential behavioral model can obscure the architectural state boundaries and hazard resolution needed for efficient overlap. We develop an explicit architectural modeling methodology based on synchronous sequential processes that start in lockstep and synchronize completion before repeating. Persistent state, communication, and feedback control are represented in C++, while HLS schedules and binds operations within that structure. A five-stage RV32I processor illustrates three consequential modeling decisions: which version of a value a consumer reads, when it consumes that value, and how architectural memory actions map to port operations. On a Kintex UltraScale+ FPGA, the CPI-optimized configuration achieves 1.221 cycles per instruction at 220 MHz, compared with 4.000 for an algorithmic HLS baseline and 1.575 at 242 MHz for an Ibex reference. An area-optimized configuration reduces LUTs by 65% and registers by 47%, with 9.7% more benchmark cycles and a 250 MHz achieved clock. These results demonstrate a separation between designer-controlled architecture and tool-controlled scheduling; broader applicability beyond the processor case study remains to be evaluated.
Keywords
high-level synthesis, architectural modeling, feedback, parallelism, RISC-V, FPGA
1 Introduction
High-level synthesis translates sequential source code into parallel hardware through dependence analysis, scheduling, and resource binding. For regular array computations, loop pipelining, unrolling, and task decomposition expose substantial concurrency. Feedback-coupled designs present a different problem: the next computation depends on evolving shared state, and efficient execution requires explicit rules for forwarding, stalls, and redirection. A scheduling directive requests overlap; it does not specify these architectural rules.
Hao Zheng
University of South Florida
Bellini College of Cybersecurity, AI, and Computing
Tampa, Florida, USA
A processor makes this distinction concrete. An instruction-set-simulator-style loop fetches, decodes, executes, accesses memory, and commits one instruction. Register indices and branch outcomes are runtime values. Overlapping instructions therefore requires a microarchitecture that handles both value dependencies and control changes. HLS may overlap portions of the behavioral loop, but its legal schedule is constrained by the description's recurrences and timing. In our baseline, the achieved initiation interval (II) is four; forcing a more aggressive schedule fails the clock target.
The proposed methodology represents the design as synchronous sequential processes over explicitly declared architectural boundaries. Processes start in lockstep, compute concurrently subject to communication dependencies, and synchronize completion before committing selected inter-process state and repeating. The designer specifies the communication and consumption timing that make overlap correct; HLS retains detailed scheduling, internal pipelining, resource sharing, and storage binding subject to those semantics. This is architectural modeling in C++, rather than an expectation that directives will reconstruct an unspecified architecture.
Explicit pipeline-state modeling has precedent, particularly in Comet [14, 15]. Our contribution is to develop and experimentally examine the modeling choices that determine cost within this formulation. We isolate three choices: registered versus in-flight communication, the stage at which a value is consumed, and the memory operations required by an architectural action. A complete RV32I case study relates these choices to II, achievable frequency, and area, using an algorithmic HLS baseline, an Ibex RTL reference, and CPI- and area-optimized configurations. The general principle applies to describing feedback-coupled concurrency; the experiments establish its effectiveness for this processor family and tool flow, rather than a universal advantage over RTL or other HLS approaches.
2 Background and Positioning
2.1 Scheduling, State, and Directives
Loop pipelining overlaps iterations subject to data recurrences, timing, and resource limits. Its II is the interval between iteration starts, not instruction CPI. Dataflow decomposition instead creates communicating tasks, typically with FIFO or channel interfaces. Both mechanisms are useful, but a source-level recurrence must still respect when its state becomes available. True dependencies cannot be removed safely by suppressing dependence checks; false aliasing dependencies may be refined only when independence is established.
FPGA '27, California, USA 2027.
Nicholas Kovacs and Hao Zheng
The distinction matters for a processor: forwarding sends results backward relative to instruction flow, redirects change the front end, and interlocks selectively hold state. The attempted stream-based formulation reported here makes this concrete. Fetch, decode, execute, memory, and writeback were expressed as free-running hls::task processes connected by streams, with the register file and the completion flag remaining shared state. Vitis reports merging decode, writeback, memory, and execute “due to feedback on regfile”, then merging all five “due to feedback on is_finished”, and extracts a single process function; synthesis then fails because that merged process has non-FIFO I/O. This observation concerns that formulation and tool flow; it does not establish that channel-based designs cannot express feedback.
2.2 Processor Descriptions and HLS Cores
Rocket Chip [1] and SiFive's E31 [17] illustrate generator-based architectural descriptions, while Ibex [7], used in OpenTitan [8], provides a configurable SystemVerilog implementation. PicoRV32 [20] emphasizes compact multi-cycle execution, and VexRiscv [18] exposes architectural configuration through SpinalHDL. These designs already state hardware structure rather than asking a software scheduler to infer it. The comparative survey of application-class RISC-V implementations [4] further illustrates why results depend on configuration and implementation context. Here, Ibex is an implementation reference, not an iso-microarchitecture baseline.
Comet [14, 15] is the closest methodological precedent. It compiles one C++ description both into a cycle-accurate simulator and into hardware. Its analysis identifies register-file read-after-write and next-PC dependencies in instruction-level behavioral models. Its pipelined formulation declares persistent inter-stage structures, computes temporary stage outputs, and commits them after evaluating stalls. This gives C++ the current-state/next-state discipline familiar from RTL nonblocking assignments. Forwarding selects available results from later-stage registers, and explicit state machines accommodate caches and multi-cycle operations. Comet reports II=1, but Dhrystone CPI=1.9: static scheduling throughput and runtime stall cost are different quantities.
We share Comet’s explicit-state principle and do not claim its invention. Comet establishes that a C++ description can carry persistent inter-stage state under a current-state/next-state discipline; the present study asks what determines performance and area once that structure already exists, and treats the remaining modeling decisions as the object of study rather than as implementation detail. Three such decisions prove consequential, and each changes a measured outcome while leaving the stage structure untouched: which version of a value a consumer reads sets the recurrence delay, when it consumes that value determines which storage bindings are legal, and how an architectural action maps to port operations determines how many accesses must be scheduled. The register file is the clearest example. With branches resolved in decode, the operand read must complete within the same modeled transition, so only a fully partitioned flip-flop register file is legal, and the design pays 601 LUTs and 746 registers for it; moving branch resolution to execute lets the same read cross a stage boundary, after which the identical storage-binding request is accepted as distributed RAM at II=1. The source change is one stage assignment rather than a directive, and no directive alone can produce it. Our fixed-latency evaluation and machine-mode support also differ from Comet’s reported configuration, so its Catapult/Artix-7 results provide context, not a controlled cross-tool or CPI comparison.
The method also invites comparison with RTL design, since both describe behavior in terms of cycles and explicit state. The difference is what the description can be used for. The same C++ that is synthesized is compiled by a standard host compiler, so one source serves both as the executable model used to run programs during development and as the input to synthesis; a change to the hazard rules can be exercised in software before any RTL exists, which shortens the loop between an architectural change and functional evidence about it. The correspondence is not automatic: a modeled iteration equals one hardware cycle only when the schedule reaches II=1 and memory latency is fixed, which is why the hardware cycle counts reported here come from an external counter rather than from the model's own iteration count. The resulting quality is competitive with a manually developed core of similar configuration: against Ibex, the area-optimized configuration uses 1,980 LUTs against 1,940 and 1,595 registers against 702, and completes the kernel suite in 0.82 times Ibex's time.
HL5 [9] demonstrates a Stratus-generated RV32IM processor and multiple RTL configurations obtained through HLS settings; the scaling study [16] extends this direction. They establish that settings remain useful once a synthesizable processor description exists. Toker's RV32I SoC [19] connects HLS simulation, RTL simulation, and FPGA validation. These efforts motivate HLS processor construction and validation. Our emphasis is the causal link between explicit source architecture, legal scheduling, and measured tradeoffs, rather than processor synthesis alone.
2.3 Directive Search and Structural Transformation
Automatic pragma insertion [11] optimizes directive choices using analytical models, while AutoScaleDSE [6] explores transformations and directives through ScaleHLS/MLIR. Such search complements our method: it explores a configuration space whose available concurrency depends on the source formulation.
Structural transformation is also an established research direction. Allo [3] separates algorithmic description from composable scheduling transformations. HIDA [21] represents functional and structural dataflow hierarchically. Stream-HLS [2] optimizes loop organization and buffer-to-FIFO communication for affine computations. Sisyphus [12] and Prometheus [10] jointly optimize code transformations, task organization, memory partitioning, and pragmas. These works demonstrate that HLS optimization extends beyond directive tuning; architectural structure is not exclusively a manual concern. Their reviewed evaluations concern regular accelerator computations rather than the runtime-indexed, feedback-coupled processor state examined here. We therefore position explicit architectural modeling as a complementary formulation for this design class, without claiming that automated restructuring is impossible in general.
3 Explicit Architectural Modeling
3.1 Synchronous Sequential Process Model
The methodology models a design as a set of synchronous sequential processes. Each process describes a portion of the design through sequential computations, while the processes execute concurrently within a common iteration. All processes start in lockstep, and all must complete their work before any process can repeat in the next iteration. Early-finishing processes wait logically at the common completion boundary.
Let denote persistent design state at the start of iteration , and let denote process . Each process computes candidate outputs and updates, with explicitly specified communication, and the synchronized update advances the design:
Here C selects updates using hold, validity, and redirect conditions . Registered communication uses state established at the preceding boundary. Any same-iteration communication or shared-state access must have explicitly defined dependencies and ordering; concurrency does not imply that the processes are independent.
In C++, persistent state is declared outside a top-level loop, and process computations are represented within its body. Candidate outputs are kept separate from current inter-process state until the synchronized update. HLS overlaps process computations where dependencies permit, despite sequential source-level function calls. The enclosing iteration represents completion synchronization, realized by the schedule rather than a separate runtime barrier controller.
The designer specifies process boundaries, sequential behavior within each process, communication, and the synchronized update rules. HLS schedules the operations and binds resources subject to those semantics. Architectural state registers and HLS-inserted scheduling registers have different roles: the former define communication between modeled iterations, while the latter realize the computations under timing and resource constraints. A modeled iteration may occupy multiple hardware cycles; II=1 is a measured scheduling outcome, not an assumption of the process model.
3.2 RISC-V Example: Five Synchronized Processes
The RV32I example assigns fetch (IF), decode (ID), execute (EX), memory (MEM), and writeback (WB) to five synchronous sequential processes. Each performs the work of one pipeline stage. During an iteration, the processes operate on different in-flight instructions, start together, and synchronize before repeating. This concurrent execution across processes is distinct from pipelining successive iterations of an instruction-level behavioral loop.
Persistent state comprises the PC, 32-entry 32-bit register file, machine-mode CSRs, and four valid-tagged inter-process registers. IF/ID holds the instruction and its PC; ID/EX holds the decoded operation, register indices, immediate, operand values, and PC; EX/MEM carries the result or memory address, destination, memory controls, and trap information; MEM/WB carries the result and register-write controls. Valid bits identify instructions and bubbles. Reset empties the pipeline, and x0 remains unwritable.
Persistent state: PC, RF, CSRs, IF/ID, ID/EX, EX/MEM, and MEM/WB. Initialize stage registers as bubbles.
(1) Start iteration: activate all five processes with current inter-process state.
(2) Concurrent process work: IF fetches; ID decodes and reads operands; EX forwards and executes; MEM accesses data memory; WB commits a valid result. Respect explicit shared-state and communication dependencies.
(3) Compute feedback: evaluate load-use and decode operand interlocks, branch/jump decisions, and trap/MRET redirects.
(4) Synchronize completion: finish all process computations before advancing the iteration.
(5) Select next state: an older redirect squashes younger work; a front-end interlock holds PC and IF/ID and inserts an ID/EX bubble; otherwise select normal advancement or a decode redirect.
(6) Commit and repeat: update selected inter-process state and begin the next common iteration.
Figure 1: RV32I modeled as synchronized sequential processes. The list specifies phases and concurrent work, not a serial hardware schedule.
Within each iteration, IF reads instruction memory and forms an IF/ID candidate. ID decodes current IF/ID, reads operands, and forms an ID/EX candidate. EX selects available forwarded operands and computes an EX/MEM candidate. MEM performs the access identified by current EX/MEM and forms a MEM/WB candidate. WB commits the valid oldest result. HLS schedules their concurrency while preserving internal dependencies. The source explicitly defines writeback-to-decode visibility for shared register-file accesses; the current-state/next-state discipline applies to the inter-process registers rather than requiring every side effect to be a pure function.
After all process computations and feedback decisions are complete, the synchronized update selects the next PC and commits, holds, or invalidates the inter-process registers. A hazard-induced hold does not let one process advance to another iteration independently: every process still participates in the common iteration, but its selected architectural state may remain unchanged. Fig. 1 illustrates this execution model; detailed instruction, CSR, and trap logic is omitted.
3.3 Feedback, Hazards, and Communication Timing
For each source operand, forwarding compares its register index with valid later-stage destinations and selects an available matching result instead of the stale decoded value. A load-use dependence cannot use a result before the memory access completes; the interlock holds PC and IF/ID while injecting a bubble into ID/EX, allowing older instructions to advance. Decode-stage branch resolution also requires available operands: the CPI-optimized configuration stalls when a needed operand remains in flight. Taken branches and jumps redirect fetch and invalidate younger wrong-path work. Traps and MRET introduce older redirects from execute; incorrect-path execution and architectural side effects must be suppressed.
Nicholas Kovacs and Hao Zheng
Forwarding must prefer the youngest older producer when several in-flight instructions target the same register: selection takes an available EX/MEM result on a valid write match, otherwise a matching MEM/WB result, otherwise the decoded operand, excluding matches to x0 and treating a load destination as not yet available. The load-use interlock asserts when ID/EX is a valid load whose nonzero destination matches a source the decoded instruction actually uses. Holding the front end retains the dependent instruction while bubbling ID/EX prevents it from executing with unavailable data, and older stages continue until forwarding or register-file visibility satisfies the dependence.
Control feedback requires a corresponding age discipline. A redirect from an older instruction supersedes younger candidate work, while a decode-resolved branch must wait for its own operands. Validity therefore controls not only register propagation but also whether a candidate may write memory, update a CSR, or retire. PC and instruction metadata travel with in-flight work so that a trap records the faulting instruction rather than the current fetch address. These explicit rules are the architectural content that distinguishes the model from simply splitting sequential instruction semantics into five function calls.
The source distinguishes communication through registered stage state from consuming a newly computed in-flight value. A same-transition bypass can shorten the number of modeled transitions to a consumer, but extends a combinational path and potentially a loop-carried recurrence. A registered path breaks that path at the expense of delayed availability. The designer must specify which result is valid at the consumer and how an unavailable result causes a stall; HLS cannot infer a new hazard protocol from a timing directive. Conversely, making these rules explicit does not remove real dependencies or exempt the model from dependence analysis.
The core includes Zicsr, machine-mode handling of environment calls, breakpoints, illegal instructions, and misaligned loads/stores, and the host-target interface used to run tests. The implementation provides both an AXI/DRAM path with instruction buffering and a write-back data cache, and a fixed-latency on-chip memory path. The reported comparative evaluation uses the latter. Variable-latency memory remains a major limitation: the reported external-memory implementation reaches II=169.
The II=169 result is a property of where the variable latency was placed, not of the modeling method. In that implementation the AXI response is awaited inside the modeled iteration, so the memory round trip becomes part of the loop-carried recurrence and the scheduler must size the interval to the worst-case response rather than to the pipeline depth. The model already contains the mechanism needed to avoid this, because a miss is architecturally the same event as a load-use hazard: the consumer cannot proceed, the front end holds, a bubble enters ID/EX, and older work continues. Expressing the memory system as an additional synchronous process with its own persistent state, whose completion is one of the feedback conditions in Eq. (1), keeps every modeled iteration a fixed-latency transition and turns a miss into a multi-iteration stall instead of a longer iteration. This is the same structure Comet uses to accommodate caches and multi-cycle operations. We have not built and measured that configuration, so the external-memory path remains the clearest limitation of the present evaluation.
3.4 Consumption Timing and Memory Operations
A value’s consumption point determines which storage latency is legal. In the CPI-optimized pipeline, branches consume register operands during decode. A registered register-file read would make those operands arrive too late. The fully partitioned flip-flop implementation supports this timing, at substantial storage and multiplexing cost. Moving branch/jump resolution to execute lets the register-file read cross an explicit stage boundary; the same storage-binding request then becomes compatible with II=1. Two mirrored C++ arrays supply the distributed-RAM reads without hand-written RTL. The architectural price is a later redirect and increased branch penalty, rather than merely a change of storage directive.
Memory operations present a second example. Implementing a byte or halfword store as a word read, merge, and write adds a dependent access. Four independently addressed byte lanes eliminate that read-modify-write in the CPI-optimized design; the area-optimized design instead carries a byte-write strobe with a single-port write. Deferring host-interface acknowledgement also makes two otherwise competing stores mutually exclusive. These changes alter what must be scheduled, rather than asking the scheduler to ignore a real port conflict.
The designer therefore controls stage placement, validity, feedback selection, operand consumption, and memory access semantics. HLS controls the detailed schedule, internal registers, resource sharing, and legal bindings. Exploration alternates between structural changes and scheduling settings, with simulation and hardware measurement checking that the resulting architecture remains correct.
4 Experimental Evaluation
4.1 Setup and Validation
The algorithmic baseline, CPI-optimized model, area-optimized model, and Ibex reference execute identical binaries on a KCU116 board with a Kintex UltraScale+ xcku5p-ffvb676-2-e. Each sees 256 KB of single-cycle storage at the same access latency. HLS systems use separate instruction/data memories (130.5 BRAM tiles), while Ibex uses unified memory (66.5); these system-memory costs are excluded from the core-resource table. An external counter measures hardware cycles because the HLS mcycle advances per modeled iteration and would otherwise hide scheduling overhead.
Directed tests and eight kernels come from riscv-tests [13]; unsupported instruction-cache-invalidation tests are excluded. Kernel sources are unchanged, but relinked with a minimal runtime replacing unsupported UART output with memory-based reporting and upstream verification checks. GCC 13.2.0 targets rv32i_zicsr. CoreMark [5] runs 2500 iterations with reference CRCs checked. Reported validation includes RTL simulation and board execution; it is not an exhaustive proof of ISA or trap correctness.
Cycle counts are measured at 100 MHz. Execution time also uses each implementation’s highest clock found with nonnegative post-route slack. Three candidate implementation flows are offered to every core, followed by frequency bisection; HLS project-mode strategies and Ibex non-project directives are comparable but not
Table 1: Measured throughput, all cores at 100 MHz
| Benchmark | Instr. | Pipelined, CPI-opt. | Pipelined, area-opt. | Ibex | Algorithmic | ||||
|---|---|---|---|---|---|---|---|---|---|
| cycles | cyc/instr | cycles | cyc/instr | cycles | cyc/instr | cycles | cyc/instr | ||
| rsort | 190,632 | 204,506 | 1.073 | 210,127 | 1.102 | 272,603 | 1.430 | 762,563 | 4.000 |
| memcpy | 29,614 | 32,154 | 1.086 | 34,675 | 1.171 | 50,676 | 1.711 | 118,491 | 4.001 |
| vvadd | 3,963 | 4,442 | 1.121 | 4,905 | 1.237 | 6,409 | 1.616 | 15,887 | 4.008 |
| towers | 4,118 | 4,620 | 1.122 | 4,853 | 1.178 | 7,223 | 1.753 | 16,507 | 4.008 |
| median | 6,295 | 7,769 | 1.234 | 8,826 | 1.402 | 10,821 | 1.718 | 25,215 | 4.005 |
| dhrystone | 298,743 | 380,571 | 1.274 | 427,878 | 1.432 | 483,350 | 1.618 | 1,195,015 | 4.000 |
| multiply | 21,455 | 27,650 | 1.289 | 33,829 | 1.577 | 34,141 | 1.591 | 85,855 | 4.001 |
| qsort | 134,812 | 180,627 | 1.340 | 199,335 | 1.479 | 221,242 | 1.641 | 539,283 | 4.000 |
| Aggregate | 689,632 | 842,339 | 1.221 | 924,428 | 1.340 | 1,086,465 | 1.575 | 2,758,816 | 4.000 |
Cycle counts are whole-program, measured by an external hardware counter, not the core's mcycle. Instr. is the CPI-optimized core's retired count; the four configurations agree to within 6 instructions on any benchmark and 12 in 689,632 overall, and each cyc/instr uses that configuration's own count. Rows are ordered by the CPI-optimized core's cyc/instr.
identical. The search resolution is 2 MHz for the baseline cores and 1 MHz for the area-optimized and final CPI-optimized cores. These are achieved clocks under the tested flows, not absolute physical limits. Tool release, exact source revision, and full scripts would be needed for complete reproduction.
A large language model (Claude Code) was used under the authors' direction to propose and implement candidate source transformations, including the resource-sharing, storage-binding and clock-target changes of Section 4.4, to generate separate directed tests and the build and measurement scripts, to run the synthesis and implementation sweeps, and to assist in analyzing the resulting data. The modeling methodology and the architectural decisions are the authors'; all reported data come from the tool flow and from board execution and were checked by the authors.
4.2 Does Explicit Structure Improve the Behavioral Baseline?
The algorithmic baseline implements one instruction per loop iteration without explicit pipeline registers, forwarding, or interlocks. Under a 4 ns target, register-file partitioning improves II from seven to four. The body occupies six scheduling states, so partial iteration overlap exists; this is not a strict absence of HLS pipelining. A forced aggressive schedule produces a 7.34 ns critical path instead of 2.85 ns and fails the target. The measured II=4 is consequently a property of this description and configuration, not a universal lower bound for behavioral HLS.
Table 1 shows the CPI-optimized explicit-state design at 1.221 aggregate CPI versus 4.000 for the baseline and 1.575 for Ibex. Variation across kernels reflects hazards and redirects. The comparison supports the combined architectural reformulation, including hazard handling and memory changes; it does not isolate declaring registers alone. Ibex uses a different microarchitecture, so the 22.5% cycle reduction is a case-study result rather than an intrinsic HLS advantage.
Table 2 separates cycle efficiency from frequency. At 220 MHz, the CPI-optimized design takes 0.85× Ibex's aggregate time despite Ibex reaching 242 MHz. The area-optimized configuration uses more cycles but reaches 250 MHz, yielding 0.82× Ibex's time and the shorter absolute runtime of the two. Neither II nor clock frequency alone captures the tradeoff.
4.3 What Remains Necessary to Reach II=1?
Explicit state initially yields II=5, demonstrating that structural concurrency does not guarantee a one-cycle schedule. Deferring host-interface acknowledgement and removing registered boundaries around separately synthesized stage functions reduce II to two. Eliminating sub-word-store read-modify-write through byte lanes then reduces II to one. Five attempted changes—dual-port memory, removal of an already disabled atomic path, removal of volatile, writeback reordering, and counter-increment relocation—do not change II. These observations distinguish effective changes to scheduling structure from settings that leave its limiting depth intact.
Table 3 reports the memory transformation directly, measured on the core before the trap fix so that the memory organization is the only variable. Cycles approximately halve, but frequency falls from 300 to 226 MHz, giving a suite-time ratio of 0.664. Critical-path logic delay falls from 1.83 to 1.06 ns while routing delay rises from 1.34 to 3.02 ns. The later single-port strobe design also shows routing-dominated timing, so the measurements do not establish that byte-lane fanout alone causes the frequency loss. This is a measured physical tradeoff whose precise causal attribution remains open.
4.4 How Do Structural Choices Change Area?
The CPI-optimized model uses 5,604 LUTs and 3,009 registers. Source consolidation replaces six shift expressions with one 33-bit arithmetic-right shifter and bit reversal for left shifts. Eleven adders and seventy-one comparators from separate expressions are consolidated into shared arithmetic/comparison paths; load/store address generation reuses the adder. Computing one CSR write value and enable replaces six write call sites. Together with unused decode removal, counter narrowing, a one-bit trap-target flag in place of a carried 32-bit address, removal of the register-file reset loop, and the single-port byte-strobe memory, these changes yield 2,936 LUTs with unchanged benchmark cycles. The reset loop is restored in the final configuration, where the register file is distributed RAM whose contents are undefined at power-up. Counter narrowing is a feature change and limits equivalence to the tested operating range; it should not be described as preserving all counter behavior.
Holding source fixed while relaxing an 8 ns scheduling target to 10 ns removes 452 registers without changing II or measured cycle behavior, but achieved frequency falls from 246 to 208 MHz. Targets
Nicholas Kovacs and Hao Zheng
Table 2: Measured execution time, each core at its own maximum clock
| Benchmark | Pipelined CPI-opt. 220 MHz (μs) | Pipelined area-opt. 250 MHz (μs) | Ibex 242 MHz (μs) | Algorithmic 239 MHz (μs) | CPI-opt. / Ibex | Area-opt. / Ibex | Algorithmic / Ibex |
|---|---|---|---|---|---|---|---|
| rsort | 929.57 | 840.51 | 1126.46 | 3190.64 | 0.83× | 0.75× | 2.83× |
| memcpy | 146.15 | 138.70 | 209.40 | 495.78 | 0.70× | 0.66× | 2.37× |
| vvadd | 20.19 | 19.62 | 26.48 | 66.47 | 0.76× | 0.74× | 2.51× |
| towers | 21.00 | 19.41 | 29.85 | 69.07 | 0.70× | 0.65× | 2.31× |
| median | 35.31 | 35.30 | 44.71 | 105.50 | 0.79× | 0.79× | 2.36× |
| dhrystone | 1729.87 | 1711.51 | 1997.31 | 5000.06 | 0.87× | 0.86× | 2.50× |
| multiply | 125.68 | 135.32 | 141.08 | 359.23 | 0.89× | 0.96× | 2.55× |
| qsort | 821.03 | 797.34 | 914.22 | 2256.41 | 0.90× | 0.87× | 2.47× |
| Aggregate | 3828.8 | 3697.7 | 4489.5 | 11543.2 | 0.85× | 0.82× | 2.57× |
Time is cycles divided by the achieved clock; cycle counts are those of Table 1. Each clock is the highest at which that design met timing post-route (WNS ≥ 0) under the best of three implementation flows offered to every core. The area-optimized configuration is described in Section 4.4.
Table 3: Effect of the byte-lane data memory on the pipelined core, measured before the trap fix
| Benchmark | II=2 (cycles) | II=1 (cycles) | Ratio |
|---|---|---|---|
| rsort | 409,013 | 204,506 | 0.5000 |
| memcpy | 64,309 | 32,154 | 0.5000 |
| vvadd | 8,885 | 4,442 | 0.4999 |
| towers | 9,241 | 4,620 | 0.4999 |
| median | 15,539 | 7,769 | 0.5000 |
| dhrystone | 761,143 | 380,571 | 0.5000 |
| multiply | 55,301 | 27,650 | 0.5000 |
| qsort | 361,255 | 180,627 | 0.5000 |
| Aggregate | 1,684,686 | 842,339 | 0.5000 |
| (MHz) | 300 | 226 | 0.753 |
| Suite time (ms) | 5.616 | 3.727 | 0.664 |
Four byte lanes remove the read-modify-write behind every sub-word store, taking the loop from II=2 to II=1; the cycle ratio is 0.5 on every benchmark. The restructuring costs clock speed, so the net gain in execution time is 34%, not 2×. The two columns are successive versions of one core, both measured before the trap fix; the final CPI-optimized configuration in Tables 2 and 5 includes the fix and reaches 220 MHz.
of 6 ns or tighter lose II=1. The clock request therefore controls both scheduling storage and performance.
Moving branch/jump resolution to execute permits the distributed-RAM register file discussed above. In the isolated reported comparison it removes 601 LUTs and 746 registers, adds 40 distributed-RAM LUTs, and removes the fabric read multiplexers. Combined changes yield 1,980 LUTs and 1,595 registers at a 9 ns target; an 8 ns build uses 2,226 and 1,736 and reaches 256 MHz. The reported 65% LUT and 47% register reductions cost 9.7% more kernel cycles and 6.6% more CoreMark cycles. Hardware cycle counts match full-system RTL simulation on the measured kernels.
Table 4 excludes memories and interconnect but includes the HLS host-control interface, absent from Ibex's scoped cell. Comet's published 2,032 LUTs and 1,503 registers use Catapult and Artix-7, with a different documented feature set. Its proximity to the area-optimized result is contextual; neither that row nor its Dhrystone CPI establishes a controlled superiority claim.
4.5 Workload Dependence and Limits
Table 5 shows why the conclusions must remain workload-specific. The CPI-optimized design leads Ibex in CoreMark/MHz (0.971 versus 0.915), but trails it in iterations/s (213.7 versus 221.3), while the
Table 4: Post-route resource usage, core logic only
| Core | LUT | FF | MUX F7/F8 |
|---|---|---|---|
| ibex | 1,940 | 702 | 39 |
| algorithmic pipelined | 6,327 | 3,140 | 95 |
| CPI-opt. | 5,604 | 3,009 | 166 |
| area-opt. | 1,980 | 1,595 | 0 |
| comet [14] | 2,032 | 1,503 | 260 |
Scoped to the core instance alone: memories, BRAM controllers, the JTAG-to-AXI master, the interconnect, and the external cycle counter are excluded. No core uses block RAM or DSP; all memory is external. F7/F8 counts the dedicated multiplexers used for selections too wide for a single LUT; narrower multiplexing is absorbed into LUT logic. Ibex and the area-optimized configuration hold their register files in distributed RAM; the other two use none. All four measured configurations implement rv32i with Zicsr and machine-mode traps, and the HLS cells additionally contain the AXI-lite interface through which the host starts the core, which Ibex's cell does not. Comet is its published Artix-7 xc7a12t result [14] from Catapult HLS and Vivado, on a different device generation; its F7/F8 entry is that table's Mux column, which is not identified there as F7/F8 primitives, and its rv32i configuration is described as supporting “only basic instructions” with no mention of CSRs, privileged mode, or trap handling.
Table 5: CoreMark, ITERATIONS=2500
| Core | Cycles (×10) | CoreMark /MHz | Clock (MHz) | CoreMark (iter/s) |
|---|---|---|---|---|
| pipelined | ||||
| CPI-opt. | 2,573 | 0.971 | 220 | 213.7 |
| area-opt. | 2,744 | 0.911 | 250 | 227.8 |
| ibex | 2,734 | 0.915 | 242 | 221.3 |
| algorithmic | 7,466 | 0.335 | 239 | 80.0 |
All runs exceed CoreMark's 10 s minimum and report the four reference CRCs. CoreMark/MHz is clock-independent: identical at 100 MHz and at .
area-optimized design reaches 227.8 iterations/s despite a lower normalized score of 0.911. The eight-kernel results and CoreMark consistently motivate reporting area, cycles, and achieved frequency together, but do not cover caches, external-memory stalls, or broader application mixes. Generality is demonstrated conceptually through the state-transition formulation and experimentally on one processor family; non-processor evaluation and a matched RTL architecture remain future work.
5 Conclusion
Explicit architectural modeling separates the state, communication, and hazard decisions that make concurrency legal from the scheduling and binding decisions HLS can optimize. The RV32I example shows how communication paths, consumption timing, and memory-operation structure determine II and performance-area tradeoffs. The measured configurations demonstrate competitive case-study performance and substantial source-driven area reductions, while differing architectures, memory systems, and tool flows limit broader comparisons. The same steps apply elsewhere: name the persistent state, place the process boundaries, and specify which version of each shared value a consumer reads, when it is consumed, and which ports it requires. The method suits designs whose next state depends on an arbitration or allocation decision: a switch arbiter, a cryptographic round and key schedule, or a cache controller where a miss is a hold condition rather than a longer iteration, none of which we have evaluated here.
References
[1] Krste Asanović, Rimas Avizienis, Jonathan Bachrach, et al. 2016. The Rocket Chip Generator. Technical Report UCB/EECS-2016-17. EECS Department, University of California, Berkeley.
[2] Suhail Basalama and Jason Cong. 2025. Stream-HLS: Towards Automatic Dataflow Acceleration. In Proceedings of the 2025 ACM/SIGDA International Symposium on Field Programmable Gate Arrays (FPGA). doi:10.1145/3706628.3708878
[3] Hongzheng Chen, Niansong Zhang, Shaojie Xiang, Zhichen Zeng, Mengjia Dai, and Zhiru Zhang. 2024. Allo: A Programming Model for Composable Accelerator Design. Proceedings of the ACM on Programming Languages 8, PLDI, Article 171 (2024), 593–620 pages. doi:10.1145/3656401
[4] Alexander Dörflinger, Mark Albers, Benedikt Kleinbeck, Yejun Guan, Harald Michalik, Raphael Klink, Christopher Blochwitz, Anouar Nechi, and Mladen Berekovic. 2021. A Comparative Survey of Open-Source Application-Class RISC-V Processor Implementations. In Proceedings of the 18th ACM International Conference on Computing Frontiers (CF '21). ACM, New York, NY, USA, 12–20. doi:10.1145/3457388.3458657
[5] EEMBC. 2024. CoreMark: An EEMBC Benchmark. https://www.eembc.org/coremark/.
[6] HyeGang Jun, Hanchen Ye, Hyunmin Jeong, and Deming Chen. 2023. AutoScaleDSE: A Scalable Design Space Exploration Engine for High-Level Synthesis. ACM Transactions on Reconfigurable Technology and Systems 16, 3, Article 46 (2023), 30 pages. doi:10.1145/3572959
[7] lowRISC. 2024. Ibex RISC-V Core. https://github.com/lowRISC/ibex.
[8] lowRISC. 2024. OpenTitan: Open Source Silicon Root of Trust. https://opentitan.org.
[9] Paolo Mantovani, Giuseppe Di Guglielmo, and Luca P. Carloni. 2020. HL5: A 32-bit RISC-V Processor Designed with High-Level Synthesis. In 2020 IEEE Custom Integrated Circuits Conference (CICC). doi:10.1109/CICC48029.2020.9075913
[10] Stéphane Pouget, Michael Lo, Louis-Noël Pouchet, and Jason Cong. 2025. Holistic Optimization Framework for FPGA Accelerators. ACM Transactions on Design Automation of Electronic Systems 31, 1, Article 7 (2025), 37 pages. doi:10.1145/3769307
[11] Stéphane Pouget, Louis-Noël Pouchet, and Jason Cong. 2025. Automatic Hardware Pragma Insertion in High-Level Synthesis: A Non-Linear Programming Approach. ACM Transactions on Design Automation of Electronic Systems 30, 2, Article 26 (2025), 44 pages. doi:10.1145/3711847
[12] Stéphane Pouget, Louis-Noël Pouchet, and Jason Cong. 2025. A Unified Framework for Automated Code Transformation and Pragma Insertion. In Proceedings of the 2025 ACM/SIGDA International Symposium on Field Programmable Gate Arrays (FPGA). doi:10.1145/3706628.3708873
[13] RISC-V International. 2024. riscv-tests. https://github.com/riscv-software-src/riscv-tests.
[14] Simon Rokicki, Joseph Paturel, and Olivier Sentieys. 2019. What You Simulate Is What You Synthesize: Designing a Processor Core from C++ Specifications. In 2019 IEEE/ACM International Conference on Computer-Aided Design (ICCAD). doi:10.1109/ICCAD45719.2019.8942177
[15] Simon Rokicki, Joseph Paturel, and Olivier Sentieys. 2022. Comet: a RISC-V Core Synthesized from C++ Specifications. https://inria.hal.science/hal-03885663. Poster, RISC-V Week, Paris.
[16] Johannes Schoder and H. Martin Bücker. 2024. Scaling an Augmented RISC-V Processor Design with High-Level Synthesis. In Embedded Computer Systems: Architectures, Modeling, and Simulation. Springer. doi:10.1007/978-3-031-73716-9_22
[17] SiFive, Inc. 2019. SiFive E31 Core Complex Manual v2p0. https://static.dev.sifive.com/SiFive-E31-Manual-v2p0.pdf
[18] SpinalHDL. 2024. VexRiscv. https://github.com/SpinalHDL/VexRiscv.
[19] Onur Toker. 2023. A High-Level Synthesis Approach for a RISC-V RV32I-Based System on Chip and Its FPGA Implementation Using Open Source Tools. In Proceedings of the 10th International Electronic Conference on Sensors and Applications. MDPI. doi:10.3390/ecsa-10-16212
[20] Claire Wolf. 2024. PicoRV32: A Size-Optimized RISC-V CPU. https://github.com/YosysHQ/picorv32.
[21] Hanchen Ye, Hyegang Jun, and Deming Chen. 2024. HIDA: A Hierarchical Dataflow Compiler for High-Level Synthesis. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS). doi:10.1145/3617232.3624850