Skip to content

Commit

Permalink
rebased with master
Browse files Browse the repository at this point in the history
  • Loading branch information
sharif committed Dec 18, 2020
2 parents 6bcd413 + 049bed4 commit 77cbab0
Show file tree
Hide file tree
Showing 257 changed files with 36,875 additions and 29,006 deletions.
107 changes: 107 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
name: CI

on: [push, pull_request]

env:
BUILD_TYPE: Release

jobs:
build:
strategy:
matrix:
config:
- {name: "Linux", os: ubuntu-latest, cmakegen: "", jit: "clang+llvm-7.0.0-x86_64-linux-gnu-ubuntu-16.04", jit-ext: ".tar.xz", tc: "riscv64-unknown-elf-gcc-8.3.0-2020.04.0-x86_64-linux-ubuntu14", tc-ext: ".tar.gz", unpack: "tar xf"}
- {name: "Windows", os: windows-latest, cmakegen: "-G \"MinGW Makefiles\"", jit: "LLVM-7.0.0-win64", jit-ext: ".exe", tc: "riscv64-unknown-elf-gcc-8.3.0-2020.04.0-x86_64-w64-mingw32", tc-ext: ".zip", unpack: "unzip"}
- {name: "Mac", os: macOS-latest, cmakegen: "", jit: "clang+llvm-7.0.0-x86_64-apple-darwin", jit-ext: ".tar.xz", tc: "riscv64-unknown-elf-gcc-8.3.0-2020.04.0-x86_64-apple-darwin", tc-ext: ".tar.gz", unpack: "tar xf"}

runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.name }}

steps:
- uses: actions/checkout@v2

- name: Requirements (Linux)
if: matrix.config.name == 'Linux'
run: |
sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-program-options-dev
- name: Requirements (Windows)
if: matrix.config.name == 'Windows'
shell: bash
run: |
choco install boost-msvc-14.1 --version=1.67.0
choco install wget unzip
choco install llvm --version=7.0.0
- name: Requirements (Mac)
if: matrix.config.name == 'Mac'
run: |
brew install boost coreutils
- name: Requirements (Linux/Mac)
if: matrix.config.name == 'Linux' || matrix.config.name == 'Mac'
working-directory: ${{runner.workspace}}
shell: bash
run: |
wget https://releases.llvm.org/7.0.0/${{ matrix.config.jit }}${{ matrix.config.jit-ext }}
${{ matrix.config.unpack }} ${{ matrix.config.jit }}${{ matrix.config.jit-ext }}
mv ${{ matrix.config.jit }} llvm-lib
- name: Requirements
shell: bash
working-directory: ${{runner.workspace}}
run: |
wget https://static.dev.sifive.com/dev-tools/${{ matrix.config.tc }}${{ matrix.config.tc-ext }}
${{ matrix.config.unpack }} ${{ matrix.config.tc }}${{ matrix.config.tc-ext }}
mv ${{ matrix.config.tc }} riscv-tc
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
export LLVM_DIR=${{runner.workspace}}/llvm-lib
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=../install
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --config $BUILD_TYPE

- name: Install
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --config $BUILD_TYPE --target install

