Miodrag Milanovic
25e3bb089c
CodeQL
2024-08-12 11:31:16 +02:00
Martin Povišer
2188bc7122
Merge branch 'povik/fix-atomic_store-call' into yosys-experimental
2024-08-08 17:31:10 +02:00
Martin Povišer
57f93e6627
Merge branch 'povik/fix-transfer-timing' into yosys-experimental
2024-08-08 17:28:12 +02: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
afbeccb79e
Handle edge case in Gia_ManTransferTiming
2024-08-07 17:35:20 +02:00
Martin Povišer
bf64a92253
Merge remote-tracking branch 'upstream/master' into yosys-experimental
2024-08-07 12:57:53 +02:00
alanminko
b23f998b81
Merge pull request #313 from rocallahan/no-exceptions
...
Instead of throwing C++ exceptions, just print an error message and a…
2024-08-06 11:58:26 -07:00
Alan Mishchenko
43adbc77e8
New command for LUT cascade decomposition.
2024-08-06 11:50:54 -07:00
Robert O'Callahan
e0a9c29e5a
Instead of throwing C++ exceptions, just print an error message and abort
...
Many C++ projects forbid the use of exceptions. These are not recoverable
errors anyway, so just abort.
2024-08-06 17:51:15 +00:00
Alan Mishchenko
1963422c10
Experiments with detecting multipliers.
2024-08-05 20:18:30 -07:00
Alan Mishchenko
037971d9c9
Migrating &stochsyn to generic concurrency interface.
2024-08-03 18:12:03 -07:00
Alan Mishchenko
43426f0a94
Updates to history printing.
2024-08-03 15:35:19 -07:00
Alan Mishchenko
b25d9c482a
Changing interface of &genrel.
2024-08-02 18:30:09 -07:00
Alan Mishchenko
7d88bf21e9
New command to detect presence of a function in the AIG.
2024-08-02 14:34:57 -07:00
alanminko
3286179c48
Merge pull request #307 from rocallahan/exor-defines
...
Using `#define` for short/common names like `BPI` and `DIFFERENT` can…
2024-08-01 19:24:51 -07:00
Alan Mishchenko
1ac5f6467b
Compiler warning.
2024-08-01 19:23:38 -07:00
Alan Mishchenko
8f0cbbdf38
Compiler warning.
2024-08-01 18:36:32 -07:00
Alan Mishchenko
1954e2fcaa
Updating DSD profiling procedures.
2024-08-01 18:36:20 -07:00
Robert O'Callahan
ab858c5435
Replace `#define`s with enum constants and inline functions in `exor.h`
...
This avoids issues with short/common identifiers like `BPI`
and `DIFFERENT` colliding with identifiers used in other projects.
2024-08-02 01:07:40 +00:00
Robert O'Callahan
53c25250a4
Remove support for `int` sizes other than 32 bits
...
No viable platform uses anything other than 32 bits for `int`.
2024-08-02 01:07:40 +00:00
Alan Mishchenko
9f864ebe76
Trying to fix the compilation issue.
2024-07-31 22:25:01 -07:00
Alan Mishchenko
c62bfec2fd
Trying to fix the compilation issue.
2024-07-31 21:56:08 -07:00
Alan Mishchenko
3491773f2a
Suggested changes to improve thread safety.
2024-07-31 19:05:37 -07:00
alanminko
a06dde4cf0
Merge pull request #309 from coastalwhite/chore-popcount-intrinsics
...
chore: `__builtin_popcount` to replace BitCount8
2024-07-31 18:44:58 -07:00
alanminko
279a909a05
Merge pull request #310 from QuantamHD/ethan_fixing_things_2
...
Adds option to unmap network using a non static version of the library
2024-07-31 18:31:26 -07:00
Alan Mishchenko
35d67f6c90
The same problem in another place.
2024-07-31 18:03:38 -07:00
Alan Mishchenko
4f68f08a7b
Compilation problem.
2024-07-31 17:44:19 -07:00
Alan Mishchenko
9062ed964c
Experiments with circuit generators.
2024-07-31 17:39:11 -07:00
Alan Mishchenko
572b80b230
Updating windows makefile by removing unused package.
2024-07-31 17:36:46 -07:00
Ethan Mahintorabi
70563cd441
Adds option to unamap network using a non static version of the library
...
Signed-off-by: Ethan Mahintorabi <ethanmoon@google.com>
2024-07-31 22:19:43 +00:00
Alan Mishchenko
2011cbced9
One more file to be committed.
2024-07-28 15:26:19 -07:00
Alan Mishchenko
96edf40d60
Allow for disabling variable ordering in "lutmin".
2024-07-28 15:25:22 -07:00
Alan Mishchenko
3e1979f3c6
Experimental features of &scorr.
2024-07-28 13:00:32 -07:00
Alan Mishchenko
93388c0d26
Experiments with DSD.
2024-07-27 14:48:02 -07:00
coastalwhite
849adb2fcb
chore: add `__builtin_popcount` for MSVC
2024-07-26 21:48:53 +02:00
Alan Mishchenko
b5f4afa73b
Duplicating AIG after synthesis.
2024-07-26 09:10:39 -07:00
Alan Mishchenko
f8a6432d75
Implementation of functional abstraction.
2024-07-24 20:23:07 -07: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
alanminko
6262dcffa9
Merge pull request #303 from rocallahan/signed-lbool
...
Make `lbool` explicitly signed
2024-07-24 09:48:03 -07:00
Alan Mishchenko
d036ba520e
Updating usage messages of QBF commands.
2024-07-24 09:46:56 -07:00
Alan Mishchenko
5450779250
Improved SOP to BDD conversion.
2024-07-21 16:46:39 -07:00
Alan Mishchenko
d7a623c151
New API for swicthing activity estimation.
2024-07-17 15:15:49 -07:00
Alan Mishchenko
c7ac6be504
Updating parameters.
2024-07-12 07:28:20 -07:00
Alan Mishchenko
ae2e3f90f7
Adding command &genmux.
2024-07-11 22:23:06 -07:00
Alan Mishchenko
13998baf97
Allowing the genlib reader to skip gates larger than the given size.
2024-07-10 12:59:10 -07:00
Emil J
28d955ca97
Merge pull request #35 from lf-/jade/fix-gitarchive
...
Fix archive reproducibility
2024-07-08 19:02:21 +02:00
Robert O'Callahan
6c6260465e
Make `lbool` explicitly signed
...
This avoids issues due to some platforms making `char` signed and others
unsigned. For example, currently the result of promoting `(lbool)-1` to `int`
can differ on different platforms. See
50ffa10848/lib/bill/bill/sat/interface/abc_bsat2.hpp (L156)
for an example of that.
2024-06-28 01:07:10 +00:00
Jade Lovelace
04f50406fd
Fix archive reproducibility
...
The git archive export-subst option does not have consistent results
over time, since the abbreviated commit hash can get longer over time.
Instead, let's export the full commit hash.
This was found in an audit of source archive reproducibility in nixpkgs:
```
~ » expected=$(nix-store -r /nix/store/4j9rj4m6akjskp0f7k923qff817k6hv5-source)
actual=$(nix-prefetch-url --print-path --unpack --name source 896e5e7ded .tar.gz | tail -n1)
nix-shell -p diffoscope --run "diffoscope $expected $actual"
this path will be fetched (3.77 MiB download, 34.50 MiB unpacked):
/nix/store/4j9rj4m6akjskp0f7k923qff817k6hv5-source
copying path '/nix/store/4j9rj4m6akjskp0f7k923qff817k6hv5-source' from 'https://cache.nixos.org '...
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
--- /nix/store/4j9rj4m6akjskp0f7k923qff817k6hv5-source
+++ /nix/store/v7ms5ghibzi8pk71nzlhvsbn7a0rdpy7-source
│ --- /nix/store/4j9rj4m6akjskp0f7k923qff817k6hv5-source/.gitcommit
├── +++ /nix/store/v7ms5ghibzi8pk71nzlhvsbn7a0rdpy7-source/.gitcommit
│ @@ -1 +1 @@
│ -896e5e7de
│ +896e5e7ded
│ ├── stat {}
│ │ @@ -1,7 +1,7 @@
│ │
│ │ - Size: 10 Blocks: 1 IO Block: 512 regular file
│ │ + Size: 11 Blocks: 1 IO Block: 512 regular file
│ │ Device: 0,24 Access: (0444/-r--r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
│ │
│ │ Modify: 1970-01-01 00:00:01.000000000 +0000
```
2024-06-27 13:41:10 -07:00
Alan Mishchenko
2d70debd07
Corner-case bug fix.
2024-06-18 23:01:03 +08:00