CIRCT 24.0.0git
Loading...
Searching...
No Matches
circt::NPNTable Class Reference

Precomputed NPN canonicalization table for 4-input single-output functions. More...

#include <TruthTable.h>

Collaboration diagram for circt::NPNTable:

Classes

struct  Entry4

Public Member Functions

 NPNTable ()
bool lookup (const BinaryTruthTable &tt, NPNClass &result) const
 Returns false if the given truth table shape is unsupported.

Private Attributes

std::array< Entry4, 1u<< 16 > entries4

Detailed Description

Precomputed NPN canonicalization table for 4-input single-output functions.

Definition at line 168 of file TruthTable.h.

Constructor & Destructor Documentation

◆ NPNTable()

Member Function Documentation

◆ lookup()

bool NPNTable::lookup ( const BinaryTruthTable & tt,
NPNClass & result ) const

Returns false if the given truth table shape is unsupported.

Definition at line 468 of file TruthTable.cpp.

References entries4, circt::BinaryTruthTable::numInputs, circt::BinaryTruthTable::numOutputs, and circt::BinaryTruthTable::table.

Referenced by circt::synth::Cut::getNPNClass().

Member Data Documentation

◆ entries4

std::array<Entry4, 1u << 16> circt::NPNTable::entries4
private

Definition at line 183 of file TruthTable.h.

Referenced by lookup(), and NPNTable().


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