Skip to content

Commit

Permalink
Add kokoro setup for quicklogic
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
  • Loading branch information
rw1nkler committed Nov 6, 2020
1 parent 4a0628a commit 9a90d28
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/kokoro/continuous-ql.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Generated from .github/kokoro/kokoro-cfg.py
# To regenerate run:
# cd .github/kokoro/ && python3 kokoro-cfg.py

build_file: "symbiflow-arch-defs-continuous-ql/.github/kokoro/ql.sh"

timeout_mins: 4320

action {
define_artifacts {
# File types
regex: "**/*result*.xml"
regex: "**/*sponge_log.xml"
regex: "**/.ninja_log"
regex: "**/pack.log"
regex: "**/place.log"
regex: "**/route.log"
regex: "**/*_sv2v.v.log"
regex: "**/*_qor.csv"
strip_prefix: "github/symbiflow-arch-defs-continuous-ql/"
}
}

env_vars {
key: "KOKORO_TYPE"
value: "continuous"
}

env_vars {
key: "KOKORO_DIR"
value: "symbiflow-arch-defs-continuous-ql"
}

env_vars {
key: "SYMBIFLOW_ARCH"
value: "ql"
}
39 changes: 39 additions & 0 deletions .github/kokoro/presubmit-ql.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Generated from .github/kokoro/kokoro-cfg.py
# To regenerate run:
# cd .github/kokoro/ && python3 kokoro-cfg.py

build_file: "symbiflow-arch-defs-presubmit-ql/.github/kokoro/ql.sh"

timeout_mins: 4320

action {
define_artifacts {
# File types
regex: "**/*result*.xml"
regex: "**/*sponge_log.xml"
regex: "**/.ninja_log"
regex: "**/pack.log"
regex: "**/place.log"
regex: "**/route.log"
regex: "**/*_sv2v.v.log"
regex: "**/*_qor.csv"
strip_prefix: "github/symbiflow-arch-defs-presubmit-ql/"
}
}

env_vars {
key: "KOKORO_TYPE"
value: "presubmit"
}

env_vars {
key: "KOKORO_DIR"
value: "symbiflow-arch-defs-presubmit-ql"
}

env_vars {
key: "SYMBIFLOW_ARCH"
value: "ql"
}
35 changes: 35 additions & 0 deletions .github/kokoro/ql.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash

SCRIPT_SRC="$(realpath ${BASH_SOURCE[0]})"
SCRIPT_DIR="$(dirname "${SCRIPT_SRC}")"

export CMAKE_FLAGS=-GNinja
export BUILD_TOOL=ninja
source ${SCRIPT_DIR}/common.sh

echo
echo "========================================"
echo "Running ql tests (make all_ql_tests)"
echo "----------------------------------------"
(
source env/conda/bin/activate symbiflow_arch_def_base

#FIXME: Integrate the following custom packages with SymbiFlow
conda uninstall symbiflow-yosys -y
pip3 uninstall v2x -y

# Custom Yosys + the latest SymbiFlow Yosys Plugins
conda install quicklogic-yosys -c litex-hub -y
conda install --no-deps symbiflow-yosys-plugins=1.0.0.7_0174_g5e6370a=20201012_171341 -y

# Custom v2x
pip3 install git+https://github.com/QuickLogic-Corp/python-symbiflow-v2x@b0c8679c1fc9c90ca1555aab055b25a4a7d83fb6

cd build
export VPR_NUM_WORKERS=${CORES}
ninja -j${MAX_CORES} all_ql_tests
ninja print_qor > ql_qor.csv
)
echo "----------------------------------------"

source ${SCRIPT_DIR}/package_results.sh

0 comments on commit 9a90d28

Please sign in to comment.