whitequark[m] changed the topic of #nmigen to: nMigen hardware description language · code https://github.com/nmigen · logs https://freenode.irclog.whitequark.org/nmigen
lkcl_ has quit [Ping timeout: 260 seconds]
lkcl_ has joined #nmigen
<_whitenotifier-4> [YoWASP/yosys] whitequark pushed 1 commit to develop [+0/-0/±1] https://git.io/Jqc32
<_whitenotifier-4> [YoWASP/yosys] whitequark 6112fb1 - Update dependencies.
lf_ has joined #nmigen
lf has quit [Ping timeout: 260 seconds]
Bertl_oO is now known as Bertl_zZ
pftbest has quit [Remote host closed the connection]
pftbest has joined #nmigen
pftbest has quit [Ping timeout: 272 seconds]
Degi_ has joined #nmigen
Degi_ is now known as Degi
_whitelogger has joined #nmigen
PyroPeter_ has joined #nmigen
PyroPeter_ is now known as PyroPeter
PyroPeter has quit [Ping timeout: 246 seconds]
revolve has quit [Ping timeout: 246 seconds]
revolve has joined #nmigen
cr1901_modern has quit [Read error: Connection reset by peer]
plaes_ has quit [Quit: Reconnecting]
plaes has joined #nmigen
plaes has joined #nmigen
cr1901_modern has joined #nmigen
emeb_mac has quit [Quit: Leaving.]
pftbest has joined #nmigen
jeanthom has joined #nmigen
pftbest has quit [Remote host closed the connection]
pftbest has joined #nmigen
Bertl_zZ is now known as Bertl
chipmuenk has joined #nmigen
chipmuenk1 has joined #nmigen
chipmuenk has quit [Ping timeout: 260 seconds]
chipmuenk1 is now known as chipmuenk
chipmuenk has quit [Read error: Connection reset by peer]
chipmuenk1 has joined #nmigen
chipmuenk1 has quit [Ping timeout: 260 seconds]
lkcl_ has quit [Ping timeout: 246 seconds]
lkcl_ has joined #nmigen
lambda has quit [Ping timeout: 240 seconds]
lambda has joined #nmigen
bvernoux has joined #nmigen
revolve has quit [Read error: Connection reset by peer]
revolve has joined #nmigen
bvernoux1 has joined #nmigen
bvernoux has quit [Ping timeout: 245 seconds]
bvernoux1 has quit [Client Quit]
bvernoux has joined #nmigen
jeanthom has quit [Remote host closed the connection]
jeanthom has joined #nmigen
lkcl_ has quit [Ping timeout: 256 seconds]
Bertl is now known as Bertl_oO
lkcl_ has joined #nmigen
jeanthom has quit [Ping timeout: 264 seconds]
FFY00_ has quit [Remote host closed the connection]
FFY00_ has joined #nmigen
pftbest has quit [Remote host closed the connection]
pftbest has joined #nmigen
pftbest has quit [Remote host closed the connection]
pftbest has joined #nmigen
pftbest_ has joined #nmigen
pftbest__ has joined #nmigen
pftbest_ has quit [Read error: Connection reset by peer]
pftbest has quit [Ping timeout: 260 seconds]
jeanthom has joined #nmigen
chipmuenk has joined #nmigen
chipmuenk has quit [Ping timeout: 260 seconds]
revolve has quit [Read error: Connection reset by peer]
revolve has joined #nmigen
<_whitenotifier-4> [nmigen] cr1901 opened issue #599: Possibly-misleading error when forgetting the `number` argument to Resource `__init__`. - https://git.io/JqCka
chipmuenk has joined #nmigen
<cr1901_modern> Okay, based on the issue, it's clear that I have somehow COMPLETELY forgotten how to add resources to an nmigen board. Does anyone have an example?
<cr1901_modern> Right, Pins are one-indexed and the actual pin/pad numbers are abstracted away
<whitequark> well, they aren't necessarily one-indexed, it's just that i've yet to see a chip starting at pin 0
<whitequark> you can use any sort of associative array of pin names
<cr1901_modern> Indeed, but I spoke imprecise- connector pins start at "1". I was trying "gpio_0:13" (b/c the actual pin is called "13" in the LPF). Then I tried "gpio_0:0". _Then_ I finally did "gpio_0:1".
<cr1901_modern> B/c I forgot the syntax
<_whitenotifier-4> [nmigen] cr1901 edited issue #599: Possibly-misleading error when forgetting the `number` argument to Resource `__init__`. - https://git.io/JqCka
<adamgreig> cr1901_modern: when the actual numbering starts from 0, you can pass a dict to the connectors list in the platform to make it start at 0 instead, just in case that wasn't clear
<cr1901_modern> Oh?
<cr1901_modern> As an example, https://github.com/nmigen/nmigen-boards/blob/master/nmigen_boards/mercury.py#L72-L76 the first pin is called "gpio_0:1", for "pin 1 on the zeroth gpio bus". I didn't know you could start it at, say, "gpio_0:0"
<adamgreig> The connector pin names are ints from 1 by default if you pass a list of fpga pins, but you can instead specify a dict of names to FPGA pins, where the names could be integers from 0
<cr1901_modern> Okay, good to know
<adamgreig> Yea, in that case a dict instead of your string of names
<adamgreig> I've done it where the connector pins were labelled 0, 1, 2 etc
<cr1901_modern> It makes sense... I'm in a bit of a fog today
FFY00_ has quit [Ping timeout: 260 seconds]
FFY00_ has joined #nmigen
<cr1901_modern> With this source file: http://ix.io/2SBy
<cr1901_modern> I get this assertion failure: http://ix.io/2SBz. Anyone have any idea why?
emeb_mac has joined #nmigen
<cr1901_modern> Hmm, Instance("top", i_a=a, i_b=b, i_sel=sel) works, but Instance("top", i_a=a, i_b=b, i_sel=sel, o_o=led) does not...
<cr1901_modern> ooooh okay I see it
<cr1901_modern> dir is input by default I think: I need "Resource("led", 0, Pins("gpio_0:1", dir="o"))"
<adamgreig> cr1901_modern: oh btw you can also just put connector pin numbers and specify conn=("gpio", 0) to Pins, rather than writing out "gpio_0:1"
<cr1901_modern> Indeed, and that is how I SHOULD be doing it
<cr1901_modern> the "gpio_0:1" syntax is an escape hatch- I don't remember why
pftbest__ has quit [Remote host closed the connection]
pftbest has joined #nmigen
pftbest has quit [Remote host closed the connection]
pftbest has joined #nmigen
pftbest has quit [Remote host closed the connection]
pftbest has joined #nmigen
pftbest has quit [Remote host closed the connection]
pftbest has joined #nmigen
pftbest has quit [Ping timeout: 245 seconds]
chipmuenk1 has joined #nmigen
chipmuenk has quit [Ping timeout: 264 seconds]
chipmuenk1 has quit [Ping timeout: 246 seconds]
roamingr1 has quit [Ping timeout: 240 seconds]
roamingr1 has joined #nmigen
roamingr1 has quit [Ping timeout: 246 seconds]
roamingr1 has joined #nmigen
jeanthom has quit [Ping timeout: 246 seconds]