<lkcl>
lsneff: yehh it's a tricky one. are you familiar with how to use a key-value store to do a 2ndary range-searchable index? you take the "thing-you-want-to-be-searcheable-on", append it with the primary hash/key (literally as a binary string) then drop that into the key-value store as {searchthing-primarykey}-{} i.e. empty value
<lkcl>
as long as the underlying key-value store can do "search for nearest value" you're good.
<lkcl>
that's how all databases use underlying key-value stores to do secondary indexes. neat, huh? :)
<lsneff>
That is neat!
<lkcl>
of course, now you have to keep them sync'd up,,,
jdwix has joined #nmigen
kbeckmann1 has quit [Quit: WeeChat 2.9]
kbeckmann has joined #nmigen
jdwix has quit [Remote host closed the connection]
electronic_eel has quit [Ping timeout: 256 seconds]
electronic_eel has joined #nmigen
whitequark[m] has joined #nmigen
PyroPeter_ has joined #nmigen
PyroPeter_ is now known as PyroPeter
Degi_ has joined #nmigen
Degi has quit [Ping timeout: 256 seconds]
Degi_ is now known as Degi
richbridger has quit [Read error: Connection reset by peer]
_whitelogger has joined #nmigen
emeb_mac has quit [Quit: Leaving.]
peepsalot has quit [Quit: Connection reset by peep]
peepsalot has joined #nmigen
Bertl_oO is now known as Bertl_zZ
bvernoux has joined #nmigen
mimirwolv has joined #nmigen
<mimirwolv>
I think I'm missing something obvious here, but how do you go about setting IO up using an existing Platform (in my case, tinyfpga BX)? do I want to define my own platform as a subclass?
<mimirwolv>
i.e. how do I do the blinky example on an arbitrary GPIO pin? The platform seems to define a "connector" but i have no idea what that is- I've managed to get ahold of that Connector with platform.connectors[("gpio"), 0] but i have no idea what to *do* with it
<mimirwolv>
based on the code, i ended up doing platform.add_resources([Resource("glitch_trig", 0, Pins("A2", dir="o"), Attrs(IO_STANDARD="SB_LVCMOS"))])
<mimirwolv>
which seems to work, but i have no idea if that's the correct way to handle that
chipmuenk1 has joined #nmigen
chipmuenk1 is now known as chipmuenk
jeanthom has joined #nmigen
virtimus has joined #nmigen
jeanthom has quit [Ping timeout: 272 seconds]
Bertl_zZ is now known as Bertl
Chips4Makers has quit [Remote host closed the connection]
<d1b2>
<dub_dub_11> This one keeps coming up 😅
<d1b2>
<dub_dub_11> I'd like to make an example somewhere