whitequark[m] changed the topic of #nmigen to: nMigen hardware description language ยท code https://github.com/nmigen ยท logs https://freenode.irclog.whitequark.org/nmigen
pftbest_ has joined #nmigen
pftbest has quit [Ping timeout: 240 seconds]
<_whitenotifier-5> [YoWASP/yosys] whitequark pushed 1 commit to develop [+0/-0/ยฑ1] https://git.io/JYCf9
<_whitenotifier-5> [YoWASP/yosys] whitequark c25541e - Update dependencies.
lkcl has quit [Ping timeout: 265 seconds]
lkcl has joined #nmigen
Degi_ has joined #nmigen
Degi has quit [Ping timeout: 240 seconds]
Degi_ is now known as Degi
pftbest_ has quit [Remote host closed the connection]
pftbest has joined #nmigen
pftbest has quit [Ping timeout: 265 seconds]
PyroPeter_ has joined #nmigen
PyroPeter has quit [Ping timeout: 240 seconds]
PyroPeter_ is now known as PyroPeter
revolve has quit [Read error: Connection reset by peer]
revolve has joined #nmigen
PyroPeter_ has joined #nmigen
PyroPeter has quit [Ping timeout: 240 seconds]
PyroPeter_ is now known as PyroPeter
revolve has quit [Read error: Connection reset by peer]
revolve has joined #nmigen
Bertl is now known as Bertl_zZ
<d1b2> <4o> what's the right way to write lut-based rom with multiple read ports?
<d1b2> <4o> i guess i want a constant array and muxes inferred from slicing it, right?
<d1b2> <4o> hilarious:) https://paste.debian.net/1191460/
emeb_mac has quit [Quit: Leaving.]
jeanthom has joined #nmigen
<d1b2> <4o> for i in range(256) should be on line 2 in that snippet
pftbest has joined #nmigen
jeanthom has quit [Ping timeout: 265 seconds]
ronyrus has quit [Quit: %me%]
ronyrus has joined #nmigen
chipmuenk has joined #nmigen
<agg> 4o: I would just use a Memory with multiple comb read ports
jeanthom has joined #nmigen
<agg> Set the contents with Memory's init parameter and set the read port domains to comb
jeanthom has quit [Ping timeout: 268 seconds]
Guest44411 has quit [Quit: Idle for 30+ days]
richbridger has quit [Remote host closed the connection]
Bertl_zZ is now known as Bertl
<d1b2> <4o> nice. didn't think i can get 2 read ports from Memory
<d1b2> <4o> thanks
<d1b2> <4o> if this https://paste.debian.net/1191495/ a valid way to set reset for a module to async?
<whitequark[m]> you need to drive the clock of the domain you created, too
revolve has quit [Read error: Connection reset by peer]
<d1b2> <4o> drive like get clk signal from port and assign it to created clock domain?
<whitequark[m]> something like that
revolve has joined #nmigen
<d1b2> <4o> ok, looks like for sync = ClockDomain(...) i can access sync.clk. how do i get "clk port" for a module?
<d1b2> <4o> define it as a usual port in __init__ and use usial port asociation when instantiating my module?
<whitequark[m]> there is no special "clk port"; you can use any signal. so yeah
<d1b2> <4o> ok, thanks
<anuejn> hey all :). Apertus is looking for google summer of code participants who will get payed for writing nmigen code for an open source film camera during the summer
<anuejn> if you are interested, write vup an email (vup@apertus.org) or say hello in the #apertus irc channel
<d1b2> <dub_dub_11> how long are applications open for?
<vup> April 13th
<d1b2> <dub_dub_11> ty ๐Ÿ™‚
<d1b2> <dub_dub_11> looks like a really cool project, I would definitely apply if I didn't have existing commitments ๐Ÿ˜„
futarisIRCcloud has joined #nmigen
Bertl is now known as Bertl_oO
eppisai has joined #nmigen
vnksnkr has joined #nmigen
<_whitenotifier-5> [nmigen-boards] twam synchronize pull request #148: Colorlight i5/i9 - https://git.io/JYmtA
cr1901_modern has quit [Read error: Connection reset by peer]
Bertl_oO is now known as Bertl
<d1b2> <twam> I'm thinking about create a module, e.g. I2C which I pass a resource with the IO pins (e.g. something like Resource("i2c", 0, Subsignal("scl", Pins("1", dir="io")), Subsignal("sda", Pins("2", dir="io")), ), ), so that I can directly access the .i, .o, .oe properties of the Pins. Is this a good idea? And if, how would I create a corresponding resource in a test setup?
<d1b2> <4o> trying to get verilog with async reset. https://paste.debian.net/1191565/ getting error for this particular code. simple reg aka m.d.sync += o.eq(a) works with async reset. test.py compiles with async_teset = False. nmigen commit e288e. what have i done wrong?
d1b2 has quit [Remote host closed the connection]
d1b2 has joined #nmigen
<d1b2> <4o> functional equivalent of that code compiles ok https://paste.debian.net/1191577/
<d1b2> <4o> is it my bug or should i take it to github?
d1b2 has quit [Remote host closed the connection]
d1b2 has joined #nmigen
d1b2 has quit [Remote host closed the connection]
d1b2 has joined #nmigen
<vup> @twam the thing you get back from a `platfrom.request(...)` is nothing more than `Record`, so for a test setup you could create such a `Record` yourself.
revolve has quit [Read error: Connection reset by peer]
revolve has joined #nmigen
bvernoux has joined #nmigen
vnksnkr has quit [Quit: vnksnkr]
<d1b2> <twam> I thought that as well, but type(i2c.scl) will record something like class 'nmigen.lib.io.Pin' whereas a signal in something like Record([("le", 1)]) is only and misses the .oe attributes.
<d1b2> <twam> ... is only class 'nmigen.hdl.ast.Signal' ...
<vup> @twam Pin inherits from Record..., to emulate the .i, .o and .oe attributes, you could just do a nested record: `Record([("scl", [("i", 1), ("o", 1), ("oe", 1)])])`
cr1901_modern has joined #nmigen
kbeckmann has quit [Quit: WeeChat 2.9]
kbeckmann has joined #nmigen
bvernoux has quit [Quit: Leaving]
emeb_mac has joined #nmigen
chipmuenk has quit [Quit: chipmuenk]
richbridger has joined #nmigen
jeanthom has joined #nmigen
fdsa has joined #nmigen
<fdsa> I'm trying to learn how to use the litex stuff with nmigen. My goal is to use liteeth (or something in litex) to control a RMII ethernet peripheral I have on my development board, for which I already have some verilog for, but I'd rather it was all in python/nmigen ultimately.
<fdsa> I came across this comment
<fdsa> which links to what seems like a way to generate and link the verilog stuff?
<fdsa> However I don't understand what's going on, could anyone explain how to approach this? has anyone got examples of where this was done before?
<fdsa> Question 2: In my xilinx .ucf file, I have the following lines:
<fdsa> NET "e_txd<?>" OFFSET=OUT 1ns AFTER e_gtxc;
<fdsa> and
<fdsa> Net e_rxc TNM_NET = e_rxc_pin;
<fdsa> TIMESPEC TS_e_rxc_pin = PERIOD e_rxc_pin 8ns;
<fdsa> Any ideas on how to rewrite this stuff in nmigen? should this be put in a platform definition, or elsewhere in the code? thanks!
fdsa has quit [Quit: Connection closed]
jeanthom has quit [Ping timeout: 240 seconds]
revolve has quit [Read error: Connection reset by peer]
revolve has joined #nmigen
lf has quit [Ping timeout: 245 seconds]
lf has joined #nmigen