mirror of
https://github.com/openpower-cores/a2i.git
synced 2026-01-13 15:27:21 +00:00
commit
a74e4a50fe
23
.github/workflows/vunit_tests.yml
vendored
23
.github/workflows/vunit_tests.yml
vendored
@ -1,13 +1,18 @@
|
||||
name: VUnit Tests
|
||||
on: [push, pull_request]
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '0 0 * * 5'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
||||
Test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: srt32/git-actions@v0.0.3
|
||||
with:
|
||||
args: git update-index --chmod=+x run.py
|
||||
- uses: VUnit/vunit_action@master
|
||||
with:
|
||||
cmd: python3 ./run.py
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: VUnit/vunit_action@master
|
||||
|
||||
15
run.py
Normal file → Executable file
15
run.py
Normal file → Executable file
@ -5,20 +5,17 @@
|
||||
from pathlib import Path
|
||||
from vunit import VUnit
|
||||
|
||||
prj = VUnit.from_argv()
|
||||
|
||||
_rel = Path(__file__).parent / "rel"
|
||||
|
||||
library_names = ["support", "ibm", "clib", "tri"]
|
||||
for library_name in library_names:
|
||||
prj.add_library(library_name).add_source_files(
|
||||
_rel / f"src/vhdl/{library_name}/*.vhdl"
|
||||
)
|
||||
prj = VUnit.from_argv()
|
||||
|
||||
for libName in ["support", "ibm", "clib", "tri"]:
|
||||
prj.add_library(libName).add_source_files(_rel / "src" / "vhdl" / f"{libName}" / "*.vhdl")
|
||||
|
||||
# VUnit doesn't accept libraries named work. These files are compiled to the top library
|
||||
prj.add_library("top").add_source_files(_rel / "src/vhdl/work/*.vhdl")
|
||||
prj.add_library("top").add_source_files(_rel / "src" / "vhdl" / "work" / "*.vhdl")
|
||||
|
||||
# Simulation only library containing VHDL mocks for Verilog UNIMACROs
|
||||
prj.add_library("unimacro").add_source_files(_rel / "sim/unimacro/*.vhdl")
|
||||
prj.add_library("unimacro").add_source_files(_rel / "sim" / "unimacro" / "*.vhdl")
|
||||
|
||||
prj.main()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user