Changeset 42 for vis_dev/vis-2.3/src/debug/debugUtilities.c
- Timestamp:
- Jan 13, 2012, 6:32:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vis_dev/vis-2.3/src/debug/debugUtilities.c
r41 r42 1 1 #include "debug.h" 2 void printNodeArray(array_t * nodeArray) 3 { 4 int i; 5 Ntk_Node_t* node; 6 arrayForEachItem(Ntk_Node_t *, nodeArray, i, node){ 7 printf("%s\n",Ntk_NodeReadName(node)); 8 } 9 10 11 } 12 2 13 void printLatch(st_table* CoiTable) 3 14 { … … 98 109 ******************************************************************************/ 99 110 100 int Dbg_SatCheck(char * forceAssigName, char * cnfFileName 111 int Dbg_SatCheck(char * forceAssigName, char * cnfFileName,int verbose 101 112 ) 102 113 { … … 138 149 sat_Main(cm); 139 150 151 if(verbose){ 140 152 if(cm->status == SAT_UNSAT) { 141 153 if(cm->option->forcedAssignArr) … … 154 166 sat_FreeManager(cm); 155 167 } 168 } 156 169 return cm->status; 157 170 } … … 192 205 193 206 } 207 /**Function******************************************************************** 208 209 Synopsis [Return the default value of a Node] 210 211 Description [Given a table of a node , return its default value if it exists 212 else -1 This function only work for binary gate with only one default 213 value.] 214 SideEffects [] 215 216 SeeAlso [] 217 218 ******************************************************************************/ 219 int Dbg_GetDefaultValue(Tbl_Table_t * table) 220 { 221 Tbl_Entry_t * defEntry; 222 int defIndex; 223 lsList * rangeList; 224 Tbl_TableForEachDefaultEntry(table,defEntry,defIndex) 225 { 226 rangeList = Tbl_EntryReadList(defEntry); 227 int length = lsLength(rangeList); 228 if ( length != 1) 229 return -1; 230 Tbl_Range_t * range; 231 int valDefault; 232 lsGen gen; 233 Tbl_EntryForEachValue(defEntry,valDefault,gen,range){ 234 return Tbl_RangeEnd(range); 235 } 236 } 237 } 238
Note: See TracChangeset
for help on using the changeset viewer.