Commit Graph

170 Commits

Author SHA1 Message Date
Krystine Sherwin ad32d66553
symfpu_convert: Handle signed ints
Use input wire `is_signed` to select between signed and unsigned handling.
2026-03-11 12:58:59 +13:00
Krystine Sherwin e6e8075b3a
symfpu: Convert with flags 2026-03-11 12:58:59 +13:00
Krystine Sherwin 5372cf5047
symfpu: Add altsqrt
No denormalization here.  That can be a problem for later (or not at all).
2026-03-11 12:58:57 +13:00
Krystine Sherwin 8a764230af
symfpu: Add alt2div
`altdiv` but without denormalization, because as it turns out HardFloat unpacks subnorms in the same way, so lets just support both styles.
2026-03-11 12:58:56 +13:00
Krystine Sherwin 1312668092
symfpu: Add altdiv 2026-03-11 12:58:56 +13:00
Krystine Sherwin 6fd4bde7e6
Fix tininess when rounding to ebmin 2026-03-11 12:58:56 +13:00
Krystine Sherwin b4186e2295
Don't raise DZ when left is inf 2026-03-11 12:58:55 +13:00
Krystine Sherwin 9cb347a1a6
symfpu: Tidying output
Also switching to cleaner library branch
2026-03-11 12:58:54 +13:00
Krystine Sherwin cc4e9e52a8
symfpu: floatWithStatusFlags
Now with verified muladd exceptions.
2026-03-11 12:58:54 +13:00
Krystine Sherwin a0a0b2ce84
symfpu: Verifying rounding modes
Works for everything but muladd.
Which I saw coming, but am still frustrated by.
2026-03-11 12:58:54 +13:00
Krystine Sherwin c1bc302174
symfpu: Add flags
Use symfpu fork.
Add tests for symfpu properties and extra edge case checking for flags.
2026-03-11 12:58:53 +13:00
Jannis Harder 25848020cc
wip: symfpu pass 2026-03-11 12:58:52 +13:00
Gus Smith b2f9ac4fb5 Check for dimacs nullptr on file creation+fn call 2026-02-06 18:18:03 -08:00
Gus Smith 2bb352a861 Missing newline 2026-02-06 17:45:00 -08:00
Gus Smith f062a0c8d6 Typo 2026-02-06 17:26:08 -08:00
Gabriel Gouvine 979b673f20 ezsat: Fix handling of error codes 2026-01-20 07:54:50 -08:00
Gabriel Gouvine d2b6bd00b1 ezsat: Rename files and class for ezCmdlineSat 2026-01-20 07:54:50 -08:00
Gabriel Gouvine 6565bf3ebf ezsat: Fix build for emscripten/wasi 2026-01-20 07:54:50 -08:00
Gabriel Gouvine 12315c0d17 ezsat: Support for assumptions in Sat command 2026-01-20 07:54:49 -08:00
Gabriel Gouvine 9315f02c17 ezsat: New Sat class to call an external command 2026-01-20 07:54:49 -08:00
De hekkende krekker 38a1e66145
Fixes #3515 2025-11-25 06:58:14 +13:00
Robert O'Callahan 9cb3a239cc Fix `subcircuit` building without `#define _YOSYS_`
We can't use the new stringf functionality with `my_sprintf()` since in some builds
that falls back to C-style varargs.
2025-09-15 23:13:20 +00:00
Robert O'Callahan c7df6954b9 Remove .c_str() from stringf parameters 2025-09-01 23:34:42 +00:00
Krystine Sherwin cc402ee065
libs/fst: Update upstream
libfst is no longer included in gtkwave and instead has its own repo.  There has also been some refactoring, so the patches need to update to match, as does sim.cc.
2025-05-12 10:21:06 +12:00
KrystalDelusion 644efca341
Merge pull request #4953 from YosysHQ/krys/local_docs_fixes
A few fixes, mostly local docs builds
2025-03-25 10:36:18 +13:00
Krystine Sherwin 013206de39
Fix #3898 (again) 2025-03-20 14:23:37 +13:00
Emil J. Tywoniak 613a17b4a8 ezsat: fix incorrect logging references to function names 2025-03-19 10:33:28 +01:00
Krystine Sherwin 68e9317f1f
libs/fst: Patch wx_len overread 2025-02-25 17:18:15 +13:00
Krystine Sherwin 67a0248186
libs/fst: Update from upstream
Fixes stringop-overread warning
2025-02-25 17:15:41 +13:00
Martin Povišer 212d2a6d6e lib/fst: Remove unaligned pointer access 2025-02-03 11:13:07 +01:00
Gabriel Somlo fe79a77e39 Fix undefined type error in libs/json11/json11.cpp
Under certain conditions, compilation errors out with
the following message:

    "error: ‘uint8_t’ does not name a type"

