Merge branch '36-run-simulation-as-part-of-ci' into 'master'
Resolve "Run simulation as part of ci" Closes #36 See merge request bslathi19/super6502!31
This commit is contained in:
@@ -22,6 +22,7 @@ variables:
|
|||||||
stages: # List of stages for jobs, and their order of execution
|
stages: # List of stages for jobs, and their order of execution
|
||||||
- toolchain
|
- toolchain
|
||||||
- build
|
- build
|
||||||
|
- simulate
|
||||||
|
|
||||||
build toolchain:
|
build toolchain:
|
||||||
tags:
|
tags:
|
||||||
@@ -51,6 +52,10 @@ build sim:
|
|||||||
- iverilog
|
- iverilog
|
||||||
- linux
|
- linux
|
||||||
stage: build
|
stage: build
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- hw/efinix_fpga/simulation/sim_top
|
||||||
|
- hw/efinix_fpga/simulation/init_hex.mem
|
||||||
script:
|
script:
|
||||||
- source init_env.sh
|
- source init_env.sh
|
||||||
- cd hw/efinix_fpga/simulation
|
- cd hw/efinix_fpga/simulation
|
||||||
@@ -79,3 +84,15 @@ build kernel:
|
|||||||
- make kernel
|
- make kernel
|
||||||
dependencies:
|
dependencies:
|
||||||
- build toolchain
|
- build toolchain
|
||||||
|
|
||||||
|
run sim:
|
||||||
|
tags:
|
||||||
|
- linux
|
||||||
|
- iverilog
|
||||||
|
stage: simulate
|
||||||
|
script:
|
||||||
|
- source init_env.sh
|
||||||
|
- cd hw/efinix_fpga/simulation
|
||||||
|
- vvp sim_top
|
||||||
|
dependencies:
|
||||||
|
- build sim
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
# ENV=".env/$HOSTNAME"
|
# ENV=".env/$HOSTNAME"
|
||||||
|
|
||||||
|
export REPO_TOP=$(git rev-parse --show-toplevel)
|
||||||
|
|
||||||
# if [ ! -d "$ENV" ]; then
|
# if [ ! -d "$ENV" ]; then
|
||||||
# mkdir -p "$ENV"
|
# mkdir -p "$ENV"
|
||||||
# fi
|
# fi
|
||||||
@@ -19,8 +21,11 @@
|
|||||||
# source "$ENV/efinity/2023.1/bin/setup.sh"
|
# source "$ENV/efinity/2023.1/bin/setup.sh"
|
||||||
# export PATH=$PATH:"$EFXPT_HOME/bin"
|
# export PATH=$PATH:"$EFXPT_HOME/bin"
|
||||||
|
|
||||||
source $EFX_SETUP
|
if [ -n "$EFX_SETUP" ]; then
|
||||||
export REPO_TOP=$(git rev-parse --show-toplevel)
|
source $EFX_SETUP
|
||||||
|
else
|
||||||
|
echo "EFX_SETUP not defined!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# python -m venv .user_venv --system-site-packages
|
# python -m venv .user_venv --system-site-packages
|
||||||
|
|||||||
Reference in New Issue
Block a user