Commit Graph

752 Commits

Author SHA1 Message Date
Alan Mishchenko b7bf6c20b6 Improvements to LUT cascade mapping. 2025-02-11 17:32:19 -08:00
Alan Mishchenko 350dcd3ea4 Enabling shared variables in bound set evaluation. 2024-12-28 00:05:00 -08:00
Alan Mishchenko b59b475d6a Compiler error. 2024-12-26 00:56:18 -08:00
Alan Mishchenko 7d247a08f7 Experiments with bound-set evaluation. 2024-12-26 00:37:37 -08:00
Alan Mishchenko 733fec328c Fixing big-endian problems in mfs2 and &mfs. 2024-12-23 20:04:21 -08:00
Alan Mishchenko 42c2c54969 Fixing a big-endian issue in SOP manipulation and factoring. 2024-12-22 14:15:35 -08:00
Alan Mishchenko 207cfddaa8 Experiments with structural LUT cascade mapping. 2024-12-21 21:24:45 -08:00
alanminko 743f3a7bdd
Merge pull request #250 from wjrforcyber/typo
Refactor(Typo):Typo currently exists
2024-10-21 01:54:12 -07:00
Mike Inouye 8179c73e62 Try support for Windows again.
Signed-off-by: Mike Inouye <mikeinouye@google.com>
2024-09-18 23:46:28 +00:00
Mike Inouye 5bd52161cd Add #include <stdlib.h> for Windows build support.
Signed-off-by: Mike Inouye <mikeinouye@google.com>
2024-09-18 23:29:11 +00:00
Mike Inouye ee5acbbc01 Use <limits.h>'s PATH_MAX macro instead of fixed size.
Signed-off-by: Mike Inouye <mikeinouye@google.com>
2024-09-18 23:05:32 +00:00
Mike Inouye db735b632f Increase buffer size in filename append utility to support more liberty files.
Signed-off-by: Mike Inouye <mikeinouye@google.com>
2024-09-18 22:24:41 +00:00
Alan Mishchenko 03b786af99 Experiments with adder-based circuits. 2024-08-17 16:26:20 -07:00
alanminko 762a123edc
Merge pull request #318 from YosysHQ/povik/fix-atomic_store-call
Fix types in call to atomic_store_explicit
2024-08-08 15:00:05 -07:00
Martin Povišer 2d267786d7 Include `stdbool.h` for portability of atomic calls 2024-08-07 18:13:45 +02:00
Martin Povišer f0b070ef70 Fix types in call to atomic_store_explicit
Deals with the following compilation error:

  src/misc/util/utilPth.c:106:9: error: no matching function for call to 'atomic_store_explicit'
          atomic_store_explicit(&pThData->fWorking, 0, memory_order_release);
          ^~~~~~~~~~~~~~~~~~~~~
  ... /include/c++/v1/atomic:1911:1: note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('bool' vs. 'int')
  atomic_store_explicit(volatile atomic<_Tp>* __o, _Tp __d, memory_order __m) _NOEXCEPT
  ^
2024-08-07 18:00:17 +02:00
Martin Povišer 57c3bd36f2 Patch to support WASI builds
Co-authored-by: whitequark <whitequark@whitequark.org>
2024-08-07 14:49:13 +02:00
Mohamed A. Bamakhrama 15ec302095 Define S_IREAD|IWRITE macros using IRUSR|IWUSR
On platforms such as Android, legacy macros are no longer defined.
Hence, we define them in terms of the new POSIX macros if the new ones are defined. Otherwise, we throw an error.

Signed-off-by: Mohamed A. Bamakhrama <mohamed@alumni.tum.de>
Signed-off-by: Miodrag Milanovic <mmicko@gmail.com>
(cherry picked from commit e792072f8a)
2024-08-07 14:40:26 +02:00
Alan Mishchenko 037971d9c9 Migrating &stochsyn to generic concurrency interface. 2024-08-03 18:12:03 -07:00
Alan Mishchenko 9f864ebe76 Trying to fix the compilation issue. 2024-07-31 22:25:01 -07:00
Alan Mishchenko 3491773f2a Suggested changes to improve thread safety. 2024-07-31 19:05:37 -07:00
coastalwhite 849adb2fcb chore: add `__builtin_popcount` for MSVC 2024-07-26 21:48:53 +02:00
coastalwhite fe3b5bf5fe chore: `__builtin_popcount` to replace BitCount8
This replaces all occurrences of the `BitCount8` static array with the
`__builtin_popcount`. It is a rather simple and small PR.