- name: Setup tests
working-directory: ${{runner.workspace}}/install/examples
run: |
cmake -E make_directory ${{runner.workspace}}/install/examples/SW/riscv/build
cd SW/riscv/build
cmake .. -DRISCV_ELF_GCC_PREFIX=../../../../../riscv-tc -DRISCV_ELF_GCC_BASENAME=riscv64-unknown-elf
cmake --build . --config $BUILD_TYPE
cd -
cmake -E make_directory ${{runner.workspace}}/install/examples/SW/riscv_cpp/build
cd SW/riscv_cpp/build
cmake .. -DRISCV_ELF_GCC_PREFIX=../../../../../riscv-tc -DRISCV_ELF_GCC_BASENAME=riscv64-unknown-elf
cmake --build . --config $BUILD_TYPE
cd -
cd bare_etiss_processor
cmake -E make_directory ${{runner.workspace}}/install/examples/bare_etiss_processor/build
cd build
cmake ..
cmake --build . --config $BUILD_TYPE
- name: Test (Linux/Mac)
working-directory: ${{runner.workspace}}/install/examples/bare_etiss_processor
if: matrix.config.name == 'Linux' || matrix.config.name == 'Mac'
shell: bash
run: |
./run_helper.sh ../SW/riscv/build/riscv_example
./run_helper.sh ../SW/riscv/build/riscv_example gcc
./run_helper.sh ../SW/riscv/build/riscv_example llvm
./run_helper.sh ../SW/riscv_cpp/build/riscv_example
./run_helper.sh ../SW/riscv_cpp/build/riscv_example gcc
./run_helper.sh ../SW/riscv_cpp/build/riscv_example llvm
83 changes: 0 additions & 83 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion ArchImpl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Copyright 2018 Infineon Technologies AG
#
# This file is part of ETISS tool, see <https://gitlab.lrz.de/de-tum-ei-eda-open/etiss>
# This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>
#
# The initial version of this software has been created with the funding support by the German Federal
# Ministry of Education and Research(BMBF) in the project EffektiV under grant 01IS13022.
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/OR1K/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Copyright 2018 Infineon Technologies AG
#
# This file is part of ETISS tool, see <https://gitlab.lrz.de/de-tum-ei-eda-open/etiss>
# This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>
#
# The initial version of this software has been created with the funding support by the German Federal
# Ministry of Education and Research(BMBF) in the project EffektiV under grant 01IS13022.
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/OR1K/OR1200Timing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Copyright 2018 Infineon Technologies AG
This file is part of ETISS tool, see <https://gitlab.lrz.de/de-tum-ei-eda-open/etiss>.
This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>.
The initial version of this software has been created with the funding support by the German Federal
Ministry of Education and Research (BMBF) in the project EffektiV under grant 01IS13022.
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/OR1K/OR1K.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Copyright 2018 Infineon Technologies AG
This file is part of ETISS tool, see <https://gitlab.lrz.de/de-tum-ei-eda-open/etiss>.
This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>.
The initial version of this software has been created with the funding support by the German Federal
Ministry of Education and Research (BMBF) in the project EffektiV under grant 01IS13022.
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/OR1K/OR1KArch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Copyright 2018 Infineon Technologies AG
This file is part of ETISS tool, see <https://gitlab.lrz.de/de-tum-ei-eda-open/etiss>.
This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>.
The initial version of this software has been created with the funding support by the German Federal
Ministry of Education and Research (BMBF) in the project EffektiV under grant 01IS13022.
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/OR1K/OR1KArch.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Copyright 2018 Infineon Technologies AG
This file is part of ETISS tool, see <https://gitlab.lrz.de/de-tum-ei-eda-open/etiss>.
This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>.
The initial version of this software has been created with the funding support by the German Federal
Ministry of Education and Research (BMBF) in the project EffektiV under grant 01IS13022.
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/OR1K/OR1KArch_fpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Copyright 2018 Infineon Technologies AG
This file is part of ETISS tool, see <https://gitlab.lrz.de/de-tum-ei-eda-open/etiss>.
This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>.
The initial version of this software has been created with the funding support by the German Federal
Ministry of Education and Research (BMBF) in the project EffektiV under grant 01IS13022.
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/OR1K/OR1KCommonLocal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Copyright 2018 Infineon Technologies AG
This file is part of ETISS tool, see <https://gitlab.lrz.de/de-tum-ei-eda-open/etiss>.
This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>.
The initial version of this software has been created with the funding support by the German Federal
Ministry of Education and Research (BMBF) in the project EffektiV under grant 01IS13022.
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/OR1K/OR1KGDBCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Copyright 2018 Infineon Technologies AG
This file is part of ETISS tool, see <https://gitlab.lrz.de/de-tum-ei-eda-open/etiss>.
This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>.
The initial version of this software has been created with the funding support by the German Federal
Ministry of Education and Research (BMBF) in the project EffektiV under grant 01IS13022.
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/OR1K/OR1KGDBCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Copyright 2018 Infineon Technologies AG
This file is part of ETISS tool, see <https://gitlab.lrz.de/de-tum-ei-eda-open/etiss>.
This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>.
The initial version of this software has been created with the funding support by the German Federal
Ministry of Education and Research (BMBF) in the project EffektiV under grant 01IS13022.
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/OR1K/OR1KTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Copyright 2018 Infineon Technologies AG
This file is part of ETISS tool, see <https://gitlab.lrz.de/de-tum-ei-eda-open/etiss>.
This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>.
The initial version of this software has been created with the funding support by the German Federal
Ministry of Education and Research (BMBF) in the project EffektiV under grant 01IS13022.
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/OR1K/OR1KTimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Copyright 2018 Infineon Technologies AG
This file is part of ETISS tool, see <https://gitlab.lrz.de/de-tum-ei-eda-open/etiss>.
This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>.
The initial version of this software has been created with the funding support by the German Federal
Ministry of Education and Research (BMBF) in the project EffektiV under grant 01IS13022.
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/OR1K/OR1K_Helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Copyright 2018 Infineon Technologies AG
This file is part of ETISS tool, see <https://gitlab.lrz.de/de-tum-ei-eda-open/etiss>.
This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>.
The initial version of this software has been created with the funding support by the German Federal
Ministry of Education and Research (BMBF) in the project EffektiV under grant 01IS13022.
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/OR1K/ORBIS32_I.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Copyright 2018 Infineon Technologies AG
This file is part of ETISS tool, see <https://gitlab.lrz.de/de-tum-ei-eda-open/etiss>.
This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>.
The initial version of this software has been created with the funding support by the German Federal
Ministry of Education and Research (BMBF) in the project EffektiV under grant 01IS13022.
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/OR1K/ORBIS32_II.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Copyright 2018 Infineon Technologies AG
This file is part of ETISS tool, see <https://gitlab.lrz.de/de-tum-ei-eda-open/etiss>.
This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>.
The initial version of this software has been created with the funding support by the German Federal
Ministry of Education and Research (BMBF) in the project EffektiV under grant 01IS13022.
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/OR1K/ORFPX32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Copyright 2018 Infineon Technologies AG
This file is part of ETISS tool, see <https://gitlab.lrz.de/de-tum-ei-eda-open/etiss>.
This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>.
The initial version of this software has been created with the funding support by the German Federal
Ministry of Education and Research (BMBF) in the project EffektiV under grant 01IS13022.
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/RISCV/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Copyright 2018 Chair of Electronic Design Automation, TUM
#
# This file is part of ETISS tool, see <https://gitlab.lrz.de/de-tum-ei-eda-open/etiss>
# This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>
#
# The initial version of this software has been created with the funding support by the German Federal
# Ministry of Education and Research(BMBF) in the project EffektiV under grant 01IS13022.
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/RISCV/Encoding.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Copyright 2018 Chair of Electronic Design Automation, TUM
This file is part of ETISS tool, see <https://gitlab.lrz.de/de-tum-ei-eda-open/etiss>.
This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>.
The initial version of this software has been created with the funding support by the German Federal
Ministry of Education and Research (BMBF) in the project EffektiV under grant 01IS13022.
Expand Down
Loading

0 comments on commit 77cbab0

Please sign in to comment.