aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBabu P S <babu.ps@incoresemi.com>2023-01-04 11:03:17 +0530
committerBabu P S <babu.ps@incoresemi.com>2023-01-04 11:03:17 +0530
commit9aac4c83f9a4455cbf35bba6cd9136cf22948dc3 (patch)
tree690eccc7ae00721e1f84e3043893a1c18a04f955
parent115e4237407e8c02b945dfb12c086ee57200dd55 (diff)
downloadriscv-opcodes-9aac4c83f9a4455cbf35bba6cd9136cf22948dc3.zip
riscv-opcodes-9aac4c83f9a4455cbf35bba6cd9136cf22948dc3.tar.gz
riscv-opcodes-9aac4c83f9a4455cbf35bba6cd9136cf22948dc3.tar.bz2
Update README
-rw-r--r--README.md2
-rwxr-xr-xparse.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 5d346f6..d41015a 100644
--- a/README.md
+++ b/README.md
@@ -77,7 +77,7 @@ Instruction syntaxes used in this project are broadly categorized into three:
instruction, as this avoids existence of overlapping opcodes for users who are
experimenting with unratified extensions as well.
-- **imported_instructions** - these are instructions which are borrowed from an extension into a new/different extension/sub-extension. Only regular instructions can be imported. Pseudo-op instructions cannot be imported. Example:
+- **imported_instructions** - these are instructions which are borrowed from an extension into a new/different extension/sub-extension. Only regular instructions can be imported. Pseudo-op or already imported instructions cannot be imported. Example:
```
$import rv32_zkne::aes32esmi
```
diff --git a/parse.py b/parse.py
index 8e51e0c..d49eea4 100755
--- a/parse.py
+++ b/parse.py
@@ -357,14 +357,14 @@ def create_inst_dict(file_filter, include_pseudo=False, include_pseudo_ops=[]):
# extension. Else throw error.
found = False
for oline in open(ext_file):
- if not re.findall(f'^\s*{reg_instr}',oline):
+ if not re.findall(f'^\s*{reg_instr}\s+',oline):
continue
else:
found = True
break
if not found:
logging.error(f'imported instruction {reg_instr} not found in {ext_file}. Required by {line} present in {f}')
- logging.error(f'Note: you cannot import pseudo ops.')
+ logging.error(f'Note: you cannot import pseudo/imported ops.')
raise SystemExit(1)
# call process_enc_line to get the data about the current