Skip to content

Commit a4db7a6

Browse files
committed
[CTG] Fix util funciton typo
1 parent 6056226 commit a4db7a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

riscv-ctg/riscv_ctg/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,22 @@ def gen_format_data():
3333
Format:
3434
- ISA
3535
- Mnemonics
36-
'''
37-
op_template = load_yaml(const.template_file)
36+
'''
37+
op_template = load_yamls(const.template_files)
3838

3939
# Initialize nested dictionary
4040
def nested_dict():
4141
return defaultdict(nested_dict)
4242
format_dict = nested_dict()
43-
43+
4444
for mnemonic, data in op_template.items():
4545
if mnemonic not in ['metadata']:
4646
format_type = data['formattype']
4747
isa = data['isa']
4848

4949
for each in isa:
5050
format_dict[format_type][each][mnemonic] = None
51-
51+
5252
return format_dict
5353

5454
def get_instr_list():

0 commit comments

Comments
 (0)