diff options
author | Andrew Waterman <andrew@sifive.com> | 2024-10-08 04:30:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-08 04:30:35 -0400 |
commit | dcbdd96e74fc2de292aad63a83cf4815ff18cd58 (patch) | |
tree | d45debaaed407c319547bdf66765e0664a8e1d33 | |
parent | 50e29867fd31144e7e7d1efb768671f58e239b85 (diff) | |
parent | 0805c830731eb3a353727f4a3a0fae6ed9eb9703 (diff) | |
download | riscv-opcodes-master.zip riscv-opcodes-master.tar.gz riscv-opcodes-master.tar.bz2 |
Reapply pre-commit autoformat
-rw-r--r-- | constants.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/constants.py b/constants.py index c045f55..cff9c04 100644 --- a/constants.py +++ b/constants.py @@ -43,7 +43,6 @@ imported_regex = re.compile( ) - def read_csv(filename): """ Reads a CSV file and returns a list of tuples. @@ -65,7 +64,10 @@ csrs = read_csv("csrs.csv") csrs32 = read_csv("csrs32.csv") # Load the argument lookup table (arg_lut) from a CSV file, mapping argument names to their bit positions -arg_lut = {row[0]: (int(row[1]), int(row[2])) for row in csv.reader(open("arg_lut.csv"), skipinitialspace=True)} +arg_lut = { + row[0]: (int(row[1]), int(row[2])) + for row in csv.reader(open("arg_lut.csv"), skipinitialspace=True) +} # for mop arg_lut["mop_r_t_30"] = (30, 30) |