From 394a1bfc1b1ca6051c714eaaeddcb9e74b5d3838 Mon Sep 17 00:00:00 2001 From: Coralie Allioux Date: Thu, 15 Feb 2024 15:12:10 +0100 Subject: [PATCH] Update usage of riscv_instr_gen_tb_top as in other cores: adapt it in corev-dv to import cva6-dependent packages --- verif/env/corev-dv/cva6-files.f | 2 +- verif/env/corev-dv/cva6_instr_gen_tb_top.sv | 31 +++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 verif/env/corev-dv/cva6_instr_gen_tb_top.sv diff --git a/verif/env/corev-dv/cva6-files.f b/verif/env/corev-dv/cva6-files.f index 1d5ab3986a..cc65523547 100644 --- a/verif/env/corev-dv/cva6-files.f +++ b/verif/env/corev-dv/cva6-files.f @@ -22,4 +22,4 @@ ${RISCV_DV_ROOT}/test/riscv_instr_test_pkg.sv ${CVA6_DV_ROOT}/cva6_signature_pkg.sv ${CVA6_DV_ROOT}/cva6_instr_test_pkg.sv -${RISCV_DV_ROOT}/test/riscv_instr_gen_tb_top.sv +${CVA6_DV_ROOT}/cva6_instr_gen_tb_top.sv diff --git a/verif/env/corev-dv/cva6_instr_gen_tb_top.sv b/verif/env/corev-dv/cva6_instr_gen_tb_top.sv new file mode 100644 index 0000000000..fd16e8c0b7 --- /dev/null +++ b/verif/env/corev-dv/cva6_instr_gen_tb_top.sv @@ -0,0 +1,31 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +//----------------------------------------------------------------------------- +// Copy/Modify version of riscv-dv/tests/riscv_instr_gen_tb_top.sv to add the +// corev specific tests. +//----------------------------------------------------------------------------- +module cva6_instr_gen_tb_top; + + import uvm_pkg::*; + import riscv_instr_test_pkg::*; + import cva6_instr_test_pkg::*; + + initial begin + run_test(); + end + +endmodule