Skip to content

Commit 075f513

Browse files
committed
[chip, gpio, dv] Added gpio_base_vseq
Signed-off-by: Kinza Qamar <kqzaman@lowrisc.org>
1 parent 801ec58 commit 075f513

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Copyright lowRISC contributors (COSMIC project).
2+
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
3+
// SPDX-License-Identifier: Apache-2.0
4+
5+
class top_chip_dv_gpio_base_vseq extends top_chip_dv_base_vseq;
6+
`uvm_object_utils(top_chip_dv_gpio_base_vseq)
7+
8+
// Standard SV/UVM methods
9+
extern function new(string name="");
10+
extern task body();
11+
endclass : top_chip_dv_gpio_base_vseq
12+
13+
function top_chip_dv_gpio_base_vseq::new (string name = "");
14+
super.new(name);
15+
endfunction : new
16+
17+
task top_chip_dv_gpio_base_vseq::body();
18+
super.body();
19+
`DV_WAIT(cfg.sw_test_status_vif.sw_test_status == SwTestStatusInTest);
20+
// TODO
21+
endtask : body

hw/top_chip/dv/env/seq_lib/top_chip_dv_vseq_list.sv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44

55
`include "top_chip_dv_base_vseq.sv"
66
`include "top_chip_dv_uart_base_vseq.sv"
7+
`include "top_chip_dv_gpio_base_vseq.sv"

hw/top_chip/dv/env/top_chip_dv_env.core

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ filesets:
2323
- seq_lib/top_chip_dv_vseq_list.sv: {is_include_file: true}
2424
- seq_lib/top_chip_dv_base_vseq.sv: {is_include_file: true}
2525
- seq_lib/top_chip_dv_uart_base_vseq.sv: {is_include_file: true}
26+
- seq_lib/top_chip_dv_gpio_base_vseq.sv: {is_include_file: true}
2627
file_type: systemVerilogSource
2728

2829
targets:

hw/top_chip/dv/top_chip_sim_cfg.hjson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
}
131131
{
132132
name: gpio_smoke
133-
uvm_test_seq: top_chip_dv_gpio_vseq
133+
uvm_test_seq: top_chip_dv_gpio_base_vseq
134134
sw_images: ["gpio_smoketest_vanilla_bare:5"]
135135
run_opts: ["+ChipMemSRAM_image_file={run_dir}/gpio_smoketest_vanilla_bare.vmem"]
136136
}

0 commit comments

Comments
 (0)