src/misc/mvc/mvcOpBool.c File Reference

#include "mvc.h"
Include dependency graph for mvcOpBool.c:

Go to the source code of this file.

Functions

Mvc_Cover_tMvc_CoverBooleanOr (Mvc_Cover_t *pCover1, Mvc_Cover_t *pCover2)

Function Documentation

Mvc_Cover_t* Mvc_CoverBooleanOr ( Mvc_Cover_t pCover1,
Mvc_Cover_t pCover2 
)

CFile****************************************************************

FileName [mvcProc.c]

PackageName [MVSIS 2.0: Multi-valued logic synthesis system.]

Synopsis [Various boolean procedures working with covers.]

Author [MVSIS Group]

Affiliation [UC Berkeley]

Date [Ver. 1.0. Started - February 1, 2003.]

Revision [

Id
mvcOpBool.c,v 1.4 2003/04/16 01:55:37 alanmi Exp

] DECLARATIONS /// FUNCTION DEFINITIONS ///Function*************************************************************

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 40 of file mvcOpBool.c.

00041 {
00042     Mvc_Cover_t * pCover;
00043     Mvc_Cube_t * pCube, * pCubeCopy;
00044     // make sure the covers are compatible
00045     assert( pCover1->nBits == pCover2->nBits );
00046     // clone the cover
00047     pCover = Mvc_CoverClone( pCover1 );
00048     // create the cubes by making pair-wise products
00049     // of cubes in pCover1 and pCover2
00050     Mvc_CoverForEachCube( pCover1, pCube )
00051     {
00052         pCubeCopy = Mvc_CubeDup( pCover, pCube );
00053         Mvc_CoverAddCubeTail( pCover, pCubeCopy );
00054     }
00055     Mvc_CoverForEachCube( pCover2, pCube )
00056     {
00057         pCubeCopy = Mvc_CubeDup( pCover, pCube );
00058         Mvc_CoverAddCubeTail( pCover, pCubeCopy );
00059     }
00060     return pCover;
00061 }


Generated on Tue Jan 5 12:19:17 2010 for abc70930 by  doxygen 1.6.1