[libre-riscv-dev] TLB

Luke Kenneth Casson Leighton lkcl at lkcl.net
Mon Apr 22 07:30:51 BST 2019


---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68

On Mon, Apr 22, 2019 at 7:07 AM Jacob Lifshay <programmerjake at gmail.com> wrote:
>
> On Sun, Apr 21, 2019 at 11:03 PM Daniel Benusovich
> <flyingmonkeys1996 at gmail.com> wrote:
> > But you are able to call elements out of the ArrayProxy just fine. Weird
> That's because Array is designed to work on things that are Signals or
> Arrays of Signals, not arbitrary objects.

 yep. asdf[self.encoder.o].read_port()

 read_port is an object, nmigen creates a "proxy" around that object
(because of the indexing using self.encoder.o), and you're trying to
treat that object as if it were a function, by using () to pass it
zero (empty, no) arguments.

 if ArrayProxy happened to have a method named "__call__", it would
actually work!

 except... it's still totally the wrong thing to do.

l.



More information about the libre-riscv-dev mailing list