chronon::SingleStageReg
Single-entry pipeline register with ping-pong slots and runtime write tracking. More...
#include <SingleStageReg.hpp>
Public Functions
| Name | |
|---|---|
| bool | written() const |
| template <ValidPhase P> void | write(T data) |
| template <ValidPhase P> bool | valid() const |
| template <ValidPhase P> void | retain() |
| void | reset() |
| template <ValidPhase P> const T & | read() const |
| template <ValidPhase P> T & | read() |
| SingleStageReg & | operator=(SingleStageReg && ) =default |
| SingleStageReg & | operator=(const SingleStageReg & ) =delete |
| template <ValidPhase P,typename Func > bool | ifValidConsume(Func && fn) |
| template <ValidPhase P,typename Func > std::size_t | forEachValidConsume(Func && fn) |
| template <ValidPhase P> T | consume() |
| template <ValidPhase P> void | beginCycle() |
| SingleStageReg() =default | |
| SingleStageReg(SingleStageReg && ) =default | |
| SingleStageReg(const SingleStageReg & ) =delete |
Detailed Description
template <typename T >
class chronon::SingleStageReg;
Single-entry pipeline register with ping-pong slots and runtime write tracking.
Public Functions Documentation
function written
inline bool written() const
function write
template <ValidPhase P>
inline void write(
T data
)
function valid
template <ValidPhase P>
inline bool valid() const
function retain
template <ValidPhase P>
inline void retain()
function reset
inline void reset()
function read
template <ValidPhase P>
inline const T & read() const
function read
template <ValidPhase P>
inline T & read()
function operator=
SingleStageReg & operator=(
SingleStageReg &&
) =default
function operator=
SingleStageReg & operator=(
const SingleStageReg &
) =delete
function ifValidConsume
template <ValidPhase P,
typename Func >
inline bool ifValidConsume(
Func && fn
)
function forEachValidConsume
template <ValidPhase P,
typename Func >
inline std::size_t forEachValidConsume(
Func && fn
)
function consume
template <ValidPhase P>
inline T consume()
function beginCycle
template <ValidPhase P>
inline void beginCycle()
function SingleStageReg
SingleStageReg() =default
function SingleStageReg
SingleStageReg(
SingleStageReg &&
) =default
function SingleStageReg
SingleStageReg(
const SingleStageReg &
) =delete
Updated on 2026-05-26 at 05:42:32 +0000