CIRCT 24.0.0git
Loading...
Searching...
No Matches
circt::SOPForm Struct Reference

Represents a sum-of-products expression. More...

#include <TruthTable.h>

Collaboration diagram for circt::SOPForm:

Public Member Functions

 SOPForm (unsigned numVars)
llvm::APInt computeTruthTable () const
 Compute the truth table represented by this SOP form.
void dump (llvm::raw_ostream &os=llvm::errs()) const
 Debug dump method for SOP forms.

Public Attributes

llvm::SmallVector< Cube > cubes
unsigned numVars

Detailed Description

Represents a sum-of-products expression.

Definition at line 285 of file TruthTable.h.

Constructor & Destructor Documentation

◆ SOPForm()

circt::SOPForm::SOPForm ( unsigned numVars)
inline

Definition at line 289 of file TruthTable.h.

References numVars.

Member Function Documentation

◆ computeTruthTable()

APInt SOPForm::computeTruthTable ( ) const

Compute the truth table represented by this SOP form.

Definition at line 676 of file TruthTable.cpp.

References circt::createVarMask(), cubes, and numVars.

◆ dump()

void SOPForm::dump ( llvm::raw_ostream & os = llvm::errs()) const

Debug dump method for SOP forms.

Definition at line 690 of file TruthTable.cpp.

References cubes, and numVars.

Member Data Documentation

◆ cubes

llvm::SmallVector<Cube> circt::SOPForm::cubes

Definition at line 286 of file TruthTable.h.

Referenced by computeTruthTable(), and dump().

◆ numVars

unsigned circt::SOPForm::numVars

Definition at line 287 of file TruthTable.h.

Referenced by computeTruthTable(), dump(), and SOPForm().


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