Skip to content

Commit aa17192

Browse files
committed
Squashed 'yosys/' content from commit b96eb888c
git-subtree-dir: yosys git-subtree-split: b96eb888cc7518c20532ff688ec24b8b51f88f8e
0 parents  commit aa17192

File tree

1,945 files changed

+318711
-0
lines changed

Some content is hidden

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

1,945 files changed

+318711
-0
lines changed

.clang-format

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Default Linux style
2+
BasedOnStyle: LLVM
3+
IndentWidth: 8
4+
UseTab: Always
5+
BreakBeforeBraces: Linux
6+
AllowShortIfStatementsOnASingleLine: false
7+
IndentCaseLabels: false
8+
9+
# From guidelines/CodingStyle
10+
TabWidth: 8
11+
ContinuationIndentWidth: 2
12+
ColumnLimit: 150
13+
# BreakBeforeBraces: Linux

.dockerignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.editorconfig
2+
.gitignore
3+
.gitmodules
4+
.github
5+
.git
6+
Dockerfile
7+
README.md
8+
manual
9+
guidelines
10+
CodeOfConduct
11+
.travis
12+
.travis.yml

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = tab
5+
indent_size = tab
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
9+
[abc/**]
10+
indent_style = space
11+
indent_size = 2
12+
trim_trailing_whitespace = false

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.v linguist-language=Verilog

.github/issue_template.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## Steps to reproduce the issue
2+
3+
*Provide instructions for reproducing the issue. Make sure to include
4+
all necessary source files. (You can simply drag&drop a .zip file into
5+
the issue editor.)*
6+
7+
Also, make sure that the issue is actually reproducable in current git
8+
master of Yosys.
9+
10+
See https://stackoverflow.com/help/mcve for some information on how to
11+
create a Minimal, Complete, and Verifiable example (MCVE).
12+
13+
Please do not waste our time with issues that lack sufficient information
14+
to reproduce the issue easily. We will simply close those issues.
15+
16+
Contact https://www.yosyshq.com/ if you need commercial support for Yosys.
17+
18+
## Expected behavior
19+
20+
*Please describe the behavior you would have expected from the tool.*
21+
22+
## Actual behavior
23+
24+
*Please describe how the behavior you see differs from the expected behavior.*

.github/workflows/test.yml

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: Build and run tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
strategy:
8+
matrix:
9+
include:
10+
- runner: ubuntu-20.04
11+
config: clang
12+
cc: clang
13+
- runner: ubuntu-20.04
14+
config: gcc
15+
cc: gcc
16+
- runner: ubuntu-18.04
17+
config: gcc
18+
cc: gcc-4.8
19+
- runner: ubuntu-18.04
20+
config: clang
21+
cc: clang-3.9
22+
- runner: macOS-10.15
23+
config: clang
24+
cc: clang
25+
runs-on: ${{ matrix.runner }}
26+
steps:
27+
28+
- uses: actions/checkout@v2
29+
30+
- name: Install dependencies (Linux)
31+
if: runner.os == 'Linux'
32+
run: |
33+
sudo apt-get update
34+
sudo apt-get install g++ gperf build-essential bison flex libreadline-dev gawk tcl-dev libffi-dev git graphviz xdot pkg-config python python3 libboost-system-dev libboost-python-dev libboost-filesystem-dev zlib1g-dev
35+
36+
- name: Install gcc-4.8
37+
if: matrix.cc == 'gcc-4.8'
38+
run: |
39+
sudo apt-get install g++-4.8
40+
41+
- name: Install clang-3.9
42+
if: matrix.cc == 'clang-3.9'
43+
run: |
44+
sudo apt-get install clang-3.9
45+
46+
- name: Install dependencies (macOS)
47+
if: runner.os == 'macOS'
48+
run: |
49+
brew install bison gawk libffi pkg-config bash
50+
51+
- name: Setup environment (Linux)
52+
if: runner.os == 'Linux'
53+
run: |
54+
echo "procs=$(nproc)" >> $GITHUB_ENV
55+
56+
- name: Setup environment (macOS)
57+
if: runner.os == 'macOS'
58+
run: |
59+
echo "$(brew --prefix bison)/bin" >> $GITHUB_PATH
60+
echo "procs=$(sysctl -n hw.ncpu)" >> $GITHUB_ENV
61+
62+
- name: Get iverilog
63+
run: |
64+
git clone git://github.com/steveicarus/iverilog.git
65+
66+
- name: Cache iverilog
67+
id: cache-iverilog
68+
uses: actions/cache@v2
69+
with:
70+
path: iverilog-bin
71+
key: ${{ matrix.runner }}-${{ hashFiles('iverilog/.git/refs/heads/master') }}
72+
73+
- name: Build iverilog
74+
if: steps.cache-iverilog.outputs.cache-hit != 'true'
75+
run: |
76+
mkdir iverilog-bin
77+
cd iverilog
78+
autoconf
79+
CC=gcc CXX=g++ ./configure --prefix=$PWD/../iverilog-bin
80+
make -j${{ env.procs }}
81+
make install
82+
83+
- name: Build yosys
84+
run: |
85+
${{ matrix.cc }} --version
86+
make config-${{ matrix.config }}
87+
make -j${{ env.procs }} CC=${{ matrix.cc }} CXX=${{ matrix.cc }} LD=${{ matrix.cc }}
88+
89+
- name: Run tests
90+
run: |
91+
PATH=$PWD/iverilog-bin/bin:$PATH make -j${{ env.procs }} test CC=${{ matrix.cc }} CXX=${{ matrix.cc }} LD=${{ matrix.cc }}

.github/workflows/version.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Bump version
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * *'
7+
8+
jobs:
9+
bump-version:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- name: Take last commit
17+
id: log
18+
run: echo "::set-output name=message::$(git log --no-merges -1 --oneline)"
19+
- name: Take repository
20+
id: repo
21+
run: echo "::set-output name=message::$GITHUB_REPOSITORY"
22+
- name: Bump version
23+
if: "!contains(steps.log.outputs.message, 'Bump version') && contains(steps.repo.outputs.message, 'YosysHQ/yosys')"
24+
run: |
25+
make bumpversion
26+
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
27+
git config --local user.name "github-actions[bot]"
28+
git add Makefile
29+
git commit -m "Bump version"
30+
- name: Push changes # push the output folder to your repo
31+
if: "!contains(steps.log.outputs.message, 'Bump version') && contains(steps.repo.outputs.message, 'YosysHQ/yosys')"
32+
uses: ad-m/github-push-action@master
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/vs.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Visual Studio Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
yosys-vcxsrc:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Cache sources
11+
id: cache-sources
12+
uses: actions/cache@v2
13+
with:
14+
path: .
15+
key: cache-yosys
16+
- name: Build
17+
run: make vcxsrc YOSYS_VER=latest
18+
- uses: actions/upload-artifact@v2
19+
with:
20+
name: vcxsrc
21+
path: yosys-win32-vcxsrc-latest.zip
22+
23+
build:
24+
runs-on: windows-latest
25+
needs: yosys-vcxsrc
26+
steps:
27+
- uses: actions/download-artifact@v2
28+
with:
29+
name: vcxsrc
30+
path: .
31+
- name: unzip
32+
run: unzip yosys-win32-vcxsrc-latest.zip
33+
- name: setup-msbuild
34+
uses: microsoft/setup-msbuild@v1
35+
- name: MSBuild
36+
working-directory: yosys-win32-vcxsrc-latest
37+
run: msbuild YosysVS.sln /p:PlatformToolset=v142 /p:Configuration=Release /p:WindowsTargetPlatformVersion=10.0.17763.0

.gitignore

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
*.o
2+
*.d
3+
.*.swp
4+
*.gch
5+
*.gcda
6+
*.gcno
7+
__pycache__
8+
/.cproject
9+
/.project
10+
/.settings
11+
/qtcreator.files
12+
/qtcreator.includes
13+
/qtcreator.config
14+
/qtcreator.creator
15+
/qtcreator.creator.user
16+
/coverage.info
17+
/coverage_html
18+
/Makefile.conf
19+
/abc
20+
/viz.js
21+
/yosys
22+
/yosys.exe
23+
/yosys.js
24+
/yosys.wasm
25+
/yosys-abc
26+
/yosys-abc.exe
27+
/yosys-config
28+
/yosys-smtbmc
29+
/yosys-smtbmc.exe
30+
/yosys-smtbmc-script.py
31+
/yosys-filterlib
32+
/yosys-filterlib.exe
33+
/kernel/*.pyh
34+
/kernel/python_wrappers.cc
35+
/kernel/version_*.cc
36+
/share
37+
/yosys-win32-mxebin-*
38+
/yosys-win32-vcxsrc-*
39+
/yosysjs-*
40+
/libyosys.so
41+
/tests/unit/bintest/
42+
/tests/unit/objtest/
43+
/tests/ystests

.mailmap

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Marcelina Kościelnicka <[email protected]>
2+
Marcelina Kościelnicka <[email protected]> <[email protected]>
3+
Marcelina Kościelnicka <[email protected]> <[email protected]>
4+
5+
6+
7+

Brewfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
brew "bison"
2+
brew "flex"
3+
brew "gawk"
4+
brew "libffi"
5+
brew "git"
6+
brew "graphviz"
7+
brew "pkg-config"
8+
brew "python3"
9+
brew "tcl-tk"
10+
brew "xdot"
11+
brew "bash"
12+
brew 'boost-python3'

0 commit comments

Comments
 (0)