restore build.yml

This commit is contained in:
kkumar23 2021-09-07 04:38:30 -07:00
parent 30feb78469
commit 29287cca20
8 changed files with 44 additions and 16 deletions

View File

@ -157,12 +157,12 @@ jobs:
openfpga/openfpga openfpga/openfpga
vpr/libvpr.a vpr/libvpr.a
vpr/vpr vpr/vpr
yosys/share/ yosys/install/share/
yosys/yosys yosys/install/bin/yosys
yosys/yosys-abc yosys/install/bin/yosys-abc
yosys/yosys-config yosys/install/bin/yosys-config
yosys/yosys-filterlib yosys/install/bin/yosys-filterlib
yosys/yosys-smtbmc yosys/install/bin/yosys-smtbmc
openfpga_flow openfpga_flow
openfpga.sh openfpga.sh
docker_distribution: docker_distribution:
@ -227,11 +227,11 @@ jobs:
chmod +x ace2/ace chmod +x ace2/ace
chmod +x openfpga/openfpga chmod +x openfpga/openfpga
chmod +x vpr/vpr chmod +x vpr/vpr
chmod +x yosys/yosys chmod +x yosys/install/bin/yosys
chmod +x yosys/yosys-abc chmod +x yosys/install/bin/yosys-abc
chmod +x yosys/yosys-config chmod +x yosys/install/bin/yosys-config
chmod +x yosys/yosys-filterlib chmod +x yosys/install/bin/yosys-filterlib
chmod +x yosys/yosys-smtbmc chmod +x yosys/install/bin/yosys-smtbmc
- name: ${{matrix.config.name}}_GCC-8_(Ubuntu 18.04) - name: ${{matrix.config.name}}_GCC-8_(Ubuntu 18.04)
shell: bash shell: bash
run: source openfpga.sh && source openfpga_flow/regression_test_scripts/${{matrix.config.name}}.sh run: source openfpga.sh && source openfpga_flow/regression_test_scripts/${{matrix.config.name}}.sh

6
.gitmodules vendored
View File

@ -1,4 +1,6 @@
[submodule "yosys"] [submodule "yosys"]
path = yosys path = yosys
url = https://github.com/QuickLogic-Corp/yosys.git url = https://github.com/symbiflow/yosys
branch = quicklogic-rebased [submodule "yosys-symbiflow-plugins"]
path = yosys-symbiflow-plugins
url = https://github.com/SymbiFlow/yosys-symbiflow-plugins

View File

@ -230,14 +230,29 @@ include(CheckCXXCompilerFlag)
# run makefile provided, we pass-on the options to the local make file # run makefile provided, we pass-on the options to the local make file
add_custom_target( add_custom_target(
yosys ALL yosys ALL
COMMAND rm -rf ${CMAKE_CURRENT_SOURCE_DIR}/yosys/install
COMMAND $(MAKE) config-gcc COMMAND $(MAKE) config-gcc
COMMAND $(MAKE) COMMAND $(MAKE) install PREFIX=${CMAKE_CURRENT_SOURCE_DIR}/yosys/install
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/yosys WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/yosys
COMMENT "Compile Yosys with given Makefile" COMMENT "Compile Yosys with given Makefile"
) )
# yosys compilation ends # yosys compilation ends
# yosys-plugins compilation starts
add_custom_target(
yosys-plugins ALL
COMMAND $(MAKE)
COMMAND $(MAKE) install
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/yosys-plugins
COMMENT "Compile Yosys-plugins with given Makefile"
)
add_dependencies(yosys-plugins yosys)
# yosys-plugins compilation ends
# run make to extract compiler options, linker options and list of source files # run make to extract compiler options, linker options and list of source files
#add_custom_target( #add_custom_target(
# yosys # yosys

View File

@ -1,4 +1,5 @@
# Getting Started with OpenFPGA <img src="./docs/source/overview/figures/OpenFPGA_logo.png" width="200" align="right"> #
Getting Started with OpenFPGA <img src="./docs/source/overview/figures/OpenFPGA_logo.png" width="200" align="right">
[![linux build](https://github.com/LNIS-Projects/OpenFPGA/workflows/linux_build/badge.svg)](https://github.com/LNIS-Projects/OpenFPGA/actions?query=workflow%3Alinux_build) [![linux build](https://github.com/LNIS-Projects/OpenFPGA/workflows/linux_build/badge.svg)](https://github.com/LNIS-Projects/OpenFPGA/actions?query=workflow%3Alinux_build)
[![Documentation Status](https://readthedocs.org/projects/openfpga/badge/?version=master)](https://openfpga.readthedocs.io/en/master/?badge=master) [![Documentation Status](https://readthedocs.org/projects/openfpga/badge/?version=master)](https://openfpga.readthedocs.io/en/master/?badge=master)
@ -25,6 +26,7 @@ It also includes detailed information about docker image.
```bash ```bash
# Clone the repository and go inside it # Clone the repository and go inside it
git clone https://github.com/LNIS-Projects/OpenFPGA.git && cd OpenFPGA git clone https://github.com/LNIS-Projects/OpenFPGA.git && cd OpenFPGA
source openfpga.sh
make all make all
``` ```

View File

@ -16,6 +16,12 @@ export OPENFPGA_SCRIPT_PATH="${OPENFPGA_PATH}/openfpga_flow/scripts"
export OPENFPGA_TASK_PATH="${OPENFPGA_PATH}/openfpga_flow/tasks" export OPENFPGA_TASK_PATH="${OPENFPGA_PATH}/openfpga_flow/tasks"
if [ -z $PYTHON_EXEC ]; then export PYTHON_EXEC="python3"; fi if [ -z $PYTHON_EXEC ]; then export PYTHON_EXEC="python3"; fi
# Add yosys bin folder in PATH, this is required by yosys-plugins
# to install plugins in yosys folder
export PATH="${OPENFPGA_PATH}/yosys/install/bin:${PATH}"
# This function checks the path and # This function checks the path and
# raises warning if the command is not executing # raises warning if the command is not executing
# inside current OpendFPGA folder # inside current OpendFPGA folder

View File

@ -1,4 +1,6 @@
# Yosys synthesis script for ${TOP_MODULE} # Yosys synthesis script for ${TOP_MODULE}
plugin -i ql-qlf
# Read verilog files # Read verilog files
${READ_VERILOG_FILE} ${READ_VERILOG_FILE}

2
yosys

@ -1 +1 @@
Subproject commit f44a4f90867b49837da048f9055fdcd8a13c335b Subproject commit b7d46be40d538f66309fc1d53a618a7fdfcdb8c8

@ -0,0 +1 @@
Subproject commit 9fad20e359c678ebc4674e0442afd5f7b1a4fe19