X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fsoc%2Ffu%2Fregspec.py;h=e7a4cf8e3d88936f0aba3c6b550a943aaab1d692;hb=58d2d830f087c5edecbbf68ea24336c622ff9149;hp=4e6fc5d1ce3cd9b2ad94cf26f4dae29db57c658a;hpb=80ee74f16cccf23480a7eb8aa43ed3f155151cbe;p=soc.git diff --git a/src/soc/fu/regspec.py b/src/soc/fu/regspec.py index 4e6fc5d1..e7a4cf8e 100644 --- a/src/soc/fu/regspec.py +++ b/src/soc/fu/regspec.py @@ -19,6 +19,7 @@ which MultiCompUnit port, how wide the connection is, and so on. def get_regspec_bitwidth(regspec, srcdest, idx): + print ("get_regspec_bitwidth", regspec, srcdest, idx) bitspec = regspec[srcdest][idx] wid = 0 print (bitspec) @@ -67,13 +68,13 @@ class RegSpecALUAPI: def get_out(self, i): if isinstance(self.rwid, int): # old - testing - API (rwid is int) return self.alu.out[i] - # regspec-based API: look up variable through regspec according to row number + # regspec-based API: look up variable through regspec thru row number return getattr(self.alu.n.data_o, self.rwid[1][i][1]) def get_in(self, i): if isinstance(self.rwid, int): # old - testing - API (rwid is int) return self.alu.i[i] - # regspec-based API: look up variable through regspec according to row number + # regspec-based API: look up variable through regspec thru row number return getattr(self.alu.p.data_i, self.rwid[0][i][1]) def get_op(self):