This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* port to Chisel 3.6 * use circt to generate Verilog * use correct firtool version * Tile.sv * update sbt version * ci: modernize
- Loading branch information
Showing
16 changed files
with
86 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,47 +7,39 @@ jobs: | |
name: Scala Unit Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Install Tabby OSS Cad Suite (from YosysHQ) | ||
uses: YosysHQ/setup-oss-cad-suite@v1 | ||
uses: ./.github/workflows/setup-oss-cad-suite | ||
with: | ||
osscadsuite-version: '2022-02-02' | ||
- name: Setup Scala | ||
uses: olafurpg/setup-scala@v11 | ||
with: | ||
java-version: [email protected] | ||
- name: Scala Unit Tests | ||
run: sbt "testOnly -- -l IntegrationTest" | ||
|
||
integration-tests: | ||
name: Scala Integration Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Install Tabby OSS Cad Suite (from YosysHQ) | ||
uses: YosysHQ/setup-oss-cad-suite@v1 | ||
uses: ./.github/workflows/setup-oss-cad-suite | ||
with: | ||
osscadsuite-version: '2022-02-02' | ||
- name: Setup Scala | ||
uses: olafurpg/setup-scala@v11 | ||
with: | ||
java-version: [email protected] | ||
- name: Scala Integration Tests | ||
run: sbt "testOnly -- -n IntegrationTest" | ||
|
||
make-integration-tests: | ||
name: Makefile based Integration Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Install Tabby OSS Cad Suite (from YosysHQ) | ||
uses: YosysHQ/setup-oss-cad-suite@v1 | ||
uses: ./.github/workflows/setup-oss-cad-suite | ||
with: | ||
osscadsuite-version: '2022-02-02' | ||
- name: Setup Scala | ||
uses: olafurpg/setup-scala@v11 | ||
- name: Install CIRCT | ||
uses: ./.github/workflows/install-circt | ||
with: | ||
java-version: [email protected] | ||
version: 'firtool-1.37.0' | ||
- name: Makefile Integration Tests | ||
run: make run-tests | ||
|
||
|
@@ -56,9 +48,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Scala | ||
uses: olafurpg/setup-scala@v10 | ||
uses: actions/checkout@v3 | ||
- name: Documentation | ||
id: doc | ||
run: sbt doc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Install CIRCT | ||
|
||
inputs: | ||
version: | ||
description: 'version to install' | ||
required: false | ||
default: 'firtool-1.43.0' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- id: cache-circt | ||
uses: actions/cache@v3 | ||
with: | ||
path: circt | ||
key: circt-${{ runner.os }}-${{ inputs.version }} | ||
|
||
- shell: bash | ||
if: steps.cache-circt.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir circt | ||
wget -q -O - https://github.com/llvm/circt/releases/download/${{ inputs.version }}/firrtl-bin-ubuntu-20.04.tar.gz | tar -zx -C circt/ --strip-components 1 | ||
- shell: bash | ||
run: echo "$(pwd)/circt/bin" >> $GITHUB_PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Setup OSS CAD Suite | ||
|
||
inputs: | ||
osscadsuite-version: | ||
description: 'version to install' | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- id: cache-oss-cad-suite | ||
uses: actions/cache@v3 | ||
with: | ||
path: oss-cad-suite | ||
key: oss-cad-suite-${{ runner.os }}-${{ inputs.osscadsuite-version }} | ||
|
||
- shell: bash | ||
if: steps.cache-oss-cad-suite.outputs.cache-hit != 'true' | ||
run: | | ||
VERSION=${{ inputs.osscadsuite-version }} | ||
ARTIFACT=oss-cad-suite-linux-x64-$(echo $VERSION | tr -d '-') | ||
wget -q -O - https://github.com/YosysHQ/oss-cad-suite-build/releases/download/${VERSION}/${ARTIFACT}.tgz | tar -zx | ||
# Add the CAD Suite to the PATH | ||
- shell: bash | ||
run: echo "$(pwd)/oss-cad-suite/bin" >> $GITHUB_PATH | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=1.5.5 | ||
sbt.version=1.8.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters