diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2013-09-17 16:43:42 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2013-09-17 16:43:42 -0700 |
commit | a2d97cf2b66c040fa6c1b31763e7bebe717c7098 (patch) | |
tree | 7f8402687b1b50d4fcc58965259cff89fe37356d /src/map/scl/sclLibScl.c | |
parent | 73a997a8bd303b4398e64de2d3a0bfb3f85a3acf (diff) | |
download | abc-a2d97cf2b66c040fa6c1b31763e7bebe717c7098.tar.gz abc-a2d97cf2b66c040fa6c1b31763e7bebe717c7098.tar.bz2 abc-a2d97cf2b66c040fa6c1b31763e7bebe717c7098.zip |
Debugging and finetuning the flow.
Diffstat (limited to 'src/map/scl/sclLibScl.c')
-rw-r--r-- | src/map/scl/sclLibScl.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/map/scl/sclLibScl.c b/src/map/scl/sclLibScl.c index 8f726d1e..dbf50627 100644 --- a/src/map/scl/sclLibScl.c +++ b/src/map/scl/sclLibScl.c @@ -404,20 +404,15 @@ static void Abc_SclWriteLibrary( Vec_Str_t * vOut, SC_Lib * p ) Vec_StrPutS( vOut, pPin->pName ); Vec_StrPutF( vOut, pPin->max_out_cap ); Vec_StrPutF( vOut, pPin->max_out_slew ); + Vec_StrPutI( vOut, pCell->n_inputs ); // write function - if ( pPin->func_text == NULL ) - { - // formula is not given - write empty string - Vec_StrPutS( vOut, "" ); - // write truth table - assert( Vec_WrdSize(pPin->vFunc) == Abc_Truth6WordNum(pCell->n_inputs) ); - Vec_StrPutI( vOut, pCell->n_inputs ); - Vec_WrdForEachEntry( pPin->vFunc, uWord, k ) // -- 'size = 1u << (n_vars - 6)' - Vec_StrPutW( vOut, uWord ); // -- 64-bit number, written uncompressed (low-byte first) - } - else // formula is given - Vec_StrPutS( vOut, pPin->func_text ); + Vec_StrPutS( vOut, pPin->func_text ? pPin->func_text : "" ); + + // write truth table + assert( Vec_WrdSize(pPin->vFunc) == Abc_Truth6WordNum(pCell->n_inputs) ); + Vec_WrdForEachEntry( pPin->vFunc, uWord, k ) // -- 'size = 1u << (n_vars - 6)' + Vec_StrPutW( vOut, uWord ); // -- 64-bit number, written uncompressed (low-byte first) // Write 'rtiming': (pin-to-pin timing tables for this particular output) assert( Vec_PtrSize(pPin->vRTimings) == pCell->n_inputs ); |