aboutsummaryrefslogtreecommitdiff
path: root/chisel_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'chisel_utils.py')
-rw-r--r--chisel_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/chisel_utils.py b/chisel_utils.py
index 0943584..9916b76 100644
--- a/chisel_utils.py
+++ b/chisel_utils.py
@@ -10,7 +10,7 @@ pp = pprint.PrettyPrinter(indent=2)
logging.basicConfig(level=logging.INFO, format="%(levelname)s:: %(message)s")
-def make_chisel(instr_dict, spinal_hdl=False):
+def make_chisel(instr_dict: InstrDict, spinal_hdl: bool = False):
chisel_names = ""
cause_names_str = ""
@@ -31,7 +31,7 @@ def make_chisel(instr_dict, spinal_hdl=False):
elif "rv_" in e:
e_format = e.replace("rv_", "").upper()
else:
- e_format = e.upper
+ e_format = e.upper()
chisel_names += f' val {e_format+"Type"} = Map(\n'
for instr in e_instrs:
tmp_instr_name = '"' + instr.upper().replace(".", "_") + '"'