<awygle>
i _think_ you can do m.submodules.foo.memory? i'm not sure though
<awygle>
i guess you've tried that though
<awygle>
if that doesn't work i know for sure you can do the `self.memory_introspection_port` thing, but you'll want to do it in __init__() instead of elaborate()
<awygle>
so that you can get at the handle to it when the object is constructed in the parent's elaborate()
<awygle>
smkz: ^
<smkz>
ah, so define the memory inside the __init__()?
<awygle>
yeah
<awygle>
that will work, there may be a more elegant way that i don't know though
<smkz>
for something like "x = yield nine.submodules.msm.fsm_ready" in the process() function i get error "AttributeError: 'Cirno' object has no attribute 'submodules'" ;;
<smkz>
i will try defining memory inside the __init__(); thanks!
<awygle>
mm yeah that makes sense actually
<awygle>
cuz you have a Cirno not a module
<smkz>
i guess now that i have defined it inside the __init__ i can access it from the module above the one defining the memory
<smkz>
but how would i thread it through that module so the one above *that* one can access it?
<smkz>
uwaa
<smkz>
apparently defining/instantiating that module inside the __init__; extracting the memory from it, and assigning it to the self.whatever did the trick
<awygle>
nice!
<smkz>
thank you for the help
<awygle>
no problem, glad you got it working
Degi has quit [Ping timeout: 260 seconds]
Degi has joined #nmigen
_whitelogger has joined #nmigen
_whitelogger has joined #nmigen
_whitelogger has joined #nmigen
thinknok has joined #nmigen
Asu has joined #nmigen
<whitequark>
smkz: yeah at the moment you'll have to define the memory in __init__
proteus-guy has joined #nmigen
chipmuenk has joined #nmigen
chipmuenk has quit [Client Quit]
esden has quit [Ping timeout: 272 seconds]
esden has joined #nmigen
momota has joined #nmigen
momota has quit [Remote host closed the connection]