lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 1 | // Copyright lowRISC contributors. |
| 2 | // Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| 3 | // SPDX-License-Identifier: Apache-2.0 |
| 4 | |
Shailendra Kushwah | 5d862e1 | 2019-09-05 11:42:25 -0700 | [diff] [blame] | 5 | class ${name}_common_vseq extends ${name}_base_vseq; |
| 6 | `uvm_object_utils(${name}_common_vseq) |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 7 | |
| 8 | constraint num_trans_c { |
| 9 | num_trans inside {[1:2]}; |
| 10 | } |
| 11 | `uvm_object_new |
| 12 | |
| 13 | virtual task body(); |
Udi Jonnalagadda | 4eb39e6 | 2020-03-16 17:15:27 -0700 | [diff] [blame] | 14 | % if is_cip: |
Shailendra Kushwah | 5d862e1 | 2019-09-05 11:42:25 -0700 | [diff] [blame] | 15 | run_common_vseq_wrapper(num_trans); |
Udi Jonnalagadda | 4eb39e6 | 2020-03-16 17:15:27 -0700 | [diff] [blame] | 16 | % elif has_ral: |
| 17 | run_csr_vseq_wrapper(num_trans); |
| 18 | % endif |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 19 | endtask : body |
| 20 | |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 21 | endclass |