Skip to content

Commit 7251f5c

Browse files
committed
[hw,gpio,dv] Fix module_instance_name usages
Signed-off-by: Robert Schilling <[email protected]>
1 parent 7f2e68c commit 7251f5c

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

hw/ip_templates/gpio/dv/env/gpio_env_cfg.sv.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// SPDX-License-Identifier: Apache-2.0
44

55
class ${module_instance_name}_env_cfg extends cip_base_env_cfg #(
6-
.RAL_T(gpio_reg_block)
6+
.RAL_T(${module_instance_name}_reg_block)
77
);
88

99
// flag to indicate if weak pullup has been introduced on gpio

hw/ip_templates/gpio/dv/env/gpio_env_pkg.sv.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ package ${module_instance_name}_env_pkg;
1212
import tl_agent_pkg::*;
1313
import dv_lib_pkg::*;
1414
import cip_base_pkg::*;
15-
import gpio_ral_pkg::*;
15+
import ${module_instance_name}_ral_pkg::*;
1616

1717
// macro includes
1818
`include "uvm_macros.svh"

hw/ip_templates/gpio/dv/env/seq_lib/gpio_filter_stress_vseq.sv.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,4 @@ class ${module_instance_name}_filter_stress_vseq extends ${module_instance_name}
198198
csr_rd_check(.ptr(ral.intr_state), .compare_value(predicted_intr_state));
199199
endtask : read_and_check
200200

201-
endclass : gpio_filter_stress_vseq
201+
endclass : ${module_instance_name}_filter_stress_vseq

hw/ip_templates/gpio/dv/env/seq_lib/gpio_intr_rand_pgm_vseq.sv.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ class ${module_instance_name}_intr_rand_pgm_vseq extends ${module_instance_name}
9292

9393
endtask : body
9494

95-
endclass : gpio_intr_rand_pgm_vseq
95+
endclass : ${module_instance_name}_intr_rand_pgm_vseq

hw/ip_templates/gpio/dv/gpio_sim_cfg.hjson.tpl

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -71,77 +71,77 @@
7171
tests: [
7272
{
7373
name: gpio_smoke
74-
uvm_test_seq: gpio_smoke_vseq
74+
uvm_test_seq: ${module_instance_name}_smoke_vseq
7575
}
7676

7777
{
7878
name: gpio_smoke_no_pullup_pulldown
79-
uvm_test_seq: gpio_smoke_vseq
79+
uvm_test_seq: ${module_instance_name}_smoke_vseq
8080
run_opts: ["+no_pullup_pulldown=1"]
8181
}
8282

8383
% if num_inp_period_counters > 0:
8484
{
8585
name: gpio_inp_prd_cnt
86-
uvm_test_seq: gpio_inp_prd_cnt_vseq
86+
uvm_test_seq: ${module_instance_name}_inp_prd_cnt_vseq
8787
}
8888

8989
% endif
9090
{
9191
name: gpio_random_dout_din
92-
uvm_test_seq: gpio_random_dout_din_vseq
92+
uvm_test_seq: ${module_instance_name}_random_dout_din_vseq
9393
}
9494

9595
{
9696
name: gpio_random_dout_din_no_pullup_pulldown
97-
uvm_test_seq: gpio_random_dout_din_vseq
97+
uvm_test_seq: ${module_instance_name}_random_dout_din_vseq
9898
run_opts: ["+no_pullup_pulldown=1"]
9999
}
100100

101101
{
102102
name: gpio_dout_din_regs_random_rw
103-
uvm_test_seq: gpio_dout_din_regs_random_rw_vseq
103+
uvm_test_seq: ${module_instance_name}_dout_din_regs_random_rw_vseq
104104
}
105105

106106
{
107107
name: gpio_intr_rand_pgm
108-
uvm_test_seq: gpio_intr_rand_pgm_vseq
108+
uvm_test_seq: ${module_instance_name}_intr_rand_pgm_vseq
109109
run_opts: ["+do_clear_all_interrupts=0"]
110110
}
111111

112112
{
113113
name: gpio_rand_intr_trigger
114-
uvm_test_seq: gpio_rand_intr_trigger_vseq
114+
uvm_test_seq: ${module_instance_name}_rand_intr_trigger_vseq
115115
run_opts: ["+do_clear_all_interrupts=0"]
116116
}
117117

118118
{
119119
name: gpio_intr_with_filter_rand_intr_event
120-
uvm_test_seq: gpio_intr_with_filter_rand_intr_event_vseq
120+
uvm_test_seq: ${module_instance_name}_intr_with_filter_rand_intr_event_vseq
121121
run_opts: ["+en_scb=0", "+zero_delays=1", "+do_clear_all_interrupts=0"]
122122
}
123123

124124
{
125125
name: gpio_filter_stress
126-
uvm_test_seq: gpio_filter_stress_vseq
126+
uvm_test_seq: ${module_instance_name}_filter_stress_vseq
127127
run_opts: ["+en_scb=0", "+do_clear_all_interrupts=0"]
128128
}
129129

130130
{
131131
name: gpio_random_long_reg_writes_reg_reads
132-
uvm_test_seq: gpio_random_long_reg_writes_reg_reads_vseq
132+
uvm_test_seq: ${module_instance_name}_random_long_reg_writes_reg_reads_vseq
133133
run_opts: ["+do_clear_all_interrupts=0"]
134134
}
135135

136136
{
137137
name: gpio_full_random
138-
uvm_test_seq: gpio_full_random_vseq
138+
uvm_test_seq: ${module_instance_name}_full_random_vseq
139139
run_opts: ["+do_clear_all_interrupts=0"]
140140
}
141141

142142
{
143143
name: gpio_stress_all
144-
uvm_test_seq: gpio_stress_all_vseq
144+
uvm_test_seq: ${module_instance_name}_stress_all_vseq
145145
run_opts: ["+do_clear_all_interrupts=0"]
146146
}
147147

@@ -178,19 +178,19 @@
178178
// Additional smoke checks for second build mode
179179
{
180180
name: gpio_smoke_en_cdc_prim
181-
uvm_test_seq: gpio_smoke_vseq
181+
uvm_test_seq: ${module_instance_name}_smoke_vseq
182182
build_mode: en_cdc_prims
183183
}
184184

185185
{
186186
name: gpio_smoke_no_pullup_pulldown_en_cdc_prim
187-
uvm_test_seq: gpio_smoke_vseq
187+
uvm_test_seq: ${module_instance_name}_smoke_vseq
188188
build_mode: en_cdc_prims
189189
run_opts: ["+no_pullup_pulldown=1"]
190190
}
191191
{
192192
name: gpio_rand_straps
193-
uvm_test_seq: gpio_rand_straps_vseq
193+
uvm_test_seq: ${module_instance_name}_rand_straps_vseq
194194
}
195195
]
196196

0 commit comments

Comments
 (0)