abc-master
|
#include "extraBdd.h"
Go to the source code of this file.
Macros | |
#define | MAXVARS 20 |
#define | SINGLE_VERTICAL (char)'|' |
#define | SINGLE_HORIZONTAL (char)'-' |
#define | SINGLE_TOP_LEFT (char)'+' |
#define | SINGLE_TOP_RIGHT (char)'+' |
#define | SINGLE_BOT_LEFT (char)'+' |
#define | SINGLE_BOT_RIGHT (char)'+' |
#define | DOUBLE_VERTICAL (char)'|' |
#define | DOUBLE_HORIZONTAL (char)'-' |
#define | DOUBLE_TOP_LEFT (char)'+' |
#define | DOUBLE_TOP_RIGHT (char)'+' |
#define | DOUBLE_BOT_LEFT (char)'+' |
#define | DOUBLE_BOT_RIGHT (char)'+' |
#define | SINGLES_CROSS (char)'+' |
#define | DOUBLES_CROSS (char)'+' |
#define | S_HOR_CROSS_D_VER (char)'+' |
#define | S_VER_CROSS_D_HOR (char)'+' |
#define | S_JOINS_S_VER_LEFT (char)'+' |
#define | S_JOINS_S_VER_RIGHT (char)'+' |
#define | S_JOINS_S_HOR_TOP (char)'+' |
#define | S_JOINS_S_HOR_BOT (char)'+' |
#define | D_JOINS_D_VER_LEFT (char)'+' |
#define | D_JOINS_D_VER_RIGHT (char)'+' |
#define | D_JOINS_D_HOR_TOP (char)'+' |
#define | D_JOINS_D_HOR_BOT (char)'+' |
#define | S_JOINS_D_VER_LEFT (char)'+' |
#define | S_JOINS_D_VER_RIGHT (char)'+' |
#define | S_JOINS_D_HOR_TOP (char)'+' |
#define | S_JOINS_D_HOR_BOT (char)'+' |
#define | UNDERSCORE (char)95 |
#define | SYMBOL_ZERO (char)' ' |
#define | SYMBOL_ONE (char)'1' |
#define | SYMBOL_DC (char)'-' |
#define | SYMBOL_OVERLAP (char)'?' |
#define | CELL_FREE (char)32 |
#define | CELL_FULL (char)219 |
#define | HALF_UPPER (char)223 |
#define | HALF_LOWER (char)220 |
#define | HALF_LEFT (char)221 |
#define | HALF_RIGHT (char)222 |
Functions | |
static int | GrayCode (int BinCode) |
static int | BinCode (int GrayCode) |
void | Extra_PrintKMap (FILE *Output, DdManager *dd, DdNode *OnSet, DdNode *OffSet, int nVars, DdNode **XVars, int fSuppType, char **pVarNames) |
void | Extra_PrintKMapRelation (FILE *Output, DdManager *dd, DdNode *OnSet, DdNode *OffSet, int nXVars, int nYVars, DdNode **XVars, DdNode **YVars) |
Variables | |
static DdNode * | s_XVars [MAXVARS] |
static int | fHorizontalVarNamesPrintedAbove = 1 |
#define CELL_FREE (char)32 |
Definition at line 136 of file extraBddKmap.c.
#define CELL_FULL (char)219 |
Definition at line 137 of file extraBddKmap.c.
#define D_JOINS_D_HOR_BOT (char)'+' |
Definition at line 113 of file extraBddKmap.c.
#define D_JOINS_D_HOR_TOP (char)'+' |
Definition at line 112 of file extraBddKmap.c.
#define D_JOINS_D_VER_LEFT (char)'+' |
Definition at line 110 of file extraBddKmap.c.
#define D_JOINS_D_VER_RIGHT (char)'+' |
Definition at line 111 of file extraBddKmap.c.
#define DOUBLE_BOT_LEFT (char)'+' |
Definition at line 94 of file extraBddKmap.c.
#define DOUBLE_BOT_RIGHT (char)'+' |
Definition at line 95 of file extraBddKmap.c.
#define DOUBLE_HORIZONTAL (char)'-' |
Definition at line 91 of file extraBddKmap.c.
#define DOUBLE_TOP_LEFT (char)'+' |
Definition at line 92 of file extraBddKmap.c.
#define DOUBLE_TOP_RIGHT (char)'+' |
Definition at line 93 of file extraBddKmap.c.
#define DOUBLE_VERTICAL (char)'|' |
Definition at line 90 of file extraBddKmap.c.
#define DOUBLES_CROSS (char)'+' |
Definition at line 99 of file extraBddKmap.c.
#define HALF_LEFT (char)221 |
Definition at line 140 of file extraBddKmap.c.
#define HALF_LOWER (char)220 |
Definition at line 139 of file extraBddKmap.c.
#define HALF_RIGHT (char)222 |
Definition at line 141 of file extraBddKmap.c.
#define HALF_UPPER (char)223 |
Definition at line 138 of file extraBddKmap.c.
#define MAXVARS 20 |
CFile****************************************************************
FileName [extraBddKmap.c]
PackageName [extra]
Synopsis [Visualizing the K-map.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 2.0. Started - September 1, 2003.]
Revision [
] K-map visualization using pseudo graphics /// Version 1.0. Started - August 20, 2000 /// Version 2.0. Added to EXTRA - July 17, 2001 ///
Definition at line 37 of file extraBddKmap.c.
#define S_HOR_CROSS_D_VER (char)'+' |
Definition at line 100 of file extraBddKmap.c.
#define S_JOINS_D_HOR_BOT (char)'+' |
Definition at line 119 of file extraBddKmap.c.
#define S_JOINS_D_HOR_TOP (char)'+' |
Definition at line 118 of file extraBddKmap.c.
#define S_JOINS_D_VER_LEFT (char)'+' |
Definition at line 116 of file extraBddKmap.c.
#define S_JOINS_D_VER_RIGHT (char)'+' |
Definition at line 117 of file extraBddKmap.c.
#define S_JOINS_S_HOR_BOT (char)'+' |
Definition at line 107 of file extraBddKmap.c.
#define S_JOINS_S_HOR_TOP (char)'+' |
Definition at line 106 of file extraBddKmap.c.
#define S_JOINS_S_VER_LEFT (char)'+' |
Definition at line 104 of file extraBddKmap.c.
#define S_JOINS_S_VER_RIGHT (char)'+' |
Definition at line 105 of file extraBddKmap.c.
#define S_VER_CROSS_D_HOR (char)'+' |
Definition at line 101 of file extraBddKmap.c.
#define SINGLE_BOT_LEFT (char)'+' |
Definition at line 86 of file extraBddKmap.c.
#define SINGLE_BOT_RIGHT (char)'+' |
Definition at line 87 of file extraBddKmap.c.
#define SINGLE_HORIZONTAL (char)'-' |
Definition at line 83 of file extraBddKmap.c.
#define SINGLE_TOP_LEFT (char)'+' |
Definition at line 84 of file extraBddKmap.c.
#define SINGLE_TOP_RIGHT (char)'+' |
Definition at line 85 of file extraBddKmap.c.
#define SINGLE_VERTICAL (char)'|' |
Definition at line 82 of file extraBddKmap.c.
#define SINGLES_CROSS (char)'+' |
Definition at line 98 of file extraBddKmap.c.
#define SYMBOL_DC (char)'-' |
Definition at line 132 of file extraBddKmap.c.
#define SYMBOL_ONE (char)'1' |
Definition at line 131 of file extraBddKmap.c.
#define SYMBOL_OVERLAP (char)'?' |
Definition at line 133 of file extraBddKmap.c.
#define SYMBOL_ZERO (char)' ' |
Definition at line 129 of file extraBddKmap.c.
#define UNDERSCORE (char)95 |
Definition at line 123 of file extraBddKmap.c.
|
static |
Function********************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 867 of file extraBddKmap.c.
void Extra_PrintKMap | ( | FILE * | Output, |
DdManager * | dd, | ||
DdNode * | OnSet, | ||
DdNode * | OffSet, | ||
int | nVars, | ||
DdNode ** | XVars, | ||
int | fSuppType, | ||
char ** | pVarNames | ||
) |
AutomaticEnd Function********************************************************************
Synopsis [Prints the K-map of the function.]
Description [If the pointer to the array of variables XVars is NULL, fSuppType determines how the support will be determined. fSuppType == 0 – takes the first nVars of the manager fSuppType == 1 – takes the topmost nVars of the manager fSuppType == 2 – determines support from the on-set and the offset ]
SideEffects []
SeeAlso []
Definition at line 201 of file extraBddKmap.c.
void Extra_PrintKMapRelation | ( | FILE * | Output, |
DdManager * | dd, | ||
DdNode * | OnSet, | ||
DdNode * | OffSet, | ||
int | nXVars, | ||
int | nYVars, | ||
DdNode ** | XVars, | ||
DdNode ** | YVars | ||
) |
Function********************************************************************
Synopsis [Prints the K-map of the relation.]
Description [Assumes that the relation depends the first nXVars of XVars and the first nYVars of YVars. Draws X and Y vars and vertical and horizontal vars.]
SideEffects []
SeeAlso []
Definition at line 581 of file extraBddKmap.c.
|
static |
AutomaticStart
Function********************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 851 of file extraBddKmap.c.
|
static |
Definition at line 160 of file extraBddKmap.c.
Definition at line 157 of file extraBddKmap.c.