abc-master
|
#include "mvc.h"
Go to the source code of this file.
Variables | |
static ABC_NAMESPACE_IMPL_START int | bit_count [256] |
DECLARATIONS ///. More... | |
int Mvc_CoverCheckSuppContainment | ( | Mvc_Cover_t * | pCover1, |
Mvc_Cover_t * | pCover2 | ||
) |
Function*************************************************************
Synopsis [Returns 1 if the support of cover2 is contained in the support of cover1.]
Description []
SideEffects []
SeeAlso []
Definition at line 247 of file mvcUtils.c.
Mvc_Cover_t* Mvc_CoverCofactor | ( | Mvc_Cover_t * | p, |
int | iValue, | ||
int | iValueOther | ||
) |
Function*************************************************************
Synopsis [Returns the cofactor w.r.t. to a binary var.]
Description []
SideEffects []
SeeAlso []
Definition at line 518 of file mvcUtils.c.
void Mvc_CoverCommonCube | ( | Mvc_Cover_t * | pCover, |
Mvc_Cube_t * | pComCube | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 155 of file mvcUtils.c.
Mvc_Cover_t* Mvc_CoverCommonCubeCover | ( | Mvc_Cover_t * | pCover | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 220 of file mvcUtils.c.
|
static |
Function*************************************************************
Synopsis [Copies a column from the old cover to the new cover.]
Description [Copies the column (iColOld) of the old cover (pCoverOld) into the column (iColNew) of the new cover (pCoverNew). Assumes that the number of cubes is the same in both covers. Makes no assuptions about the current contents of the column in the new cover.]
SideEffects []
SeeAlso []
Definition at line 440 of file mvcUtils.c.
int Mvc_CoverCountCubePairDiffs | ( | Mvc_Cover_t * | pCover, |
unsigned char | pDiffs[] | ||
) |
Function*************************************************************
Synopsis [Counts the differences in each cube pair in the cover.]
Description [Takes the cover (pCover) and the array where the diff counters go (pDiffs). The array pDiffs should have as many entries as there are different pairs of cubes in the cover: n(n-1)/2. Fills out the array pDiffs with the following info: For each cube pair, included in the array is the number of literals in both cubes after they are made cube ABC_FREE.]
SideEffects []
SeeAlso []
Definition at line 342 of file mvcUtils.c.
Mvc_Cover_t* Mvc_CoverFlipVar | ( | Mvc_Cover_t * | p, |
int | iValue0, | ||
int | iValue1 | ||
) |
Function*************************************************************
Synopsis [Returns the cover, in which the binary var is complemented.]
Description []
SideEffects []
SeeAlso []
Definition at line 546 of file mvcUtils.c.
int Mvc_CoverGetCubeSize | ( | Mvc_Cube_t * | pCube | ) |
Function*************************************************************
Synopsis [Counts the cube sizes.]
Description []
SideEffects []
SeeAlso []
Definition at line 308 of file mvcUtils.c.
void Mvc_CoverInverse | ( | Mvc_Cover_t * | pCover | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 477 of file mvcUtils.c.
int Mvc_CoverIsCubeFree | ( | Mvc_Cover_t * | pCover | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 176 of file mvcUtils.c.
void Mvc_CoverMakeCubeFree | ( | Mvc_Cover_t * | pCover | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 198 of file mvcUtils.c.
Mvc_Cover_t* Mvc_CoverRemap | ( | Mvc_Cover_t * | p, |
int * | pVarsRem, | ||
int | nVarsRem | ||
) |
Function*************************************************************
Synopsis [Creates a new cover containing some literals of the old cover.]
Description [Creates the new cover containing the given number (nVarsRem) literals of the old cover. All the bits of the new cover are initialized to "1". The selected bits from the old cover are copied on top. The numbers of the selected bits to copy are given in the array pVarsRem. The i-set entry in this array is the index of the bit in the old cover which goes to the i-th place in the new cover. If the i-th entry in pVarsRem is -1, it means that the i-th bit does not change (remains composed of all 1's). This is a useful feature to speed up remapping covers, which are known to depend only on a subset of input variables.]
SideEffects []
SeeAlso []
Definition at line 400 of file mvcUtils.c.
Mvc_Cover_t* Mvc_CoverRemoveDontCareLits | ( | Mvc_Cover_t * | pCover | ) |
Function*************************************************************
Synopsis [This function dups the cover and removes DC literals from cubes.]
Description []
SideEffects []
SeeAlso []
Definition at line 496 of file mvcUtils.c.
int Mvc_CoverSetCubeSizes | ( | Mvc_Cover_t * | pCover | ) |
Function*************************************************************
Synopsis [Counts the cube sizes.]
Description []
SideEffects []
SeeAlso []
Definition at line 272 of file mvcUtils.c.
void Mvc_CoverSupport | ( | Mvc_Cover_t * | pCover, |
Mvc_Cube_t * | pSupp | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 58 of file mvcUtils.c.
void Mvc_CoverSupportAnd | ( | Mvc_Cover_t * | pCover, |
Mvc_Cube_t * | pSupp | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 79 of file mvcUtils.c.
int Mvc_CoverSupportSizeBinary | ( | Mvc_Cover_t * | pCover | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 100 of file mvcUtils.c.
int Mvc_CoverSupportVarBelongs | ( | Mvc_Cover_t * | pCover, |
int | iVar | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 130 of file mvcUtils.c.
Mvc_Cover_t* Mvc_CoverTranspose | ( | Mvc_Cover_t * | pCover | ) |
Function*************************************************************
Synopsis [Transposes the cube cover.]
Description [Returns the cube cover that looks like a transposed matrix, compared to the matrix derived from the original cover.]
SideEffects []
SeeAlso []
Definition at line 804 of file mvcUtils.c.
Mvc_Cover_t* Mvc_CoverUnivQuantify | ( | Mvc_Cover_t * | p, |
int | iValueA0, | ||
int | iValueA1, | ||
int | iValueB0, | ||
int | iValueB1 | ||
) |
Function*************************************************************
Synopsis [Returns the cover derived by universal quantification.]
Description [Returns the cover computed by universal quantification as follows: CoverNew = Univ(B) [Cover & (A==B)]. Removes the second binary var from the support (given by values iValueB0 and iValueB1). Leaves the first binary variable (given by values iValueA0 and iValueA1) in the support.]
SideEffects []
SeeAlso []
Definition at line 606 of file mvcUtils.c.
int Mvc_UtilsCheckUnusedZeros | ( | Mvc_Cover_t * | pCover | ) |
Function*************************************************************
Synopsis [Checks that the cubes of the cover have 0's in unused bits.]
Description []
SideEffects []
SeeAlso []
Definition at line 842 of file mvcUtils.c.
|
static |
DECLARATIONS ///.
CFile****************************************************************
FileName [mvcUtils.c]
PackageName [MVSIS 2.0: Multi-valued logic synthesis system.]
Synopsis [Various cover handling utilities.]
Author [MVSIS Group]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - February 1, 2003.]
Revision [
]
Definition at line 28 of file mvcUtils.c.