From b934dfdaf9ad2a20281ebdaa1056d2f7d6ffdcfd Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 13 Aug 2020 12:25:32 +0100 Subject: [PATCH] sigh. convert INT regfile to binary addressing --- src/soc/decoder/power_regspec_map.py | 15 ++--- src/soc/regfile/regfile.py | 83 ++++++++++++++++++++++------ src/soc/regfile/regfiles.py | 9 +-- src/soc/simple/core.py | 58 ++++++++++++++----- src/soc/simple/issuer.py | 6 +- src/soc/simple/test/test_core.py | 11 +++- src/soc/simple/test/test_issuer.py | 4 +- 7 files changed, 133 insertions(+), 53 deletions(-) diff --git a/src/soc/decoder/power_regspec_map.py b/src/soc/decoder/power_regspec_map.py index 1dd3f0e4..74a955cb 100644 --- a/src/soc/decoder/power_regspec_map.py +++ b/src/soc/decoder/power_regspec_map.py @@ -48,11 +48,11 @@ def regspec_decode_read(e, regfile, name): if regfile == 'INT': # Int register numbering is *unary* encoded if name == 'ra': # RA - return e.read_reg1.ok, 1<