CIRCT  18.0.0git
Public Member Functions | Private Attributes | List of all members
circt::calyx::MemoryInterface Struct Reference

#include <CalyxLoweringUtils.h>

Collaboration diagram for circt::calyx::MemoryInterface:
Collaboration graph
[legend]

Public Member Functions

 MemoryInterface ()
 
 MemoryInterface (const MemoryPortsImpl &ports)
 
 MemoryInterface (calyx::MemoryOp memOp)
 
 MemoryInterface (calyx::SeqMemoryOp memOp)
 
Value readData ()
 
Value readEn ()
 
Value readDone ()
 
Value writeData ()
 
Value writeEn ()
 
Value writeDone ()
 
std::optional< Value > readDataOpt ()
 
std::optional< Value > readEnOpt ()
 
std::optional< Value > readDoneOpt ()
 
std::optional< Value > writeDataOpt ()
 
std::optional< Value > writeEnOpt ()
 
std::optional< Value > writeDoneOpt ()
 
ValueRange addrPorts ()
 

Private Attributes

std::variant< calyx::MemoryOp, calyx::SeqMemoryOp, MemoryPortsImplimpl
 

Detailed Description

Definition at line 99 of file CalyxLoweringUtils.h.

Constructor & Destructor Documentation

◆ MemoryInterface() [1/4]

circt::calyx::MemoryInterface::MemoryInterface ( )
default

◆ MemoryInterface() [2/4]

circt::calyx::MemoryInterface::MemoryInterface ( const MemoryPortsImpl ports)
explicit

Definition at line 163 of file CalyxLoweringUtils.cpp.

◆ MemoryInterface() [3/4]

circt::calyx::MemoryInterface::MemoryInterface ( calyx::MemoryOp  memOp)
explicit

Definition at line 164 of file CalyxLoweringUtils.cpp.

◆ MemoryInterface() [4/4]

circt::calyx::MemoryInterface::MemoryInterface ( calyx::SeqMemoryOp  memOp)
explicit

Definition at line 165 of file CalyxLoweringUtils.cpp.

Member Function Documentation

◆ addrPorts()

ValueRange circt::calyx::MemoryInterface::addrPorts ( )

◆ readData()

Value circt::calyx::MemoryInterface::readData ( )

Definition at line 167 of file CalyxLoweringUtils.cpp.

References assert(), and readDataOpt().

◆ readDataOpt()

std::optional< Value > circt::calyx::MemoryInterface::readDataOpt ( )

Definition at line 203 of file CalyxLoweringUtils.cpp.

References impl.

Referenced by readData().

◆ readDone()

Value circt::calyx::MemoryInterface::readDone ( )

Definition at line 179 of file CalyxLoweringUtils.cpp.

References assert(), and readDoneOpt().

◆ readDoneOpt()

std::optional< Value > circt::calyx::MemoryInterface::readDoneOpt ( )

Definition at line 225 of file CalyxLoweringUtils.cpp.

References impl.

Referenced by readDone().

◆ readEn()

Value circt::calyx::MemoryInterface::readEn ( )

Definition at line 173 of file CalyxLoweringUtils.cpp.

References assert(), and readEnOpt().

◆ readEnOpt()

std::optional< Value > circt::calyx::MemoryInterface::readEnOpt ( )

Definition at line 214 of file CalyxLoweringUtils.cpp.

References impl.

Referenced by readEn().

◆ writeData()

Value circt::calyx::MemoryInterface::writeData ( )

Definition at line 185 of file CalyxLoweringUtils.cpp.

References assert(), and writeDataOpt().

◆ writeDataOpt()

std::optional< Value > circt::calyx::MemoryInterface::writeDataOpt ( )

Definition at line 235 of file CalyxLoweringUtils.cpp.

References impl.

Referenced by writeData().

◆ writeDone()

Value circt::calyx::MemoryInterface::writeDone ( )

Definition at line 197 of file CalyxLoweringUtils.cpp.

References assert(), and writeDoneOpt().

◆ writeDoneOpt()

std::optional< Value > circt::calyx::MemoryInterface::writeDoneOpt ( )

Definition at line 257 of file CalyxLoweringUtils.cpp.

References impl.

Referenced by writeDone().

◆ writeEn()

Value circt::calyx::MemoryInterface::writeEn ( )

Definition at line 191 of file CalyxLoweringUtils.cpp.

References assert(), and writeEnOpt().

◆ writeEnOpt()

std::optional< Value > circt::calyx::MemoryInterface::writeEnOpt ( )

Definition at line 246 of file CalyxLoweringUtils.cpp.

References impl.

Referenced by writeEn().

Member Data Documentation

◆ impl

std::variant<calyx::MemoryOp, calyx::SeqMemoryOp, MemoryPortsImpl> circt::calyx::MemoryInterface::impl
private

The documentation for this struct was generated from the following files: