Skip to content

Commit ed9c4c8

Browse files
committed
yosys update v42 + f4pga test off
1 parent 9066d61 commit ed9c4c8

File tree

750 files changed

+58819
-15167
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

750 files changed

+58819
-15167
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- {test: "vtr_reg_strong_odin", cores: "16", options: "-skip_qor", cmake: "-DVTR_ASSERT_LEVEL=3 -DVTR_ENABLE_SANITIZE=ON -DWITH_ODIN=ON", extra_pkgs: "libeigen3-dev"}
6767
#- {test: "vtr_reg_system_verilog", cores: "16", options: "", cmake: "-DYOSYS_F4PGA_PLUGINS=ON", extra_pkgs: ""}
6868
- {test: "odin_reg_strong", cores: "16", options: "", cmake: "-DWITH_ODIN=ON", extra_pkgs: ""}
69-
- {test: "parmys_reg_strong", cores: "16", options: "", cmake: "-DYOSYS_F4PGA_PLUGINS=OFF", extra_pkgs: ""}
69+
#- {test: "parmys_reg_strong", cores: "16", options: "", cmake: "-DYOSYS_F4PGA_PLUGINS=ON", extra_pkgs: ""}
7070

7171
env:
7272
DEBIAN_FRONTEND: "noninteractive"

yosys/.gitcommit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
$Format:%h$
1+
dac5bd1983a

