aboutsummaryrefslogtreecommitdiff
path: root/sverilog_utils.py
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2024-10-31 12:52:33 -0700
committerGitHub <noreply@github.com>2024-10-31 12:52:33 -0700
commit699eb166dfbe3d96951d20f531b0ebbce49c0459 (patch)
treed14a4037534bcba684a97c8d8987415fcc0fb0d3 /sverilog_utils.py
parentf73c2a41c868c4f90446396b116f29078fcf3f17 (diff)
parent284a5fa0f79ae5415d6ab2009193d3bead64d2aa (diff)
downloadriscv-opcodes-699eb166dfbe3d96951d20f531b0ebbce49c0459.zip
riscv-opcodes-699eb166dfbe3d96951d20f531b0ebbce49c0459.tar.gz
riscv-opcodes-699eb166dfbe3d96951d20f531b0ebbce49c0459.tar.bz2
Merge pull request #293 from Timmmm/user/timh/types
Add static type hints
Diffstat (limited to 'sverilog_utils.py')
-rw-r--r--sverilog_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sverilog_utils.py b/sverilog_utils.py
index ff116cc..a3b7571 100644
--- a/sverilog_utils.py
+++ b/sverilog_utils.py
@@ -7,7 +7,7 @@ pp = pprint.PrettyPrinter(indent=2)
logging.basicConfig(level=logging.INFO, format="%(levelname)s:: %(message)s")
-def make_sverilog(instr_dict):
+def make_sverilog(instr_dict: InstrDict):
names_str = ""
for i in instr_dict:
names_str += f" localparam [31:0] {i.upper().replace('.','_'):<18s} = 32'b{instr_dict[i]['encoding'].replace('-','?')};\n"