CIRCT 22.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
circt::SOPForm Struct Reference

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

#include <TruthTable.h>

Collaboration diagram for circt::SOPForm:
Collaboration graph
[legend]

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< Cubecubes
 
unsigned numVars
 

Detailed Description

Represents a sum-of-products expression.

Definition at line 250 of file TruthTable.h.

Constructor & Destructor Documentation

◆ SOPForm()

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

Definition at line 254 of file TruthTable.h.

Member Function Documentation

◆ computeTruthTable()

APInt SOPForm::computeTruthTable ( ) const

Compute the truth table represented by this SOP form.

Definition at line 384 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 398 of file TruthTable.cpp.

References cubes, and numVars.

Member Data Documentation

◆ cubes

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

Definition at line 251 of file TruthTable.h.

Referenced by computeTruthTable(), and dump().

◆ numVars

unsigned circt::SOPForm::numVars

Definition at line 252 of file TruthTable.h.

Referenced by computeTruthTable(), and dump().


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