Skip to content

Commit 1c9f129

Browse files
committed
tests re-arranged
1 parent 6fa3a7b commit 1c9f129

File tree

28 files changed

+42
-18
lines changed

28 files changed

+42
-18
lines changed

.github/scripts/run-vtr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export VTR_DIR=$(pwd)
99
source $SCRIPT_DIR/hostsetup.sh
1010

1111
if ! { [ $VTR_TEST == "vtr_reg_strong" ] || [ $VTR_TEST == "odin_reg_strong" ] \
12-
|| [ $VTR_TEST == "vtr_reg_parmys" ]; }; then
12+
|| [ $VTR_TEST == "parmys_reg_basic" ]; }; then
1313
source $SCRIPT_DIR/vtr-full-setup.sh
1414
fi
1515

.github/workflows/test.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- {test: "vtr_reg_strong", cores: "16", options: "", cmake: "-DVTR_ASSERT_LEVEL=3", extra_pkgs: "libeigen3-dev"}
4040
- {test: "vtr_reg_strong_odin", cores: "16", options: "", cmake: "-DVTR_ASSERT_LEVEL=3 -DWITH_ODIN=ON", extra_pkgs: "libeigen3-dev"}
4141
- {test: "vtr_reg_strong_odin", cores: "16", options: "-skip_qor", cmake: "-DVTR_ASSERT_LEVEL=3 -DVTR_ENABLE_SANITIZE=ON -DWITH_ODIN=ON", extra_pkgs: "libeigen3-dev"}
42-
- {test: "vtr_reg_parmys", cores: "16", options: "", cmake: "-DYOSYS_SV_UHDM_PLUGIN=ON", extra_pkgs: ""}
42+
- {test: "vtr_reg_system_verilog", cores: "16", options: "", cmake: "-DYOSYS_F4PGA_PLUGINS=ON", extra_pkgs: ""}
4343
- {test: "odin_reg_strong", cores: "16", options: "", cmake: "-DWITH_ODIN=ON", extra_pkgs: ""}
4444

4545
env:
@@ -286,6 +286,29 @@ jobs:
286286
./run_reg_test.py ${{ matrix.suite }} -show_failures -j2 -skip_qor
287287
288288
289+
Parmys:
290+
name: 'Parmys Basic Test'
291+
runs-on: ubuntu-18.04
292+
steps:
293+
294+
- uses: actions/setup-python@v4
295+
with:
296+
python-version: 3.6
297+
- uses: actions/checkout@v3
298+
- run: ./.github/scripts/install_dependencies.sh
299+
300+
- uses: hendrikmuhs/ccache-action@v1.2
301+
302+
- name: Test
303+
env:
304+
CMAKE_PARAMS: '-DVTR_IPO_BUILD=off'
305+
BUILD_TYPE: debug
306+
run: |
307+
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
308+
./.github/scripts/build.sh
309+
./run_reg_test.py parmys_reg_basic -show_failures -j4
310+
311+
289312
ODINII:
290313
name: 'ODIN-II Basic Test'
291314
runs-on: ubuntu-18.04
@@ -374,6 +397,7 @@ jobs:
374397
- Warnings
375398
- Regression
376399
- Sanitized
400+
- Parmys
377401
- ODINII
378402
- VQM2BLIF
379403
- Compatibility

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ option(ODIN_SANITIZE "Enable building odin with sanitize flags" OFF)
5555

5656
# Allow the user to enable building Yosys
5757
option(WITH_PARMYS "Enable Yosys as elaborator and parmys-plugin as partial mapper" ON)
58-
option(YOSYS_SV_UHDM_PLUGIN "Enable building and installing Yosys SystemVerilog and UHDM plugins" OFF)
58+
option(YOSYS_F4PGA_PLUGINS "Enable building and installing Yosys SystemVerilog and UHDM plugins" OFF)
5959

6060
set(VTR_VERSION_MAJOR 8)
6161
set(VTR_VERSION_MINOR 1)
@@ -432,7 +432,7 @@ if(${WITH_ODIN})
432432
endif()
433433

434434
# handle cmake params to compile Yosys SystemVerilog/UHDM plugins
435-
if(${YOSYS_SV_UHDM_PLUGIN})
435+
if(${YOSYS_F4PGA_PLUGINS})
436436
# avoid compiling plugins in case the Parmys frontend is not active
437437
if(NOT ${WITH_PARMYS})
438438
message(SEND_ERROR "Utilizing SystemVerilog/UHDM plugins requires activating Parmys frontend. Please set WITH_PARMYS.")

