Skip to content
Snippets Groups Projects
Commit b8d6490b authored by dwf1m12's avatar dwf1m12
Browse files

Prepare to merge the AES128 integration and PL230 DMA driver support with main

parents 2915e169 3b65f6f3
No related branches found
No related tags found
No related merge requests found
...@@ -24,47 +24,51 @@ stages: # List of stages for jobs, and their order of execution ...@@ -24,47 +24,51 @@ stages: # List of stages for jobs, and their order of execution
build-job: # This job runs in the build stage, which runs first. build-job: # This job runs in the build stage, which runs first.
stage: build stage: build
script: script:
- source /tools/Xilinx/Vivado/2021.2/.settings64-Vivado.sh - source /tools/Xilinx/Vivado/2021.1/.settings64-Vivado.sh
- cd ./Cortex-M0/nanosoc/systems/mcu/fpga_imp/ - cp -r /home/gitlab-runner/arm-AAA-ip ../arm-AAA-ip
# - source ./build_fpga_pynq_z2.scr - cd ../arm-AAA-ip/Corstone-101_Foundation_IP/
# - FILE = ./ ./pynq_export/pz2/pynq/overlays/soclabs/design_1.bit - tar -xf BP210-r1p1-00rel0.tar.gz
# - if test -f "$FILE"; then - cd ../Cortex-M0/
# - echo "Build successful" - tar -xf AT510-r0p0-03rel2.tar.gz
# - else - cd ../DMA-230_MicroDMA_Controller/
# - echo "Build failed" - tar -xf PL230-r0p0-02rel2-1.tar.gz
# - fi - cd ../../nanosoc/Cortex-M0/nanosoc/systems/mcu/fpga_imp/
- ls ../../../../../../arm-AAA-ip/ - if source ./build_fpga_pynq_z2.scr; then
- ls ../../../../../../arm-AAA-ip/Cortex-M0/ - FILE = ./pynq_export/pz2/pynq/overlays/soclabs/design_1.bit
- ls ../../../../../../arm-AAA-ip/Cortex-M0/AT510-BU-50000-r0p0-03rel2/ - if test -f "$FILE"; then
- ls ../../../../../../arm-AAA-ip/Cortex-M0/AT510-BU-50000-r0p0-03rel2/logical - echo "Build successful"
- ls ../../../../../../arm-AAA-ip/Cortex-M0/AT510-BU-50000-r0p0-03rel2/logical/cortexm0_integration/ - else
- ls ../../../../../../arm-AAA-ip/Cortex-M0/AT510-BU-50000-r0p0-03rel2/logical/cortexm0_integration/verilog/ - echo "Build failed"
- fi
- fi
- cd ../../../../../../
- rm -r arm-AAA-ip
tags: tags:
- FPGA - Vivado2021.1
unit-test-job: # This job runs in the test stage. #unit-test-job: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully. # stage: test # It only starts when the job in the build stage completes successfully.
script: # script:
- echo "Running unit tests... This will take about 60 seconds." # - echo "Running unit tests... This will take about 60 seconds."
- sleep 60 # - sleep 60
- echo "Code coverage is 90%" # - echo "Code coverage is 90%"
tags: # tags:
- FPGA # - FPGA
lint-test-job: # This job also runs in the test stage. #lint-test-job: # This job also runs in the test stage.
stage: test # It can run at the same time as unit-test-job (in parallel). # stage: test # It can run at the same time as unit-test-job (in parallel).
script: # script:
- echo "Linting code... This will take about 10 seconds." # - echo "Linting code... This will take about 10 seconds."
- sleep 10 # - sleep 10
- echo "No lint issues found." # - echo "No lint issues found."
tags: # tags:
- FPGA # - FPGA
deploy-job: # This job runs in the deploy stage. #deploy-job: # This job runs in the deploy stage.
stage: deploy # It only runs when *both* jobs in the test stage complete successfully. # stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
environment: production # environment: production
script: # script:
- echo "Deploying application..." # - echo "Deploying application..."
- echo "Application successfully deployed." # - echo "Application successfully deployed."
tags: # tags:
- FPGA # - FPGA
\ No newline at end of file \ No newline at end of file
#-----------------------------------------------------------------------------
# SoC Labs Environment Setup Script
# A joint work commissioned on behalf of SoC Labs, under Arm Academic Access license.
#
# Contributors
#
# David Mapstone (d.a.mapstone@soton.ac.uk)
#
# Copyright 2023, SoC Labs (www.soclabs.org)
#-----------------------------------------------------------------------------
#!/bin/bash
# Get Root Location of Design Structure
if [ -z $DESIGN_ROOT ]; then
# If $DESIGN_ROOT hasn't been set yet
DESIGN_ROOT=`git rev-parse --show-superproject-working-tree`
if [ -z $DESIGN_ROOT ]; then
# If not in a submodule - at root
DESIGN_ROOT=`git rev-parse --show-toplevel`
fi
# Source Top-Level Sourceme
source $DESIGN_ROOT/set_env.sh
else
# Set Environment Variable for this Repository
export NANOSOC_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
# If this Repo is root of workspace
if [ $NANOSOC_DIR = $DESIGN_ROOT ]; then
echo "Design Workspace: $DESIGN_ROOT"
export DESIGN_ROOT
# Set Default Simulator
export SIMULATOR="ivlog"
fi
# Source environment variables for all submodules
for d in $NANOSOC_DIR/* ; do
if [ -f "$d/.git" ]; then
if [ -f "$d/set_env.sh" ]; then
# If .git file exists - submodule
source $d/set_env.sh
fi
fi
done
# Add Scripts to Path
export PATH="$PATH:/$NANOSOC_DIR/flow"
fi
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment