ABC: System for Sequential Logic Synthesis and Formal Verification
Go to file
Alan Mishchenko b288bac6b3 Version abc90807
committer: Baruch Sterin <baruchs@gmail.com>
2015-06-22 23:05:02 -07:00
src Version abc90807 2015-06-22 23:05:02 -07:00
.gitattributes Added .gitignore 2009-04-26 02:08:48 -07:00
.gitignore Added .gitignore 2009-04-26 02:08:48 -07:00
Makefile Version abc90804 2015-06-22 23:04:59 -07:00
abc.rc Version abc90310 2009-03-10 08:01:00 -07:00
abcexe.dsp Version abc90310 2009-03-10 08:01:00 -07:00
abclib.dsp Version abc90804 2015-06-22 23:04:59 -07:00
abcspace.dsw Version abc90215 2009-02-15 08:01:00 -08:00
copyright.txt Version abc80410 2008-04-10 08:01:00 -07:00
depends.sh Version abc71001 2007-10-01 08:01:00 -07:00
readme Version abc80729 2008-07-29 08:01:00 -07:00
readmeaig Version abc80610 2008-06-10 08:01:00 -07:00
regtest.script Version abc80130_2 2008-01-30 20:01:00 -08:00
regtest_output.txt Version abc80301 2008-03-01 08:01:00 -08:00
todo.txt Version abc90118 2009-01-18 08:01:00 -08:00

readme

Often the code comes directly from a Windows computer.
The following steps may be needed to compile it on UNIX:

Modify Makefile to have -DLIN (for 32-bits) or -DLIN64 (for 64-bits)

>> dos2unix Makefile Makefile
>> dos2unix depends.sh depends.sh
>> chmod 755 depends.sh
>> make  // on Solaris, try "gmake"

If compiling as a static library, it is necessary to uncomment
#define _LIB in "src/abc/main/main.c"

To compile with Microsoft Visual Studio higher than 6.0,
remove ABC_CHECK_LEAKS from the preprocessor definitions
for the debug version (Project->Settings->C/C++->Preprocessor Definitions)

If compilation does not start because of the cyclic dependency check, 
try "touching" all files:    find ./ -type f -exec touch "{}" \;

Several things to try if it does not compile on your platform:
- Try running all code (not only Makefile and depends.sh) through dos2unix
- Try the following actions:
  (a) Remove flags from the libs line (LIBS :=) in Makefile
  (b) Remove "src\base\main\libSupport.c" from "src\base\main\module.make"
  (c) Comment calls to Libs_Init() and Libs_End() in "src\base\main\mainInit.c"
- Try linking with gcc (rather than g++)
  For this replace "LD   := g++" with "LD   := gcc -lm" in Makefile
- If your Linux distributin does not have "readline", you may have problems 
  compiling ABC with gcc. Please try installing this library from
  http://tiswww.case.edu/php/chet/readline/rltop.html

To compile the latest version of ABC, you may need to define "LIN" or "LIN64" 
(depending on whether you are using 32- or 64-bit Linux). 
For example, instead of
    OPTFLAGS  := -g -O
use
    OPTFLAGS  := -g -O -DLIN64
in Makefile.

Finally, run regression test:
abc>>> so regtest.script