Commit f11f645f by Alan Mishchenko

Bug fix in loading the timing manager.

parent 8f504907
...@@ -110,6 +110,7 @@ Vec_Str_t * Tim_ManSave( Tim_Man_t * p ) ...@@ -110,6 +110,7 @@ Vec_Str_t * Tim_ManSave( Tim_Man_t * p )
Tim_Man_t * Tim_ManLoad( Vec_Str_t * p ) Tim_Man_t * Tim_ManLoad( Vec_Str_t * p )
{ {
Tim_Man_t * pMan; Tim_Man_t * pMan;
Tim_Obj_t * pObj;
int VerNum, nCis, nCos, nPis, nPos; int VerNum, nCis, nCos, nPis, nPos;
int nBoxes, nBoxIns, nBoxOuts, CopyBox; int nBoxes, nBoxIns, nBoxOuts, CopyBox;
int TableId, nTables, TableSize, TableX, TableY; int TableId, nTables, TableSize, TableX, TableY;
...@@ -174,6 +175,13 @@ Tim_Man_t * Tim_ManLoad( Vec_Str_t * p ) ...@@ -174,6 +175,13 @@ Tim_Man_t * Tim_ManLoad( Vec_Str_t * p )
Vec_PtrPush( pMan->vDelayTables, pDelayTable ); Vec_PtrPush( pMan->vDelayTables, pDelayTable );
} }
assert( Tim_ManDelayTableNum(pMan) == nTables ); assert( Tim_ManDelayTableNum(pMan) == nTables );
// read PI arrival times
Tim_ManForEachPi( pMan, pObj, i )
Tim_ManInitPiArrival( pMan, i, Vec_StrGetF(p, &iStr) );
// read PO required times
Tim_ManForEachPo( pMan, pObj, i )
Tim_ManInitPoRequired( pMan, i, Vec_StrGetF(p, &iStr) );
assert( Vec_StrSize(p) == iStr );
// Tim_ManPrint( pMan ); // Tim_ManPrint( pMan );
return pMan; return pMan;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment