<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
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>
<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.