Fixes #308.
2024-07-24 21:46:03 +02:00
Alan Mishchenko c906dfb748 Upgrading "twoexact" to read relations in an updated format. 2024-05-15 09:33:57 -07:00
alanminko 390a0e8ef3
Merge pull request #279 from allen1236/master
Sat-sweeping-based ECO (&str_eco)
2024-03-02 15:38:08 -08:00
Allen Ho 6f5656c188 shared EI/EO not handled yet 2024-03-01 16:05:41 +08:00
Alan Mishchenko e9a0bf6bf9 Adding reversing of simulation bits in &sim_read. 2024-02-05 20:32:11 -08:00
wjrforcyber 6e1323caa2 Refactor(Typo): Typo update in bblif comment 2023-09-16 22:31:47 +08:00
Alan Mishchenko 6d866dab6b Updating command "time" to report wall time. 2023-09-09 10:06:33 +07:00
Alan Mishchenko c51c081d90 Changing default time counting from thread time to wall time. 2023-07-25 12:54:22 -07:00
Scott Alfter 927b60b7a0 fix errors when compiling within Yosys: "ISO C++17 does not allow 'register' storage class specifier" 2023-07-18 09:17:58 -07:00
alanminko a5a6254db1
Merge pull request #173 from mmicko/namespace_fix
Prevent types from stdint to be defined under abc namespace
2023-05-19 18:15:09 -07:00
Alan Mishchenko eaa9da53cd Various unrelated changes. 2023-04-04 10:28:07 +08:00
Alan Mishchenko 08d25f39f2 Various unrelated changes. 2023-03-26 08:15:45 +07:00
Alan Mishchenko 6694add40f Compiler warning. 2023-03-17 09:54:46 +07:00
Alan Mishchenko 1229d1ff07 New options to print out sim info. 2023-03-16 13:03:07 +07:00
Alan Mishchenko 110bac4394 Improvement in truth table printout. 2023-02-08 00:24:43 -08:00
Alan Mishchenko 66a5fe7aec Experiments with exact synthesis. 2022-12-29 17:15:53 -08:00
Alan Mishchenko 27b8cce3fe Experiments with precomputation. 2022-12-18 20:06:07 -08:00
Alan Mishchenko 3bcc4fc386 Other suggested changes. 2022-11-21 14:40:55 -08:00
Alan Mishchenko 813a0f1ff1 Updating features of &if mapper. 2022-10-09 23:51:40 -07:00
Miodrag Milanovic 65590d0e17 Prevent types from stdint to be defined under abc namespace 2022-06-29 09:12:22 +02:00
Alan Mishchenko adcc398bc3 Dumping equivalences after SAT sweeping. 2022-06-26 19:45:03 -07:00
Alan Mishchenko 94ab17c39e Supporting new resub problem format. 2022-06-02 07:47:33 -07:00
Anton Blanchard c93c4053d3 Fix compile error on targets with unsigned char
abc is failing to compile on ppc64le because char is unsigned by
default:

