-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
684254e
commit 3cc91f6
Showing
12 changed files
with
67 additions
and
133 deletions.
There are no files selected for viewing
Empty file.
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,18 @@ | ||
name: vunit | ||
run-name: ${{ github.actor }} is testing out GitHub Actions | ||
on: | ||
[push] | ||
jobs: | ||
Run-sim: | ||
runs-on: self-hosted | ||
steps: | ||
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- name: Update pip reqs | ||
run : python3 -m pip install --upgrade -r tools/requirements.txt --break-system-packages | ||
- name: Run VUnit tests | ||
run: buck2 bxl //tools/vunit-sims.bxl:vunit_sim_gen | while IFS= read -r line; do eval "$line" ; done | ||
|
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 was deleted.
Oops, something went wrong.
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
65 changes: 0 additions & 65 deletions
65
hdl/ip/vhd/vunit_components/qspi_controller/sims/qspi_vc_tb.vhd
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
hdl/ip/vhd/vunit_components/qspi_controller/sims/qspi_vc_th.vhd
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
# | ||
# Copyright 2024 Oxide Computer Company | ||
|
||
# This function queries the build graph and targets that are | ||
# simulation targets and runs them | ||
def vunit_sim(ctx): | ||
# start with all the buck2 targets from the root | ||
target_universe = ctx.target_universe("//...").target_set() | ||
# Get the deps | ||
targets = ctx.cquery().deps(target_universe) | ||
# Filter for vhdl files in the project | ||
vhdl_files = ctx.cquery().kind("vhdl.*", targets) | ||
sims = ctx.cquery().attrfilter("is_tb", "True", vhdl_files) | ||
sims = sorted(sims, key=lambda x: x.attrs_eager().standard.value()) | ||
# Eagerly analyze targets | ||
results = ctx.analysis(sims) | ||
for lbl,result in results.items(): | ||
ctx.output.print("buck2 run " + str(lbl.raw_target()) + " -- --clean -x " + lbl.name + ".xml") | ||
|
||
|
||
vunit_sim_gen = bxl_main( | ||
impl = vunit_sim, | ||
cli_args = { | ||
# cli args that you want to receive from the command line | ||
}, | ||
) |