blob: bbdce09f88f0ded6ae7507cdbe31980d426e2cb0 [file] [log] [blame]
lowRISC Contributors802543a2019-08-31 12:12:56 +01001// Copyright lowRISC contributors.
2// Licensed under the Apache License, Version 2.0, see LICENSE for details.
3// SPDX-License-Identifier: Apache-2.0
4
5class ${name}_csr_vseq extends ${name}_base_vseq;
6 `uvm_object_utils(${name}_csr_vseq)
7
8 constraint num_trans_c {
9 num_trans inside {[1:2]};
10 }
11 `uvm_object_new
12
13 virtual task body();
14 run_csr_vseq_wrapper(num_trans);
15 endtask : body
16
17 // function to add csr exclusions of the given type using the csr_excl_item item
18 virtual function void add_csr_exclusions(string csr_test_type,
19 csr_excl_item csr_excl,
20 string scope = "ral");
21
22 // write exclusions - these should not apply to hw_reset test
23 if (csr_test_type != "hw_reset") begin
24 // TODO: below is a sample
25 // status reads back unexpected values due to writes to other csrs
26 // csr_excl.add_excl({scope, ".", "status"}, CsrExclWriteCheck);
27 end
28 endfunction
29
30endclass