Changeset 35 for vis_dev/vis-2.3/src/debug/debugUtilities.c
- Timestamp:
- Jan 3, 2012, 11:12:40 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vis_dev/vis-2.3/src/debug/debugUtilities.c
r30 r35 1 #include "Debug.h" 1 #include "debug.h" 2 void printLatch(st_table* CoiTable) 3 { 4 // COI contents 5 printf("*** COI ***\n"); 6 st_generator *stGen; 7 Ntk_Node_t * latch; 8 st_foreach_item(CoiTable, stGen, &latch, NULL) { 9 printf("%s\n",Ntk_NodeReadName(latch)); 10 } 11 } 12 13 14 st_table * generateAllLatches(Ntk_Network_t * ntk) 15 { 16 st_table *CoiTable = st_init_table(st_ptrcmp, st_ptrhash); 17 lsGen gen ; 18 Ntk_Node_t *node; 19 20 Ntk_NetworkForEachNode(ntk,gen, node){ 21 if (Ntk_NodeTestIsLatch(node)){ 22 st_insert(CoiTable, (char *) node, Ntk_NodeReadName(node)); 23 } 24 } 25 return CoiTable; 26 27 } 28 2 29 3 30 void mdd_GetState_Values(
Note: See TracChangeset
for help on using the changeset viewer.