High-Level Synthesis of Efficient Pipelines with Visibility Control
High-level synthesis (HLS) raises the abstraction of hardware design from concurrent register-transfer level (RTL). Among the forms of parallelism HLS exploits, pipelining demands fine-grained control over pipeline structure and hazard resolution to achieve competitive power, performance, and area (PPA). However, existing tools either lack such control or sacrifice sequential semantics to provide it. We present an HLS tool that embeds fine-grained pipeline control in a sequential programming model while generating synchronization logic only where needed to resolve the pipeline's potential hazards. The tool builds on visibility control, a novel programming abstraction that unifies hazard resolution techniques including stalling, bypassing, speculation, deferred commit, and register renaming. We evaluate on in-order RISC-V cores, histograms, and an AES accelerator. On RISC-V cores, we implement stall, bypass, speculation, and register renaming; on histograms, we implement scheduling strategies that previously required RTL or concurrent programming models. Compiled pipelines outperform HLS tools with sequential semantics and achieve PPA comparable to hand-written RTL.