src/misc/extra/extraUtilMisc.c: In function ‘void abc::Extra_TruthExpand(int, int, unsigned int*, unsigned int, unsigned int*)’:
src/misc/extra/extraUtilMisc.c:1550:5: error: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
2022-02-18 13:29:38 +11:00
Alan Mishchenko 18b4e8beef Bug fix and new procedures. 2021-11-02 20:31:32 -07:00
Alan Mishchenko a80a91e45f Bug fix and new procedures. 2021-11-02 20:28:01 -07:00
Alan Mishchenko d4f073bad7 Various changes. 2021-10-22 00:00:01 -07:00
Alan Mishchenko f0236d5ac1 Experiments with pattern generation. 2021-10-10 14:43:19 -07:00
Alan Mishchenko 1afd156dbd New command &stochsyn for stochastic synthesis. 2021-10-07 20:34:58 -07:00
Alan Mishchenko 31f88974e2 Various changes. 2021-10-06 17:14:57 -07:00
Alan Mishchenko e76b7ba0cc Compiler warnings. 2021-09-30 18:06:42 -07:00
Alan Mishchenko 674bcbee37 Various changes. 2021-09-30 18:02:33 -07:00
Alan Mishchenko a8b5da820d Other compiler changes. 2021-09-26 11:58:42 -07:00
Alan Mishchenko ba64e78608 Changing declaration of Vec_Ptr_t sorting function to satisfy some compilers. 2021-09-26 11:30:54 -07:00
Alan Mishchenko 2ce1ce8bed Various changes. 2021-09-26 11:12:17 -07:00
Alan Mishchenko e2f1548217 Various changes. 2021-09-21 10:00:46 -07:00
Alan Mishchenko 6ca31c475f Improving MiniAIG and name manager. 2021-09-16 21:51:10 -07:00
Alan Mishchenko ecda331a2a Various changes. 2021-09-14 22:01:41 -07:00
Alan Mishchenko e7a029d73f Various changes. 2021-09-04 19:21:59 -07:00
Alan Mishchenko a718318740 Various changes. 2021-09-02 22:54:19 -07:00
Alan Mishchenko 5f8d4e72d1 Experiments with LUT mapping for small functions. 2021-08-02 16:46:56 -07:00
Alan Mishchenko 03bb1e49bf Experiments with LUT mapping for small functions. 2021-08-01 12:14:38 -07:00
Alan Mishchenko 4cf906d2fc Experiments with LUT mapping for small functions. 2021-08-01 12:13:27 -07:00
Alan Mishchenko a162b1f47a Experimental simulation commands. 2021-07-25 14:11:34 -07:00
Alan Mishchenko 3e67d167f5 Experiments with LUT mapping for small functions. 2021-07-13 19:05:02 -07:00
Alan Mishchenko b4f099c511 Experiments with LUT mapping for small functions. 2021-06-19 19:26:41 -07:00
Alan Mishchenko aa9fe1f240 Updating LUT synthesis code. 2021-05-11 15:04:15 -07:00
Alan Mishchenko 76bed2055c Updating LUT synthesis code. 2021-05-08 20:10:44 -07:00
Alan Mishchenko d0efef2fe9 Experiments with simulation. 2020-12-30 11:24:35 -08:00
Alan Mishchenko f06217e25a Compiler warnings. 2020-12-21 12:45:50 -08:00
Alan Mishchenko 083c1218e5 Improving MFFC computation code. 2020-09-17 13:04:09 -07:00
Alan Mishchenko 07bf95f480 Experiments with iterative synthesis. 2020-09-13 19:17:16 -07:00
Alan Mishchenko b74b7dfc2d Extending &sim_read to use non-64-divisible pattern counts. 2020-08-12 15:33:09 -07:00
Alan Mishchenko 0ae0744e73 Experimental resubstitution. 2020-05-15 22:11:10 -07:00
Alan Mishchenko a7871d24cd Experimental resubstitution. 2020-05-08 13:50:29 -07:00
Alan Mishchenko d51f798956 Experimental resubstitution. 2020-05-03 10:32:30 -07:00
Alan Mishchenko 1b83b4b273 Various changes. 2020-03-29 20:32:06 -07:00
Alan Mishchenko 8654192586 Various changes. 2020-03-28 18:45:48 -07:00
Alan Mishchenko a277d450bf Experiments with simulation-based engines. 2020-03-25 12:17:12 -07:00
Alan Mishchenko c7bc6b6329 Experiments with simulation-based engines. 2020-03-22 19:39:00 -07:00
Alan Mishchenko a4518e6f83 Various changes. 2020-03-21 19:03:41 -07:00
Alan Mishchenko e72438b2d3 Downgrading random number generator to be not inlined. 2020-03-18 19:03:20 -07:00
Alan Mishchenko 7efe9c1d65 Updating and extending simulation data structures. 2020-03-05 14:33:02 -08:00
Alan Mishchenko 8c8f39ad76 Adding several new utilities. 2020-01-27 10:32:07 -08:00
Alan Mishchenko 1485e63ae3 Allowing nodes and boxes to have more than 6 inputs in mfs2 and &mfs. 2020-01-07 01:36:06 +02:00
Alan Mishchenko e9896a23e3 Adding macro to disable bridge output and APIs by popular demand. 2019-11-09 10:30:02 +02:00
Alan Mishchenko b292595062 Adding switch to &if to consider special type of 6-input cuts. 2019-09-26 14:05:16 -07:00
Alan Mishchenko 390adc39ca Making &mfs work with boxes larger than 6 inputs. Adding option &if -w to print delay profile. 2019-09-19 16:49:36 -07:00
Alan Mishchenko 38e2f41655 Updating command 'symfun' to generate symmetric functions and their NPN classes. 2019-05-30 19:27:31 -07:00
Alan Mishchenko 78af793b92 Changes to the interface of &cfs. 2019-05-21 20:41:22 -07:00
Alan Mishchenko caa120c855 Changes to the interface of &cfs. 2019-05-15 21:44:02 +09:00
Alan Mishchenko 7ccb25bfe9 Modifying 'write_truth' to dump truth table in hex. 2019-05-07 07:27:31 +08:00
Alan Mishchenko d1b6413d1c Fix index of delay tables created by %blast. 2019-04-16 21:37:45 -07:00
Alan Mishchenko 95a5e47b6b Extending generic simulation APIs. 2019-04-09 11:41:44 -07:00
Alan Mishchenko 45cdd5acaa Extending simulation interface. 2019-03-28 07:50:14 -07:00
Alan Mishchenko 558eee987d Adding new command line args. 2019-03-13 18:49:25 +01:00
Alan Mishchenko 3cce04c62d Fixing some more warnings by adding cast from 'int' to 'size_t'. 2019-03-05 16:26:42 -08:00
Alan Mishchenko f657d9a7e6 Fixing several other type conversion warnings. 2019-03-05 16:08:49 -08:00
Alan Mishchenko 01569b8f5f Fixing some warnings by adding cast from 'int' to 'size_t' in memset, memcpy, etc. 2019-03-05 15:57:50 -08:00