-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chg: dev: cleanup readme and xcode setup, use internal gtest for xcode
* fix adhoc test command arg file path, remove redundant test * remove previous test path hacks, set xcode to Debug * update conda build step and environment file, add core gtest deps Signed-off-by: Stephen L Arnold <[email protected]>
- Loading branch information
Showing
7 changed files
with
56 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ The source code is provided for research and evaluation only. For commercial usa | |
|
||
References: | ||
|
||
[1] L. Fan and C. Wu, "FPGA technology mapping with adaptive gate decompostion", ACM/SIGDA FPGA International Symposium on FPGAs, 2023. | ||
[1] L. Fan and C. Wu, "FPGA technology mapping with adaptive gate decompostion", ACM/SIGDA FPGA International Symposium on FPGAs, 2023. | ||
|
||
Minimum desktop tools needed: | ||
|
||
|
@@ -85,8 +85,8 @@ There are several `tox -e` environment commands available in the current tox fil | |
* `ctest` - build/run tests using ctest => static lib and "test" executable | ||
* `grind` - run cmake Debug build with valgrind | ||
* Misc utility commands: | ||
* `clean` - clean the make build files | ||
* `unbuild` - clean the cmake build/ directory/files | ||
* `clean` - clean the automake/autoconf build byproducts | ||
* `cclean` - clean the cmake build/ directory/files | ||
* `lint` - run cpplint style checks | ||
|
||
### Compiling manually: | ||
|
@@ -96,10 +96,10 @@ To compile ABC as a static library, type `make libabc.a`. | |
To compile ABC as a shared library, type `make lib`. | ||
To compile ABC as a shared library with soname, type `ABC_USE_SONAME=1 make lib`. | ||
|
||
When ABC is used as a static library, two additional procedures, `Abc_Start()` | ||
and `Abc_Stop()`, are provided for starting and quitting the ABC framework in | ||
the calling application. A simple demo program (file src/demo.c) shows how to | ||
create a stand-alone program performing DAG-aware AIG rewriting, by calling | ||
When ABC is used as a static library, two additional procedures, `Abc_Start()` | ||
and `Abc_Stop()`, are provided for starting and quitting the ABC framework in | ||
the calling application. A simple demo program (file src/demo.c) shows how to | ||
create a stand-alone program performing DAG-aware AIG rewriting, by calling | ||
APIs of ABC compiled as a static library. | ||
|
||
To build the demo program | ||
|
@@ -138,15 +138,16 @@ or in the batch mode: | |
The current version of ABC can be compiled with C compiler or C++ compiler. | ||
|
||
* To compile as C code (default): make sure that `CC=gcc` and `ABC_NAMESPACE` is not defined. | ||
* To compile as C++ code without namespaces: make sure that `CC=g++` and `ABC_NAMESPACE` is not defined. | ||
* To compile as C++ code without namespaces: make sure that `CC=g++` and `ABC_NAMESPACE` is not | ||
defined (deprecated). | ||
* To compile as C++ code with namespaces: make sure that `CC=g++` and `ABC_NAMESPACE` is set to | ||
the name of the requested namespace. For example, add `-DABC_NAMESPACE=xxx` to OPTFLAGS. | ||
|
||
## Building a shared library | ||
|
||
* Compile the code as position-independent by adding `ABC_USE_PIC=1`. | ||
* Build the `libabc.so` target: | ||
* Build the `libabc.so` target: | ||
|
||
make ABC_USE_PIC=1 lib | ||
|
||
## Adding new source files | ||
|
@@ -159,10 +160,10 @@ For each module with new sources: | |
|
||
## Bug reporting: | ||
|
||
Please try to reproduce all the reported bugs and unexpected features using the latest | ||
Please try to reproduce all the reported bugs and unexpected features using the latest | ||
version of ABC available from https://github.com/berkeley-abc/abc | ||
|
||
If the bug still persists, please provide the following information: | ||
If the bug still persists, please provide the following information: | ||
|
||
1. ABC version (when it was downloaded from GitHub) | ||
1. Linux distribution and version (32-bit or 64-bit) | ||
|
@@ -173,7 +174,7 @@ If the bug still persists, please provide the following information: | |
|
||
## Troubleshooting: | ||
|
||
1. If compilation does not start because of the cyclic dependency check, | ||
1. If compilation does not start because of the cyclic dependency check, | ||
try touching all files as follows: `find ./ -type f -exec touch "{}" \;` | ||
1. If compilation fails because readline is missing, install 'readline' library or | ||
compile with `make ABC_USE_NO_READLINE=1` | ||
|
@@ -188,19 +189,19 @@ compile with `make ABC_USE_NO_PTHREADS=1` | |
|
||
The following comment was added by Krish Sundaresan: | ||
|
||
"I found that the code does compile correctly on Solaris if gcc is used (instead of | ||
g++ that I was using for some reason). Also readline which is not available by default | ||
on most Sol10 systems, needs to be installed. I downloaded the readline-5.2 package | ||
from sunfreeware.com and installed it locally. Also modified CFLAGS to add the local | ||
include files for readline and LIBS to add the local libreadline.a. Perhaps you can | ||
"I found that the code does compile correctly on Solaris if gcc is used (instead of | ||
g++ that I was using for some reason). Also readline which is not available by default | ||
on most Sol10 systems, needs to be installed. I downloaded the readline-5.2 package | ||
from sunfreeware.com and installed it locally. Also modified CFLAGS to add the local | ||
include files for readline and LIBS to add the local libreadline.a. Perhaps you can | ||
add these steps in the readme to help folks compiling this on Solaris." | ||
|
||
The following tutorial is kindly offered by Ana Petkovska from EPFL: | ||
https://www.dropbox.com/s/qrl9svlf0ylxy8p/ABC_GettingStarted.pdf | ||
|
||
## Final remarks: | ||
|
||
Unfortunately, there is no comprehensive regression test. Good luck! | ||
Unfortunately, there is no comprehensive regression test. Good luck! | ||
|
||
This system is maintained by Alan Mishchenko <[email protected]>. Consider also | ||
This system is maintained by Alan Mishchenko <[email protected]>. Consider also | ||
using ZZ framework developed by Niklas Een: https://bitbucket.org/niklaseen/abc-zz (or https://github.com/berkeley-abc/abc-zz) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters