ROHD Hardware Component Library
A hardware component library developed with ROHD. This library aims to collect a set of reusable, configurable components t//hat can be leveraged in other designs. These components are also intended as good examples of ROHD hardware implementations.
Check out the generator web app, which lets you explore some of the available components, configure them, and generate SystemVerilog.
The public library can be compiled to WebAssembly. A browser smoke test covers component simulation, typed interfaces, and SystemVerilog generation:
dart test -p chrome -c dart2wasm test/wasm_compatibility_test.dart
Individual APIs and tests that require native tools or file access may still require the Dart VM.
This project is always improving and growing! In a given category, initial
components are primarily focused on correctness with room for optimization from
there. Please feel free to contribute or provide feedback. Check out
CONTRIBUTING
for details on how to contribute.
This project is not intended to be the only place for reusable hardware components developed in ROHD. It's not even intended to be the only library. Contributions are welcomed to this library, but developers are also welcome to build independent packages or libraries, even if they may overlap.
Guidelines for Components
- All hardware components should be
Modules so that they are convertible to SystemVerilog - Components should be general and easily reusable
- Components should be as configurable as may be useful
- Components must be extensively tested
- Components must have excellent documentation and examples
- The first component in a category should be the simplest
- Focus on breadth of component types before depth in one type
- Add
extensions to other classes to make component usage easier, when appropriate
Component Families
Choose a family by the job it does in a design. The guides explain how to
select and compose related components; the component index
has direct links to individual components and their contracts. Family names
below link to source barrels, but applications should import
package:rohd_hcl/rohd_hcl.dart.
| Family | Contents | Guides |
|---|---|---|
| Arithmetic | Accumulation, addition, multiplication, division and roots, rounding, normalization, and numeric conversion | Arithmetic primitives, fixed point, floating point |
| Binary math | Binary transforms, finite fields, recurrences, LFSRs, signatures, and PRBS | Binary math |
| Bit operations | Bit and pattern search, population counts, selection, multiplexing, shifting, and bit manipulation | Bit operations |
| Clocking | Clock and toggle gating, clock enables, event detection, and clock-domain crossing | Clocking overview |
| Dataflow | Sorting, selection, reduction, lane layout, framing, and serialization | Dataflow pipelines, layout and framing, serialization |
| Encodings | Gray, one-hot, thermometer, and priority encoding | Encoding overview |
| Error control | Parity, Hamming/Hsiao protection, BCH, Reed-Solomon, CRC, and LDPC decoding and soft-read retry | Error-control selection and composition |
| Flow control | Arbitration, FIFO storage, elastic buffering, routing, credit accounting, tagged scheduling and retirement, and recovery | Ready/valid, credit transport, tagged flow, protocol composition |
| Inference | Fixed-point attention, tensor movement, storage, layout conversion, and pooling windows | Inference building blocks |
| Interfaces | AMBA interfaces, including AXI4/AXI5, AXI-Lite, ACE, AXI-Stream, LTI, and APB, plus SPI interfaces and endpoints | Standard interfaces, AMBA bus families and revisions |
| Memory | Register files, synchronous and banked memories, protected storage, access and allocation, associative lookup, caches, replacement, tagged state, sequential windows, and CSRs | Memory selection and composition, associative memories and caches, CSRs |
| Models | Simulation-only memory and behavioral models, protocol bus functional models, agents, and compliance checkers | Behavioral models, protocol models and verification |
For cross-family designs, start with building a dataflow pipeline, protocol composition, and payload schemas and typed boundaries. The attention engine example shows inference building blocks in a runnable design. The configurator offers a subset of the library's components.
Copyright (C) 2023-2026 Intel Corporation
SPDX-License-Identifier: BSD-3-Clause
Libraries
- arithmetic
- Documentation-only family index. Import
package:rohd_hcl/rohd_hcl.dart. - binary_math
- Documentation-only family index. Import
package:rohd_hcl/rohd_hcl.dart. - bit_operations
- Documentation-only family index. Import
package:rohd_hcl/rohd_hcl.dart. - clocking
- Documentation-only family index. Import
package:rohd_hcl/rohd_hcl.dart. - component_config
- Documentation-only family index. Import
package:rohd_hcl/rohd_hcl.dart. - dataflow
- Documentation-only family index. Import
package:rohd_hcl/rohd_hcl.dart. - encodings
- Documentation-only family index. Import
package:rohd_hcl/rohd_hcl.dart. - error_control
- Documentation-only family index. Import
package:rohd_hcl/rohd_hcl.dart. - flow_control
- Documentation-only family index. Import
package:rohd_hcl/rohd_hcl.dart. - interfaces
- Documentation-only family index. Import
package:rohd_hcl/rohd_hcl.dart. - memories
- Documentation-only family index. Import
package:rohd_hcl/rohd_hcl.dart. - models
- Documentation-only family index. Import
package:rohd_hcl/rohd_hcl.dart. - rohd_hcl
- bit_operations/selection/priority_mux
- Generic priority multiplexer entry point for bit selection.
- interfaces/spi/endpoints/spi_main
- Generic SPI main endpoint entry point for typed payloads.
- interfaces/spi/endpoints/spi_sub
- Generic SPI subordinate endpoint entry point for typed payloads.
- memory/associative/associative_match_selector
- Generic associative-memory match selector entry point.
- memory/associative/associative_matcher
- Generic associative-memory matcher entry point.
- memory/associative/parallel_associative_memory
- Generic parallel-flop associative memory entry point.
- memory/associative/synchronous_associative_lookup_port_interface
- Generic synchronous associative-memory lookup port entry point.