Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cast type #2

Open
wants to merge 637 commits into
base: cast_type
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
637 commits
Select commit Hold shift + click to select a range
c2ad121
Merge pull request #4356 from YosysHQ/krys/docs_issue_template
mmicko May 13, 2024
40c7162
Merge pull request #4392 from YosysHQ/krys/refactor-workflows
mmicko May 13, 2024
eba5fa8
Merge pull request #4387 from YosysHQ/emil/document-lut-sop
mmicko May 13, 2024
fa19aba
Fix rst syntax error
mmicko May 13, 2024
229300b
replace unicode chars in rst to make pdf work
mmicko May 13, 2024
7045cf5
Bump version
github-actions[bot] May 14, 2024
13a6920
Change customYosys to yosys
RCoeurjoly May 21, 2024
88af059
bbox_derive: Fix `done` base type confusion
povik May 21, 2024
5c929a9
bbox_derive: Write help
povik May 21, 2024
557db4e
bbox_drive: Add an incomplete test
povik May 21, 2024
e940d24
Merge pull request #4326 from povik/logcmd
nakengelhardt May 21, 2024
d2586e2
Merge pull request #4238 from RCoeurjoly/nix
nakengelhardt May 21, 2024
24f9329
Merge pull request #4367 from YosysHQ/lofty/intel_alm-drop-quartus
nakengelhardt May 21, 2024
1790370
Merge pull request #4362 from offline3/export_marco_to_qtcreator
mmicko May 21, 2024
c0a1961
Rename `bbox_derive` to `box_derive`
povik May 21, 2024
adc1a01
select: Refactor some flag validation
povik May 21, 2024
49906be
select: Introduce `-assert-mod-count`
povik May 21, 2024
bff2443
box_derive: Finish the test
povik May 21, 2024
c71262f
Bump version
github-actions[bot] May 22, 2024
db3f810
Only build yosys-abc usage docs when ABCEXTERNAL is not set
marysaka May 22, 2024
1aae0bc
ci: Move nix build to extra-builds.yml
KrystalDelusion May 23, 2024
d135c0b
extra-builds.yml: Fix indentation
KrystalDelusion May 23, 2024
98ab829
Merge pull request #4409 from marysaka/fix-abc-external-doc
mmicko May 24, 2024
56c8439
Merge pull request #4412 from YosysHQ/krys/skippable_nix
mmicko May 24, 2024
c7580eb
cxxrtl: Prevent wires with input or output ports from being aliased
noeamiot May 21, 2024
5579685
Bump version
github-actions[bot] May 25, 2024
02ad56a
docs: add todo for $demux
widlarizer May 27, 2024
b230c95
select: Adjust help
povik May 29, 2024
97fedff
box_derive: Tune the test
povik May 29, 2024
111b747
Merge pull request #4420 from YosysHQ/emil/doc-demux-todo
widlarizer May 30, 2024
a84e4f4
Bump version
github-actions[bot] May 31, 2024
4b67f37
Merge pull request #4404 from YosysHQ/povik/bbox_derive
povik May 31, 2024
803703a
Update flake lock workflow
mmicko Jun 2, 2024
855ac28
Bump version
github-actions[bot] Jun 3, 2024
094fa8c
smtbmc: Fix two .yw handling related crashes
jix Jun 6, 2024
baccf87
Merge pull request #4431 from jix/smtbmc-fixes
mmicko Jun 6, 2024
bd28d26
Bump version
github-actions[bot] Jun 7, 2024
9b82a44
Fix help message typo
mmicko Jun 7, 2024
9b6afcf
Release version 0.42
mmicko Jun 7, 2024
b056e8c
Next dev cycle
mmicko Jun 7, 2024
dc69365
cxxrtl: failing test: unconnected blackbox outputs don't compile.
kivikakk May 26, 2024
e97c36d
cxxrtl: don't emit syncs for empty lhs.
kivikakk May 26, 2024
54d5e56
cxxrtl: fix `debug_info()` deprecation message.
jfng Jun 7, 2024
b0ab1cf
Fix memory leak in verific file parsing.
mikesinouye Jun 7, 2024
8278364
Bump version
github-actions[bot] Jun 8, 2024
078c14f
Merge pull request #4434 from mikesinouye/asan
mmicko Jun 8, 2024
9f94ecf
Merge pull request #4417 from kivikakk/cxxrtl-unused-output
whitequark Jun 9, 2024
b593f5c
Update the overview comment in `ast.h`
povik Jun 10, 2024
960d8e3
Merge pull request #4440 from povik/ast-api-comment
povik Jun 10, 2024
ef90458
Bump version
github-actions[bot] Jun 11, 2024
df4e630
Docs: Add section for script parsing
KrystalDelusion Jun 11, 2024
7f89a45
cxxxrtl: fix use of format specifiers in test
maribu Jun 10, 2024
a55e859
Bump version
github-actions[bot] Jun 12, 2024
3ed2865
cxxrtl: capi: don't use deprecated invocation.
kivikakk Jun 7, 2024
62bff3a
cxxrtl: don't need to specify a value for "path".
kivikakk Jun 7, 2024
34b5c6d
peepopt: avoid shift-amount underflow
phsauter Jun 13, 2024
2fd2b65
Bump version
github-actions[bot] Jun 14, 2024
74a1dd9
Merge pull request #4444 from YosysHQ/krys/scripting_docs
nakengelhardt Jun 14, 2024
74e5043
peepopt: fix sign check in shiftadd
phsauter Jun 14, 2024
2f0f10c
peepopt: limit padding from shiftadd
phsauter Jun 14, 2024
54bf9cc
Add initial support for Verific without additional YosysHQ patch
mmicko May 21, 2024
25d50bb
VHDL only build support
mmicko Jun 7, 2024
7bec332
SV + VHDL with RTL support
mmicko Jun 10, 2024
e2e1896
Cleanup
mmicko Jun 10, 2024
7c30946
Compile with hier_tree separate SV and VHDL as well
mmicko Jun 11, 2024
0a81c8e
Import all modules from all libraries when when needed
mmicko Jun 11, 2024
0f3f731
Handle -work for vhdl, and clean messages
mmicko Jun 11, 2024
19da7f7
Update makefile to make options uniform
mmicko Jun 11, 2024
dfde792
Refactored import code
mmicko Jun 17, 2024
141a2e3
Make C++17 compiler required
mmicko Jun 17, 2024
f9b7b8f
Update documentation for C++17 switch
povik Jun 17, 2024
2bbf311
Update VS build to C++17 build
mmicko Jun 17, 2024
8024688
Merge pull request #4459 from YosysHQ/micko/vanilla_verific
mmicko Jun 18, 2024
ede3750
Bump version
github-actions[bot] Jun 19, 2024
22d8df1
liberty: Support for IO liberty files for verification
gatecat Jun 10, 2024
6c8ae44
Bump version
github-actions[bot] Jun 20, 2024
89d9393
rtlil: Fix `addShiftx` for signed shifts
povik Jun 21, 2024
777624c
Make yosys-config dependant of Makefile
mmicko Jun 24, 2024
7a8a69b
opt_expr: Revisit sorting in `replace_const_cells`
povik Jan 31, 2024
fa4a2b6
opt_expr: In clkinv loop ignore irrelevant cells early
povik Jan 31, 2024
1e401c3
Merge pull request #4460 from YosysHQ/micko/c++17
mmicko Jun 24, 2024
1288166
Bump version
github-actions[bot] Jun 25, 2024
01f332e
opt_expr: reduce mostly harmless warning to log
widlarizer Jun 25, 2024
07daf61
Merge pull request #4467 from povik/fix-add-shiftx
povik Jun 26, 2024
580aaa3
opt_lut_ins: fix name of global object. NFCI
whitequark Jun 28, 2024
a739e21
Bump version
github-actions[bot] Jun 29, 2024
78ae4ed
hashlib: Add some more primes
georgerennie Jul 1, 2024
339d4e8
hashlib: Correct prime sequence
georgerennie Jul 2, 2024
acddc36
add PolarFire FPGA support
tony-min-1 Jul 2, 2024
2ced275
replace space indent with tab indent
tony-min-1 Jul 2, 2024
68a11c9
more indent fix
tony-min-1 Jul 2, 2024
f57b624
fix indent
tony-min-1 Jul 2, 2024
e5bdc9b
remove DSP48 references
tony-min-1 Jul 3, 2024
7770fa7
fix cells_sim.v
tony-min-1 Jul 4, 2024
0bb7d13
changes made to filenames + references
Damon-Ma-MCHP Jul 4, 2024
59e45be
Merge branch 'mchp' of https://github.com/tony-min-1/yosys into chang…
Damon-Ma-MCHP Jul 4, 2024
d0cd01a
fixed typos, build with makefile succeeds
Damon-Ma-MCHP Jul 4, 2024
c385421
rename options
Damon-Ma-MCHP Jul 4, 2024
6b80e02
missed a few pf instances
Damon-Ma-MCHP Jul 4, 2024
5ba06fd
another typo
Damon-Ma-MCHP Jul 4, 2024
7ff8912
Merge pull request #1 from tony-min-1/change_filenames
tony-min-1 Jul 4, 2024
19d3214
use output reg instead of additional reg declaration
tony-min-1 Jul 4, 2024
e3c4791
move microchip tests from techlibs/microchip/tests to tests/arch/micr…
tony-min-1 Jul 4, 2024
8e7ec2d
add assertions for synth_microchip tests
tony-min-1 Jul 4, 2024
9de5602
ininclude microchip tests in makefile
tony-min-1 Jul 4, 2024
e9ff5f7
Merge pull request #2 from tony-min-1/move_tests
tony-min-1 Jul 4, 2024
6fe0e00
Add missing u sram init (#3)
tony-min-1 Jul 4, 2024
dac5bd1
Merge pull request #4455 from phsauter/shiftadd-limit-padding
nakengelhardt Jul 6, 2024
9d0bca9
Gowin. Add an energy saving primitive
yrabbit Jul 6, 2024
d41688f
Revisions (#4)
tony-min-1 Jul 8, 2024
3c95a28
fix compile warning
tony-min-1 Jul 8, 2024
a0c9d10
undo last change, to investigate dff_opt test failure
tony-min-1 Jul 8, 2024
af67c74
initialize argidx to 1
tony-min-1 Jul 8, 2024
fee274c
Makefile: let clang use -Og in debug builds
widlarizer Jul 8, 2024
ad22430
Makefile: use -O3 instead of -Os
widlarizer Jul 8, 2024
0afb5e2
cosmetic changes
tony-min-1 Jul 8, 2024
3db69b7
inline all tests. Add switch to remove init values as PolarFire DFFs …
tony-min-1 Jul 8, 2024
c6e5e0b
Release version 0.43
mmicko Jul 9, 2024
ead4718
Enable extensions for CI
mmicko Jul 9, 2024
b9181aa
Next dev cycle
mmicko Jul 9, 2024
725746b
Makefile: LTO for all, lld for clang
widlarizer Jul 9, 2024
130dee6
Use alternate location for VS build required files
mmicko Jul 9, 2024
6583444
Merge pull request #4482 from YosysHQ/micko/vs_build
mmicko Jul 9, 2024
b08688f
Bump version
github-actions[bot] Jul 10, 2024
19bbdd8
Gowin. Add the DCS primitive
yrabbit Jul 11, 2024
9d15f1d
Makefile: reproducible .gitcommit
widlarizer Jul 12, 2024
7d9ba37
abc: bump for reproducilbe .gitcommit
widlarizer Jul 12, 2024
0cd55e1
Makefile: fix
widlarizer Jul 12, 2024
532188f
opt_expr: change info message
widlarizer Jul 15, 2024
2f51448
haiku: Basic fixes to build under Haiku
kallisti5 Jun 4, 2024
9abdf36
Merge pull request #4428 from kallisti5/haikuisms
widlarizer Jul 15, 2024
1166238
Merge pull request #4176 from povik/opt_expr-performance
widlarizer Jul 15, 2024
49f5477
Bump version
github-actions[bot] Jul 16, 2024
ec32c9a
Makefile: do install `bitpattern.h`
povik Jul 17, 2024
1d7a47b
Merge pull request #4487 from YosysHQ/emil/abc-reproducible-git-hash
widlarizer Jul 18, 2024
1440f62
Merge pull request #4489 from yrabbit/dcs
widlarizer Jul 18, 2024
43c1328
Merge pull request #4479 from yrabbit/z1-power
widlarizer Jul 18, 2024
81df855
Merge pull request #4494 from povik/install-bitpattern-h
povik Jul 18, 2024
583db7b
sigmap: comments
widlarizer Jul 18, 2024
72a0380
ast: don't suggest use in external projects
widlarizer Jul 18, 2024
c94aa71
VHDL is case insensitive, make sure netlist name is proper
mmicko Jul 18, 2024
28ebefd
Bump version
github-actions[bot] Jul 19, 2024
118b282
Merge pull request #4499 from YosysHQ/emil/ast-comments
povik Jul 19, 2024
bf758b9
Makefile: turn off LTO on gcc due to regression
widlarizer Jul 22, 2024
a947572
Add lld to clang build environments and Dockerfile
widlarizer Jul 22, 2024
5d05589
Add llvmPackages.bintools to buildInputs, otherwise we get a linkage …
RCoeurjoly Jul 22, 2024
8c1431f
Guess VHDL frontend for both *.vhd and *vhdl files
RCoeurjoly Jul 23, 2024
ce11ddb
Simplified run_frontend by using a lambda function for file extension…
RCoeurjoly Jul 23, 2024
ad47844
actions: macos install lld from llvm package
widlarizer Jul 24, 2024
29d53bc
actions: try fix GITHUB_PATH
widlarizer Jul 24, 2024
7cd27e1
Makefile: remove accidental abc opt level override for wasi builds
widlarizer Jul 24, 2024
9566709
Initialize extensions when verific pass is registered
mmicko Jul 25, 2024
e063b96
synthprop: Reformat the help
povik Jul 25, 2024
7ee685a
proc_rom: Set `src` on the emitted memory
povik Jul 25, 2024
610d27d
Bump version
github-actions[bot] Jul 26, 2024
41b51c1
Merge pull request #4503 from RCoeurjoly/vhdl_extension
nakengelhardt Jul 26, 2024
dd3637f
Merge pull request #4506 from povik/synthprop-formatting
nakengelhardt Jul 26, 2024
1c41db6
Update interactive_investigation.rst
JamesTimothyMeech Jul 26, 2024
ced1313
Merge pull request #4510 from JamesTimothyMeech/patch-1
povik Jul 26, 2024
960bca0
Bump version
github-actions[bot] Jul 27, 2024
01fd725
proc_rom: test src attribute on memories
widlarizer Jul 25, 2024
49eaa10
Merge pull request #4425 from YosysHQ/emil/doc-sigmap
widlarizer Jul 29, 2024
4b29f64
cost: add model for techmapped cell count, keep_hierarchy pass with -…
widlarizer Jul 29, 2024
61ae9f4
Merge pull request #4514 from YosysHQ/emil/proc_rom-src-test-2
povik Jul 29, 2024
051d832
Merge pull request #4471 from georgerennie/hashlib_primes
widlarizer Jul 29, 2024
af0c2fa
Brewfile: add llvm for lld
widlarizer Jul 29, 2024
e21dd29
Merge pull request #4502 from YosysHQ/emil/build-opt-levels
widlarizer Jul 29, 2024
7c3666f
Merge pull request #4505 from YosysHQ/micko/ext_register
nakengelhardt Jul 29, 2024
9f869b2
Merge pull request #4474 from tony-min-1/mchp
nakengelhardt Jul 29, 2024
405897a
Update top value that is returned back to hierarchy pass
mmicko Jul 29, 2024
92cac63
Merge pull request #4344 from widlarizer/emil/keep_hierarchy
widlarizer Jul 29, 2024
3e14e67
Merge pull request #4500 from YosysHQ/micko/vhdl_mixcase
mmicko Jul 29, 2024
c788484
Bump version
github-actions[bot] Jul 30, 2024
7e34142
Run nix build also on macos. Build with more logs
RCoeurjoly Jul 30, 2024
6d98418
Set ranges on exported wires in VCD and FST
mmicko Aug 2, 2024
01b9997
Merge pull request #4518 from YosysHQ/micko/sim_signal_names
nakengelhardt Aug 5, 2024
eeecb54
Makefile: no LTO and lld by default
widlarizer Aug 5, 2024
d2b5788
Bump version
github-actions[bot] Aug 6, 2024
e5d8505
Merge pull request #4523 from YosysHQ/emil/no-lto-lld
mmicko Aug 6, 2024
80ba43d
Release version 0.44
mmicko Aug 6, 2024
d08bf67
Next dev cycle
mmicko Aug 6, 2024
669f8b1
Bump version
github-actions[bot] Aug 7, 2024
4c32038
exec: Add missing newline
povik Aug 7, 2024
b1569de
Merge pull request #4527 from povik/exec-newline
povik Aug 7, 2024
ebffe37
Bump ABC
povik Aug 7, 2024
4b5beb6
Pull ABC fix
povik Aug 7, 2024
77b2ae2
Bump version
github-actions[bot] Aug 8, 2024
bcb995b
Sync with yosys-experimental branch
povik Aug 8, 2024
8ce6219
Merge pull request #4528 from povik/bump-abc
povik Aug 12, 2024
4b9f452
Bump version
github-actions[bot] Aug 13, 2024
78382ea
libparse: Adjust whitespace
povik Aug 13, 2024
c35f5e3
Extend liberty tests
povik Aug 13, 2024
3057c13
Improve libparse encapsulation
povik Aug 13, 2024
309d808
read_liberty: Use available gate creation helpers
povik Aug 13, 2024
ab5d6b0
read_liberty: Fix omitted helper change
povik Aug 13, 2024
a854903
Merge pull request #4537 from povik/libparse-cleanup
povik Aug 14, 2024
d709177
test-compile: Downgrade to focal
KrystalDelusion Aug 14, 2024
1eaf4e0
Bump version
github-actions[bot] Aug 15, 2024
ceba889
Merge pull request #4540 from YosysHQ/clang-11
mmicko Aug 15, 2024
7b47f64
Address warnings
KrystalDelusion Aug 15, 2024
636ce9a
snprintf
KrystalDelusion Aug 15, 2024
d34833d
Better snprintf size handling
KrystalDelusion Aug 15, 2024
eb02ab0
minisat: Use reallocarray
KrystalDelusion Aug 15, 2024
55307a5
minisat: Check for gcc
KrystalDelusion Aug 15, 2024
3b63ab0
docs: Build RTD artifacts directly
KrystalDelusion Aug 15, 2024
7bd3c7b
Fix test-verific.yml
KrystalDelusion Aug 15, 2024
e9f909a
minisat: Record changes in patch
KrystalDelusion Aug 16, 2024
3dd32d7
Stop unconditionally building abc
KrystalDelusion Aug 4, 2024
5fb3c0b
Bump version
github-actions[bot] Aug 17, 2024
d80d4dc
[Docs]:Add new cell type help messages (#1)
NachtSpyder04 Aug 17, 2024
34aabd5
Apply suggestions from code review
NachtSpyder04 Aug 18, 2024
aa60255
update help messages that went beyond line length limit
NachtSpyder04 Aug 18, 2024
d1b767e
Adding missing to Gowin tech files
Aug 17, 2024
7f08a29
Merge pull request #4542 from YosysHQ/krys/rtd
nakengelhardt Aug 19, 2024
8773cf7
test-verific: Use fast runner
KrystalDelusion Aug 19, 2024
6df0c3d
docs: Fix synth_flow generation
KrystalDelusion Aug 19, 2024
4847caa
driver: print maximum memory usage on macOS as well
widlarizer Aug 19, 2024
0dfa496
Merge pull request #4547 from leviathanch/fix_apicula1
widlarizer Aug 19, 2024
e0d3bbf
Merge pull request #4452 from phsauter/shiftadd-underflow-fix
widlarizer Aug 19, 2024
9de5348
Merge pull request #4515 from RCoeurjoly/nix_on_macos
widlarizer Aug 19, 2024
d901b28
Merge pull request #4546 from NachtSpyder04/main
widlarizer Aug 19, 2024
7d779c6
docs: Only trigger RTDs on main
KrystalDelusion Aug 19, 2024
e4c8bb0
Merge pull request #4552 from YosysHQ/krys/rtd_on_main
mmicko Aug 19, 2024
4cddc19
Bump version
github-actions[bot] Aug 20, 2024
91e3773
Ensure signed constants are correctly parsed, represented, and export…
RCoeurjoly Aug 19, 2024
27c1432
Remove log
RCoeurjoly Aug 19, 2024
2ffafad
Docs: Add note on verific
KrystalDelusion Aug 21, 2024
e18a2f1
Docs: Section/folder for yosys source details
KrystalDelusion Aug 21, 2024
d97a243
Docs: Intro to Yosys source section
KrystalDelusion Aug 21, 2024
53b223f
Docs: Initial build_verific.rst
KrystalDelusion Aug 21, 2024
8e618ca
Docs: Update build_verific.rst
KrystalDelusion Aug 21, 2024
00bb3b6
Docs: Merge yosys_source into extending_yosys
KrystalDelusion Aug 21, 2024
cfba26c
Docs: Verific progress
KrystalDelusion Aug 21, 2024
88bb785
Docs: Verific but with sentences
KrystalDelusion Aug 21, 2024
36ad07e
Docs: Update build_verific
KrystalDelusion Aug 21, 2024
0327ad9
Docs: Fix code formatting
KrystalDelusion Aug 21, 2024
8145461
Docs: Fix Verific builds table formatting
KrystalDelusion Aug 21, 2024
6431534
Docs: Some other fixes
KrystalDelusion Aug 21, 2024
3317d80
Docs: Clarify verific caveats
KrystalDelusion Aug 21, 2024
27b51cb
Bump version
github-actions[bot] Aug 22, 2024
7b0ecaa
Merge pull request #4549 from YosysHQ/emil/macos-max-mem-usage
widlarizer Aug 22, 2024
583d820
Docs: Apply verific docs suggestions
KrystalDelusion Aug 22, 2024
09a42dd
Merge pull request #4396 from YosysHQ/krys/docs_verific
KrystalDelusion Aug 22, 2024
72f77dd
Bump version
github-actions[bot] Aug 23, 2024
0fc5812
Merge pull request #4541 from YosysHQ/krys/compiler-warnings
nakengelhardt Aug 26, 2024
a6bdb1b
Added cast to type support
rherveille Mar 15, 2024
ded01f0
Added cast-to-type tests
rherveille Mar 16, 2024
1d02fb3
Added user defined struct type tests
rherveille Mar 17, 2024
69fe821
Incorporated feedback from Yosys/HQ
rherveille May 31, 2024
3683a3a
minor tweaks for consistency
zachjs Sep 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitcommit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
$Format:%h$
$Format:%H$
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ body:
- macOS
- Windows
- BSD
- WebAssembly
multiple: true
validations:
required: true
Expand All @@ -42,7 +43,7 @@ body:
attributes:
value: >
When providing steps to reproduce the issue, please ensure that the issue
is reproducible in the current git master of Yosys. Also ensure to
is reproducible in the current git main of Yosys. Also ensure to
provide all necessary source files needed.


Expand Down
55 changes: 55 additions & 0 deletions .github/ISSUE_TEMPLATE/docs_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Documentation Report
description: Report a problem with the Yosys documentation
labels: ["pending-verification"]
body:
- type: markdown
attributes:
value: >

If you have a general question, please ask it in the [Discussions](https://github.com/YosysHQ/yosys/discussions) area
or join our [IRC Channel](https://web.libera.chat/#yosys) or [Community Slack](https://join.slack.com/t/yosyshq/shared_invite/zt-1aopkns2q-EiQ97BeQDt_pwvE41sGSuA).


If you have found a bug in Yosys, or in building the documentation,
please fill out the Bug Report issue form, this form is for problems
with the live documentation on [Read the
Docs](https://yosyshq.readthedocs.io/projects/yosys/). Please only
report problems that appear on the latest version of the documentation.


Please contact [YosysHQ GmbH](https://www.yosyshq.com/) if you need
commercial support for Yosys.

- type: input
id: docs_url
attributes:
label: Link to page
description: "Please provide a link to the page where the problem was found."
placeholder: "e.g. https://yosyshq.readthedocs.io/projects/yosys/"
validations:
required: true

- type: input
id: build_number
attributes:
label: Build number
description: "If possible, please provide the latest build number from https://readthedocs.org/projects/yosys/builds/."
placeholder: "e.g. Build #24078236"
validations:
required: false

- type: textarea
id: problem
attributes:
label: Issue
description: "Please describe what is incorrect, invalid, or missing."
validations:
required: true

- type: textarea
id: expected
attributes:
label: Expected
description: "If applicable, please describe what should appear instead."
validations:
required: false
5 changes: 5 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
_What are the reasons/motivation for this change?_

_Explain how this is achieved._

_If applicable, please suggest to reviewers how they can test the change._
34 changes: 34 additions & 0 deletions .github/actions/setup-build-env/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build environment setup
description: Configure build env for Yosys builds
runs:
using: composite
steps:
- name: Install Linux Dependencies
if: runner.os == 'Linux'
shell: bash
run: |
sudo apt-get update
sudo apt-get install gperf build-essential bison flex libreadline-dev gawk tcl-dev libffi-dev git graphviz xdot pkg-config python3 libboost-system-dev libboost-python-dev libboost-filesystem-dev zlib1g-dev

- name: Install macOS Dependencies
if: runner.os == 'macOS'
shell: bash
run: |
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install bison flex gawk libffi pkg-config bash autoconf llvm

- name: Linux runtime environment
if: runner.os == 'Linux'
shell: bash
run: |
echo "${{ github.workspace }}/.local/bin" >> $GITHUB_PATH
echo "procs=$(nproc)" >> $GITHUB_ENV

- name: macOS runtime environment
if: runner.os == 'macOS'
shell: bash
run: |
echo "${{ github.workspace }}/.local/bin" >> $GITHUB_PATH
echo "$(brew --prefix llvm)/bin" >> $GITHUB_PATH
echo "$(brew --prefix bison)/bin" >> $GITHUB_PATH
echo "$(brew --prefix flex)/bin" >> $GITHUB_PATH
echo "procs=$(sysctl -n hw.ncpu)" >> $GITHUB_ENV
3 changes: 2 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:

- name: Checkout repository
uses: actions/checkout@v4

with:
submodules: true
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/emcc.yml

This file was deleted.

101 changes: 101 additions & 0 deletions .github/workflows/extra-builds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: Test extra build flows

on: [push, pull_request]

jobs:
pre_job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
paths_ignore: '["**/README.md", "docs/**", "guidelines/**"]'
# cancel previous builds if a new commit is pushed
cancel_others: 'true'
# only run on push *or* pull_request, not both
concurrent_skipping: 'same_content_newer'

vs-prep:
name: Prepare Visual Studio build
runs-on: ubuntu-latest
needs: [pre_job]
if: needs.pre_job.outputs.should_skip != 'true'
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: make vcxsrc YOSYS_VER=latest
- uses: actions/upload-artifact@v4
with:
name: vcxsrc
path: yosys-win32-vcxsrc-latest.zip

vs-build:
name: Visual Studio build
runs-on: windows-2019
needs: [vs-prep, pre_job]
if: needs.pre_job.outputs.should_skip != 'true'
steps:
- uses: actions/download-artifact@v4
with:
name: vcxsrc
path: .
- name: unzip
run: unzip yosys-win32-vcxsrc-latest.zip
- name: setup-msbuild
uses: microsoft/setup-msbuild@v2
- name: MSBuild
working-directory: yosys-win32-vcxsrc-latest
run: msbuild YosysVS.sln /p:PlatformToolset=v142 /p:Configuration=Release /p:WindowsTargetPlatformVersion=10.0.17763.0

wasi-build:
name: WASI build
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: |
WASI_SDK=wasi-sdk-19.0
WASI_SDK_URL=https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-19/wasi-sdk-19.0-linux.tar.gz
if ! [ -d ${WASI_SDK} ]; then curl -L ${WASI_SDK_URL} | tar xzf -; fi

mkdir -p build
cat > build/Makefile.conf <<END
export PATH := $(pwd)/${WASI_SDK}/bin:${PATH}
WASI_SYSROOT := $(pwd)/${WASI_SDK}/share/wasi-sysroot

CONFIG := wasi
PREFIX := /

ENABLE_TCL := 0
ENABLE_READLINE := 0
ENABLE_PLUGINS := 0
ENABLE_ZLIB := 0
END

make -C build -f ../Makefile CXX=clang -j$(nproc)

nix-build:
name: "Build nix flake"
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: cachix/install-nix-action@v26
with:
install_url: https://releases.nixos.org/nix/nix-2.18.1/install
- run: nix build .?submodules=1 -L
Loading