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):