README.developers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ remote repository, or a PR is created, the [Test Workflow](https://github.com/ve
309309
will be triggered. The following tests are included in the workflow:
310310
* [vtr_reg_nightly_test1-3](#vtr_reg_nightly_test1-3)
311311
* [vtr_reg_strong](#vtr_reg_strong)
312-
* vtr_reg_parmys
312+
* parmys_reg_basic
313313
* odin_reg_strong
314314

315315
instructions on how to gather QoR results of CI runs can be found [here](#example-extracting-qor-data-from-ci-runs).

doc/src/parmys/quickstart.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ To build the VTR flow with the Parmys front-end you may use the VTR Makefile wra
3333

3434
.. note::
3535

36-
Compiling the VTR flow with the ``-DYOSYS_SV_UHDM_PLUGIN=ON`` flag is required to build and install Yosys SystemVerilog and UHDM plugins.
36+
Compiling the VTR flow with the ``-DYOSYS_F4PGA_PLUGINS=ON`` flag is required to build and install Yosys SystemVerilog and UHDM plugins.
3737
Using this compile flag, the `Yosys-F4PGA-Plugins <https://github.com/chipsalliance/yosys-f4pga-plugins>`_ and `Surelog <https://github.com/chipsalliance/Surelog>`_ repositories are cloned in the ``$VTR_ROOT/libs/EXTERNAL`` directory and then will be compiled and added as external plugins to the Parmys front-end.
3838

3939
Basic Usage

doc/src/vtr/run_vtr_flow.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ The parser for these runs is considered the Yosys conventional Verilog/SystemVer
8181
8282
Running the default VTR flow using the Parmys standalone front-end.
8383
The Yosys HDL parser is considered as Yosys-SystemVerilog plugin (i.e., ``read_systemverilog``) and Yosys UHDM plugin (i.e., ``read_uhdm``), respectively.
84-
Utilizing Yosys plugins requires passing the ``-DYOSYS_SV_UHDM_PLUGIN=ON`` compile flag to build and install the plugins for the Parmys front-end.
84+
Utilizing Yosys plugins requires passing the ``-DYOSYS_F4PGA_PLUGINS=ON`` compile flag to build and install the plugins for the Parmys front-end.
8585

8686
.. code-block:: bash
8787

libs/EXTERNAL/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ endif ()
2020
# The VTR root CMakeFile initializes the WITH_PARMYS
2121
if (${WITH_PARMYS})
2222
# building Surelog and UHDM in a custom target to avoid any target conflict with VTR targets
23-
if (${YOSYS_SV_UHDM_PLUGIN})
23+
if (${YOSYS_F4PGA_PLUGINS})
2424
set(SURELOG_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Surelog)
2525
set(SURELOG_BINARY_DIR ${SURELOG_SOURCE_DIR}/build)
2626
set(YOSYS_F4PGA_PLUGINS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/yosys-f4pga-plugins)
@@ -76,7 +76,7 @@ if (${WITH_PARMYS})
7676
UHDM_INSTALL_DIR=${CMAKE_BINARY_DIR}
7777
BUILD_DIR=${CMAKE_CURRENT_BINARY_DIR}/f4pga-plugins/$(NAME) # NAME will be resolved by yosys-f4pga-plugins Make
7878
YOSYS_PATH=${CMAKE_BINARY_DIR}
79-
PLUGIN_LIST=systemverilog #fasm xdc params sdc ql-iob design_introspection integrateinv ql-qlf systemverilog uhdm dsp-ff
79+
PLUGIN_LIST=fasm xdc params sdc ql-iob design_introspection integrateinv ql-qlf systemverilog uhdm dsp-ff
8080
install -j${CUSTOM_BUILD_PARALLEL_LEVEL}
8181

8282
# redirect logs to a logfile

vtr_flow/tasks/regression_tests/vtr_reg_parmys/freecores/config/config.txt renamed to vtr_flow/tasks/regression_tests/parmys_reg_basic/freecores/config/config.txt

File renamed without changes.

vtr_flow/tasks/regression_tests/vtr_reg_parmys/freecores/config/golden_results.txt renamed to vtr_flow/tasks/regression_tests/parmys_reg_basic/freecores/config/golden_results.txt

File renamed without changes.

vtr_flow/tasks/regression_tests/vtr_reg_parmys/hdl_include/config/config.txt renamed to vtr_flow/tasks/regression_tests/parmys_reg_basic/hdl_include/config/config.txt

File renamed without changes.

0 commit comments

Comments
 (0)