<d1b2>
<Nate> probably something silly, but it seems pysim is hanging when m.d.sync += din.eq(self.i_data) logic is hit (runs fine when commented out)
d1b2 has quit [Remote host closed the connection]
d1b2 has joined #amaranth-lang
<d1b2>
<Nate> also, probably another easy one --it wasn't immediately obvious to me how/if one can wait for a pulse. Is that done via yield from(...)?
cr1901 has joined #amaranth-lang
<d1b2>
<tiktik> my ft4232h mini not show eprom
<d1b2>
<tiktik> after drivers update 4 port show
<bl0x_>
Nate: Do you have a combinatorial loop? That happened to me before. Then the simulation just hangs. Yosys will tell you about the loop and then you can fix it.
<bl0x_>
No wait, at least Vivado tells about the loop. Not sure about Yosys now...
<whitequark>
Yosys sometimes does and sometimes does not
<whitequark>
it's one of those things that should be fixed within Amaranth itself. soon™
<bl0x_>
Nate: 'yield from' just continues execution of the other (generator) function until the next yield. This is related to python coroutines and one could write (probably has written) whole books on the topic.
<bl0x_>
If you want to wait on a pulse, you'd continuously (yield your.design.signal) until it goes active. At least that's how I've done it previously. There may be better ways, though.
<whitequark>
at the moment that's the best way
SpaceCoaster has joined #amaranth-lang
balrog has quit [Quit: Bye]
balrog has joined #amaranth-lang
jesopo has joined #amaranth-lang
jesopo is now known as jess
<bl0x_>
Is there an easy way to take a look at the placed cells and nets when using the Vivado toolchain? Or would I be better off importing the generated top.v into a new Vivado project and compile it there?
<bl0x_>
I mean the graphical floorplan of the device with post-route cells and wires.
<bl0x_>
Along the lines of nextpnr GUI
<whitequark>
I think if you run build.sh, it saves a project file you can open with Vivado
<whitequark>
actually, forget the project file; it saves design checkpoints which you can open
<bl0x_>
Great! Now I see it e.g. top_route.dcp ... well only that one actually. But that should have what I want.