Commit Graph

11675 Commits

Author SHA1 Message Date
N. Engelhardt a55c3db384 have 'select -count' save the count to scratchpad entry 'select.count' 2022-06-01 14:39:33 +02:00
Jannis Harder 01cb02c81d
Merge pull request #3348 from zachjs/func-tern-hint
verilog: fix width/sign detection for functions
2022-05-31 15:56:36 +02:00
github-actions[bot] a79a228c2b Bump version 2022-05-31 00:16:32 +00:00
Zachary Snow a650d9079f verilog: fix width/sign detection for functions 2022-05-30 16:45:39 -04:00
Miodrag Milanović cea7e85d60
Merge pull request #3347 from DanielHuisman/fix-3053
Fix typo in emcc flags (typo introduced by #3053)
2022-05-30 17:03:39 +02:00
Daniel Huisman 6809ee8de0 Fix typo in emcc flags (typo introduced by #3053) 2022-05-30 17:01:02 +02:00
Jannis Harder 4bfaaea0d5 verilog: fix size and signedness of array querying functions
genrtlil.cc and simplify.cc had inconsistent and slightly broken
handling of signedness for array querying functions. These functions are
defined to return a signed result. Simplify always produced an unsigned
and genrtlil always a signed 32-bit result ignoring the context.

Includes tests for the the relvant edge cases for context dependent
conversions.
2022-05-30 09:11:31 -04:00
github-actions[bot] ce24208a8b Bump version 2022-05-28 00:16:59 +00:00
Patrick Urban 5d08688054
gatemate: Fix minor issues with `memory_libmap` (#3343) 2022-05-27 23:35:26 +02:00
Miodrag Milanović 197c9e04e8
Merge pull request #3333 from mohamed/feature/tmpdir
Observe $TMPDIR variable when creating tmp files
2022-05-27 16:51:16 +02:00
Miodrag Milanovic 08275a1569 Cleanup, and fix windows 2022-05-27 16:13:55 +02:00
Mohamed A. Bamakhrama 1822be8792 Observe $TMPDIR variable when creating tmp files
POSIX defines $TMPDIR as containing the pathname of the directory where
programs can create temporary files. On most systems, this variable points to
"/tmp". However, on some systems it can point to a different location.
Without respecting this variable, yosys fails to run on such systems.

Signed-off-by: Mohamed A. Bamakhrama <mohamed@alumni.tum.de>
2022-05-27 15:06:53 +02:00
Miodrag Milanović bf78041e89
Merge pull request #3341 from mmicko/unused_vars
Remove set but unused variable
2022-05-27 14:45:35 +02:00
Miodrag Milanovic f9b6fe521d Upload emscripten artifact 2022-05-27 14:15:25 +02:00
Miodrag Milanovic 4316cdb603 Remove set but unused variable 2022-05-27 12:37:03 +02:00
Miodrag Milanovic 5490f94e82 Add emcc build (stuck if all cpus used on GH) 2022-05-27 11:05:17 +02:00
Miodrag Milanovic 0d31aa6008 Proper std::move 2022-05-27 11:04:16 +02:00
Miodrag Milanovic 7ee570a75e Use proper operator 2022-05-27 10:23:34 +02:00
Miodrag Milanović b0c71ed594
Merge pull request #3053 from DanielHuisman/pr-2
Fix emcc warnings for WebAssembly build
2022-05-27 10:13:44 +02:00
github-actions[bot] f698a0514d Bump version 2022-05-26 00:17:28 +00:00
Jannis Harder b75fa62e9b verilog: fix $past's signedness 2022-05-25 16:32:08 -04:00
Miodrag Milanović 63c9c9be5c
Merge pull request #3011 from DanielHuisman/pr-1
Update WaveDrom script URLs in YosysJS demo
2022-05-25 17:34:19 +02:00
Jannis Harder 8e9471c695
Merge pull request #3335 from programmerjake/divfloor-in-write_smt2
add $divfloor support to write_smt2
2022-05-25 12:25:04 +02:00
Miodrag Milanović 904e2efe11
Merge pull request #3138 from DanielG/fix-git-rev
Make GIT_REV logic work in release tarballs
2022-05-25 11:33:11 +02:00
Daniel Gröber 222e7a2da3 Make GIT_REV logic work in release tarballs
Currently GIT_REV doesn't get set properly when building a release
tarball. To fix this we arrange for .gitcommit to contain the (short)
commit hash in tarballs generated with git-archive(1) using export-subst in
gitattributes. This way the correct commit hash is (reproducibly) included
in the release tarballs while not burdening the maintainers with updating
it in the git repo.

Please note this even works on Github and similar forges as they use
git-archive for generating tarballs so this works out quite nicely.
2022-05-25 11:20:09 +02:00
Jannis Harder cffec1f95f verilog: fix signedness when removing unreachable cases 2022-05-24 23:03:31 -04:00
Jacob Lifshay d53479a0d6 add $divfloor support to write_smt2
Fixes: #3330
2022-05-24 01:34:25 -07:00
github-actions[bot] c525b5f919 Bump version 2022-05-24 00:18:18 +00:00
Miodrag Milanović 335b4888ce
Merge pull request #3332 from YosysHQ/verific_f
Update Verific command file documentation
2022-05-23 20:01:44 +02:00
Miodrag Milanovic fdb393b6ce fix text to fit 80 columns 2022-05-23 19:57:21 +02:00
Miodrag Milanovic 4a5790d404 Update verific command file documentation 2022-05-23 19:35:14 +02:00
Miodrag Milanovic a6ec5754c6 Use analysis mode if set in file 2022-05-23 19:13:45 +02:00
Miodrag Milanović e47cfe277e
Merge pull request #3331 from YosysHQ/git_rev_fix
work around the new(ish) git safe.directory restrictions
2022-05-23 18:33:11 +02:00
Jannis Harder 87149b3f8e Change way to get commit sha 2022-05-23 17:07:17 +02:00
gatecat 166a175983 abc9_ops: Don't leave unused derived modules lying around
These later become accidentally used for techmap replacements for
blackboxes that we don't actually want.

Signed-off-by: gatecat <gatecat@ds0.me>
2022-05-23 15:02:25 +01:00
github-actions[bot] 0b1a1a576b Bump version 2022-05-21 00:16:34 +00:00
Jannis Harder 795c445159
Merge pull request #3324 from jix/confusing-select-errors
select: Fix -assert-none and -assert-any error output and docs
2022-05-20 17:40:40 +02:00
Jannis Harder fc65ea47df select: Fix -assert-none and -assert-any error output and docs
Both of these options consider a selection containing only empty modules
as non-empty. This wasn't mentioned in the documentation nor did the
error message when using `select -assert-none` list those empty modules,
which produced a very confusing error message complaining about a
non-empty selection followed by an empty listing of the selection.

This fixes the documentation and changes the `-assert-none` and
`-assert-any` assertion error messages to also output fully selected
modules (this includes selected empty modules).

It doesn't change the messages for `-assert-count` etc. as they don't
count modules.
2022-05-19 14:07:34 +02:00
github-actions[bot] 015ca4ddac Bump version 2022-05-19 00:17:59 +00:00
Marcelina Kościelnicka 606f1637ae Add memory_bmux2rom pass. 2022-05-18 22:48:55 +02:00
Marcelina Kościelnicka 982a11c709 Add memory_libmap tests. 2022-05-18 17:32:56 +02:00
Marcelina Kościelnicka 2a2dc12eb6 gatemate: Use `memory_libmap` pass. 2022-05-18 17:32:56 +02:00
Marcelina Kościelnicka 2dcb0797f0 machxo2: Use `memory_libmap` pass. 2022-05-18 17:32:56 +02:00
Marcelina Kościelnicka 9d11575856 efinix: Use `memory_libmap` pass. 2022-05-18 17:32:56 +02:00
Marcelina Kościelnicka f4d1426229 anlogic: Use `memory_libmap` pass. 2022-05-18 17:32:56 +02:00
Marcelina Kościelnicka d7dc2313b9 ice40: Use `memory_libmap` pass. 2022-05-18 17:32:56 +02:00
Marcelina Kościelnicka 3b2f95953c xilinx: Use `memory_libmap` pass. 2022-05-18 17:32:56 +02:00
Marcelina Kościelnicka e4d811561c gowin: Use `memory_libmap` pass. 2022-05-18 17:32:56 +02:00
Marcelina Kościelnicka 0a8eaca322 nexus: Use `memory_libmap` pass. 2022-05-18 17:32:56 +02:00
Marcelina Kościelnicka a04b025abf ecp5: Use `memory_libmap` pass. 2022-05-18 17:32:56 +02:00