ChanServ changed the topic of #nmigen to: nMigen hardware description language · code at https://github.com/nmigen · logs at https://freenode.irclog.whitequark.org/nmigen · IRC meetings each Monday at 1800 UTC · next meeting TBD
lf has joined #nmigen
lf_ has quit [Ping timeout: 260 seconds]
modwizcode has quit [Quit: Later]
<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
<d1b2> <dub_dub_11> You so is add_resources
<d1b2> <dub_dub_11> Let me find it...
<d1b2> <dub_dub_11> platform.add_resources([ Resource("pwm", 0, Pins("2", conn=("gpio", 0), dir ="o" ), Attrs(IOSTANDARD="LVCMOS33") ), ]) self.pwm_o = platform.request("pwm") sorry of the formatting gets messed up
<d1b2> <dub_dub_11> Basically what you've done except you can access the pins by connector and pin number
virtimus has quit [Remote host closed the connection]
emeb has joined #nmigen
happycube has quit [Ping timeout: 256 seconds]
probablymoony has quit [Quit: Bye!]
happycube has joined #nmigen
moony has joined #nmigen
bvernoux has quit [Read error: Connection reset by peer]
modwizcode has joined #nmigen
Bertl is now known as Bertl_oO
chipmuenk has quit [Read error: Connection reset by peer]
chipmuenk has joined #nmigen
jeanthom has joined #nmigen
chipmuenk has quit [Quit: chipmuenk]
jeanthom has quit [Ping timeout: 264 seconds]
emeb_mac has joined #nmigen
richbridger has joined #nmigen
emeb_mac has quit [Quit: Leaving.]
Chips4Makers has joined #nmigen
jeanthom has joined #nmigen
mimirwolv has quit [Quit: Lost terminal]
jeanthom has quit [Ping timeout: 272 seconds]
<d1b2> <DonTrash> I was just about to ask the exact same question 😅
<d1b2> <dub_dub_11> I asked it myself here not long ago lol
emeb_mac has joined #nmigen
jeanthom has joined #nmigen
chipmuenk has joined #nmigen
chipmuenk has quit [Client Quit]
jeanthom has quit [Ping timeout: 272 seconds]
<d1b2> <DonTrash> Nice, now it works 😄 I just wrote a litte gpio hello world for the icebreaker https://github.com/d0ntrash/icebreaker-nmigen/blob/master/gpio/gpio.py
emeb has quit [Quit: Leaving.]