yosys/.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ body:
3434
- macOS
3535
- Windows
3636
- BSD
37+
- WebAssembly
3738
multiple: true
3839
validations:
3940
required: true
@@ -42,7 +43,7 @@ body:
4243
attributes:
4344
value: >
4445
When providing steps to reproduce the issue, please ensure that the issue
45-
is reproducible in the current git master of Yosys. Also ensure to
46+
is reproducible in the current git main of Yosys. Also ensure to
4647
provide all necessary source files needed.
4748
4849
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Documentation Report
2+
description: Report a problem with the Yosys documentation
3+
labels: ["pending-verification"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: >
8+
9+
If you have a general question, please ask it in the [Discussions](https://github.com/YosysHQ/yosys/discussions) area
10+
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).
11+
12+
13+
If you have found a bug in Yosys, or in building the documentation,
14+
please fill out the Bug Report issue form, this form is for problems
15+
with the live documentation on [Read the
16+
Docs](https://yosyshq.readthedocs.io/projects/yosys/). Please only
17+
report problems that appear on the latest version of the documentation.
18+
19+
20+
Please contact [YosysHQ GmbH](https://www.yosyshq.com/) if you need
21+
commercial support for Yosys.
22+
23+
- type: input
24+
id: docs_url
25+
attributes:
26+
label: Link to page
27+
description: "Please provide a link to the page where the problem was found."
28+
placeholder: "e.g. https://yosyshq.readthedocs.io/projects/yosys/"
29+
validations:
30+
required: true
31+
32+
- type: input
33+
id: build_number
34+
attributes:
35+
label: Build number
36+
description: "If possible, please provide the latest build number from https://readthedocs.org/projects/yosys/builds/."
37+
placeholder: "e.g. Build #24078236"
38+
validations:
39+
required: false
40+
41+
- type: textarea
42+
id: problem
43+
attributes:
44+
label: Issue
45+
description: "Please describe what is incorrect, invalid, or missing."
46+
validations:
47+
required: true
48+
49+
- type: textarea
50+
id: expected
51+
attributes:
52+
label: Expected
53+
description: "If applicable, please describe what should appear instead."
54+
validations:
55+
required: false
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
_What are the reasons/motivation for this change?_
2+
3+
_Explain how this is achieved._
4+
5+
_If applicable, please suggest to reviewers how they can test the change._
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build environment setup
2+
description: Configure build env for Yosys builds
3+
runs:
4+
using: composite
5+
steps:
6+
- name: Install Linux Dependencies
7+
if: runner.os == 'Linux'
8+
shell: bash
9+
run: |
10+
sudo apt-get update
11+
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
12+
13+
- name: Install macOS Dependencies
14+
if: runner.os == 'macOS'
15+
shell: bash
16+
run: |
17+
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install bison flex gawk libffi pkg-config bash autoconf
18+
19+
- name: Linux runtime environment
20+
if: runner.os == 'Linux'
21+
shell: bash
22+
run: |
23+
echo "${{ github.workspace }}/.local/bin" >> $GITHUB_PATH
24+
echo "procs=$(nproc)" >> $GITHUB_ENV
25+
26+
- name: macOS runtime environment
27+
if: runner.os == 'macOS'
28+
shell: bash
29+
run: |
30+
echo "${{ github.workspace }}/.local/bin" >> $GITHUB_PATH
31+
echo "$(brew --prefix bison)/bin" >> $GITHUB_PATH
32+
echo "$(brew --prefix flex)/bin" >> $GITHUB_PATH
33+
echo "procs=$(sysctl -n hw.ncpu)" >> $GITHUB_ENV

yosys/.github/workflows/codeql.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ jobs:
1414
run: sudo apt-get install bison flex libreadline-dev tcl-dev libffi-dev
1515

1616
- name: Checkout repository
17-
uses: actions/checkout@v3
18-
17+
uses: actions/checkout@v4
18+
with:
19+
submodules: true
1920
- name: Initialize CodeQL
20-
uses: github/codeql-action/init@v2
21+
uses: github/codeql-action/init@v3
2122
with:
2223
languages: cpp
2324
queries: security-extended,security-and-quality
@@ -26,4 +27,4 @@ jobs:
2627
run: make yosys -j6
2728

2829
- name: Perform CodeQL Analysis
29-
uses: github/codeql-action/analyze@v2
30+
uses: github/codeql-action/analyze@v3

yosys/.github/workflows/emcc.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
name: Test extra build flows
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
pre_job:
7+
runs-on: ubuntu-latest
8+
outputs:
9+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
10+
steps:
11+
- id: skip_check
12+
uses: fkirc/skip-duplicate-actions@v5
13+
with:
14+
paths_ignore: '["**/README.md", "docs/**", "guidelines/**"]'
15+
# cancel previous builds if a new commit is pushed
16+
cancel_others: 'true'
17+
# only run on push *or* pull_request, not both
18+
concurrent_skipping: 'same_content_newer'
19+
20+
vs-prep:
21+
name: Prepare Visual Studio build
22+
runs-on: ubuntu-latest
23+
needs: [pre_job]
24+
if: needs.pre_job.outputs.should_skip != 'true'
25+
steps:
26+
- uses: actions/checkout@v4
27+
with:
28+
submodules: true
29+
- name: Build
30+
run: make vcxsrc YOSYS_VER=latest
31+
- uses: actions/upload-artifact@v4
32+
with:
33+
name: vcxsrc
34+
path: yosys-win32-vcxsrc-latest.zip
35+
36+
vs-build:
37+
name: Visual Studio build
38+
runs-on: windows-2019
39+
needs: [vs-prep, pre_job]
40+
if: needs.pre_job.outputs.should_skip != 'true'
41+
steps:
42+
- uses: actions/download-artifact@v4
43+
with:
44+
name: vcxsrc
45+
path: .
46+
- name: unzip
47+
run: unzip yosys-win32-vcxsrc-latest.zip
48+
- name: setup-msbuild
49+
uses: microsoft/setup-msbuild@v2
50+
- name: MSBuild
51+
working-directory: yosys-win32-vcxsrc-latest
52+
run: msbuild YosysVS.sln /p:PlatformToolset=v142 /p:Configuration=Release /p:WindowsTargetPlatformVersion=10.0.17763.0
53+
54+
wasi-build:
55+
name: WASI build
56+
needs: pre_job
57+
if: needs.pre_job.outputs.should_skip != 'true'
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v4
61+
with:
62+
submodules: true
63+
- name: Build
64+
run: |
65+
WASI_SDK=wasi-sdk-19.0
66+
WASI_SDK_URL=https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-19/wasi-sdk-19.0-linux.tar.gz
67+
if ! [ -d ${WASI_SDK} ]; then curl -L ${WASI_SDK_URL} | tar xzf -; fi
68+
69+
mkdir -p build
70+
cat > build/Makefile.conf <<END
71+
export PATH := $(pwd)/${WASI_SDK}/bin:${PATH}
72+
WASI_SYSROOT := $(pwd)/${WASI_SDK}/share/wasi-sysroot
73+
74+
CONFIG := wasi
75+
PREFIX := /
76+
77+
ENABLE_TCL := 0
78+
ENABLE_READLINE := 0
79+
ENABLE_PLUGINS := 0
80+
ENABLE_ZLIB := 0
81+
END
82+
83+
make -C build -f ../Makefile CXX=clang -j$(nproc)
84+
85+
nix-build:
86+
name: "Build nix flake"
87+
needs: pre_job
88+
if: needs.pre_job.outputs.should_skip != 'true'
89+
runs-on: ubuntu-latest
90+
steps:
91+
- uses: actions/checkout@v4
92+
with:
93+
submodules: true
94+
- uses: cachix/install-nix-action@v26
95+
with:
96+
install_url: https://releases.nixos.org/nix/nix-2.18.1/install
97+
- run: nix build .?submodules=1

0 commit comments

Comments
 (0)