From: Luke Kenneth Casson Leighton Date: Wed, 3 Jun 2020 11:29:02 +0000 (+0100) Subject: move over to using power_regspec_map.py from PowerDecode2 rather than distributed... X-Git-Tag: div_pipeline~637^2~5 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6fea780f698a10ec43d4f69b49fe36c176ecd69b;p=soc.git move over to using power_regspec_map.py from PowerDecode2 rather than distributed maps in pipe_data.py --- diff --git a/src/soc/decoder/power_decoder2.py b/src/soc/decoder/power_decoder2.py index 24d3e0c5..33e346ae 100644 --- a/src/soc/decoder/power_decoder2.py +++ b/src/soc/decoder/power_decoder2.py @@ -610,7 +610,16 @@ class PowerDecode2(Elaboratable): to Function Unit port regfiles (read-enable, read regnum, write regnum) regfile and regname arguments are fields 1 and 2 from a given regspec. """ - return regspec_decode(self, regfile, regname) + return regspec_decode(self.e, regfile, regname) + + def rdflags(self, cu): + rdl = [] + for idx in range(cu.n_src): + regfile, regname, _ = cu.get_in_spec(idx) + rdflag, read, write = self.regspecmap(regfile, regname) + rdl.append(rdflag) + print ("rdflags", rdl) + return Cat(*rdl) if __name__ == '__main__': diff --git a/src/soc/decoder/power_regspec_map.py b/src/soc/decoder/power_regspec_map.py index 6d9e1677..4e90b8db 100644 --- a/src/soc/decoder/power_regspec_map.py +++ b/src/soc/decoder/power_regspec_map.py @@ -70,11 +70,14 @@ def regspec_decode(e, regfile, name): CA = 1<