Explicitly including <cstdint> prevents that situation.

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
2025-01-16 20:09:58 -05:00
Krystine Sherwin 16a595004c
libs/fst: Fix Cygwin compat 2024-12-03 12:48:48 +13:00
Martin Povišer 1184418cc8
Merge pull request #4739 from hzeller/feature-20241113-stdlib-for-abort
Include stdlib.h for `abort()`
2024-11-20 10:19:31 +01:00
Henner Zeller a750c94c38 Include stdlib.h for `abort()` 2024-11-13 13:05:01 -08:00
Emil J 0aa2f0efdf
Merge pull request #4715 from hzeller/feature-20241106-use-stdlib-for-free
Include cstdlib for free()
2024-11-08 19:07:42 +01:00
Henner Zeller 285fd5b83a Include cstdlib for free() 2024-11-06 17:35:00 -08:00
Krystine Sherwin a370c116d5
libs/fst: Use unbuffered IO flag 2024-10-18 07:25:29 +13:00
Krystine Sherwin 2157f67184
libs/fst: Patch more _MSC_VER checks 2024-10-17 07:05:24 +13:00
Krystine Sherwin 827e5baca7
libs/fst: Update from upstream 2024-10-17 07:05:23 +13:00
Krystine Sherwin 5f83d4d9da
libs/fst: Patch <io.h>
I think what's happening here is that the _WIN64 fix is correct for 64bit windows, but (for whatever reason) the visual studio build is targeting 32bit windows, so the fix is unnecessary, but the upstream fix doesn't expect to be targeting 32bit windows and assumes all windows builds are 64bit... so fix that.
2024-10-17 07:05:23 +13:00
Krystine Sherwin a54721aa39
libs/fst: Patch for zlib on windows 2024-10-17 07:05:23 +13:00
Krystine Sherwin c4a0845207
libs/fst: Fix filename references 2024-10-17 07:05:23 +13:00
Krystine Sherwin 2edb9397c3
libs/fst: Update from upstream
Add shell script (based on minisat lib) to clone and copy relevant files.
Unclear if there are any changes lost that we need to patch back in.
2024-10-17 07:05:23 +13:00
Emil J. Tywoniak 575415ade2 driver: switch to cxxopts, replace -B 2024-10-09 15:21:34 +02:00
Krystine Sherwin e9f909aa25
minisat: Record changes in patch 2024-08-17 10:01:25 +12:00
Krystine Sherwin 55307a5452
minisat: Check for gcc 2024-08-16 04:30:37 +12:00
Krystine Sherwin eb02ab07da
minisat: Use reallocarray
Avoid gcc warning about non-trivial copying.
2024-08-16 04:30:37 +12:00
Krystine Sherwin d34833d177
Better snprintf size handling 2024-08-16 04:30:37 +12:00
Krystine Sherwin 636ce9ac2c
snprintf 2024-08-16 04:30:36 +12:00
Krystine Sherwin 7b47f645d7
Address warnings
- Setting default values
- Fixing mismatched types
- Guarding unused var
2024-08-16 04:30:31 +12:00