Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
CAOS_HW
HDL_IP
SafeSU
Commits
a383924a
Commit
a383924a
authored
Oct 28, 2021
by
Guillem Cabo
Browse files
Merge branch 'pv/ft/questa' into 'develop'
Pv/ft/questa See merge request
!10
parents
f6cacf52
3f9dbba5
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
a383924a
# =======
SAME
DOCKER IMAGE ===========
# =======
Default
DOCKER IMAGE ===========
image
:
localhost:5000/spyglass_centos8:latest
# =========== ALL THE STAGES ===========
# All the stages will be executed in this order
stages
:
-
linting
-
simulation
variables
:
GIT_SUBMODULE_STRATEGY
:
recursive
...
...
@@ -16,14 +17,23 @@ before_script:
# - linting
# =============================
linting_spyglass
:
image
:
localhost:5000/spyglass_centos8:latest
stage
:
linting
artifacts
:
paths
:
#TODO:add spyglass log
-
./artifact_linting_verilator_BSC.log
when
:
always
expire_in
:
30 days
tags
:
-
spyglass
script
:
-
echo "lint_spyglass"
-
make "docker_spyglass"
# This is a fake call inside the Makefile, just and example
-
make "docker_spyglass"
allow_failure
:
false
# =========== STAGE ===========
# - simulation
# =============================
questa
:
image
:
localhost:5000/questa_ubuntu:latest
stage
:
simulation
tags
:
-
questa
script
:
-
echo "Running Questa TB"
-
make "questa_tests"
allow_failure
:
false
Makefile
View file @
a383924a
...
...
@@ -6,3 +6,7 @@ user_linting:
docker_spyglass
:
cd
ci/
&&
bash lint_CI.sh
exit
0
# Runs a list of self checking questasim TB
questa_tests
:
cd
ci/
&&
bash questa.sh
exit
0
ci/questa.sh
View file @
a383924a
...
...
@@ -10,14 +10,13 @@ LOCAL_LOG=.lquesta.log
rm
-f
$LOG
# Go to target folder
cd
../tb/questa_sim/
cd
../tb/questa_sim/
||
exit
1
# Declare folders of tests to be executed
declare
-a
StringArray
=(
"tb_axi_pmu/"
"tb_com_tr/"
"tb_hamming16td11/"
"tb_hamming32td26/"
"tb_pmu_ahb/"
"tb_pmu_raw/"
"tb_reg_sbf/"
"tb_MCCU"
"tb_crossbar"
)
declare
-a
StringArray
=(
"tb_axi_pmu/"
"tb_pmu_ahb/"
"tb_pmu_raw/"
)
# Iterate the string array using for loop
for
val
in
${
StringArray
[@]
}
;
do
cd
$val
cd
$val
||
exit
1
rm
-f
$LOCAL_LOG
echo
$val
>>
$LOCAL_LOG
./runtest.sh
-batch
|
grep
-i
-e
info
-e
warning
-e
error
>>
$LOCAL_LOG
...
...
tb/questa_sim/tb_pmu_ahb/tb_pmu_ahb.sv
View file @
a383924a
...
...
@@ -57,7 +57,9 @@ reg tb_fail = 0;
.
haddr
(
32'h80100000
),
.
hmask
(
32'hfff
),
.
REG_WIDTH
(
32
),
.
N_REGS
(
47
)
.
N_REGS
(
TB_TOTAL_NREGS
),
.
MCCU_N_CORES
(
4
),
.
N_SOC_EV
(
TB_N_SOC_EV
)
)
dut_pmu_ahb
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment