<Miyu-saki>
Yep. : P I think I can connect with Matrix
MyrlHex[m] has joined #amaranth-lang
<MyrlHex[m]>
Hm. Is there a limit to what gets sent to IRC? I'm curious about why this code doesn't work as I expect it to, but I'm worried about spamming IRC
<whitequark[cis]>
the limit is 3 or 5 lines or something
<whitequark[cis]>
but I think if you send one really massive line it doesn't get applied because Matrix
<whitequark[cis]>
you could just use a paste site for this I think
<MyrlHex[m]>
Trying to understand better what clock ticks are, and I don't understand why this assertion is false.
<whitequark[cis]>
ah, okay, you're hitting an awkward edge case which is going to be fixed in the next release (that'll happen in a week or two)
<whitequark[cis]>
try replacing your bare yield with yield; yield Settle()
<MyrlHex[m]>
Thanks. :) That works.
<whitequark[cis]>
basically, yield gives you a state of the simulation just after the clock tick, and just before every combinational signal settles on their final value
<whitequark[cis]>
this isn't what is wanted 98% of time, so we're fixing that (it's like this for historical reasons)
<MyrlHex[m]>
Thanks! I was actually also slightly confused by the counter example's assertion, and I just thought I miscounted lol.
<whitequark[cis]>
no, it's just ... weird
<whitequark[cis]>
it was initially designed to be Migen-compatible but that kind of brought more pain than benefit in the end
<whitequark[cis]>
re: the reset wire, do you mean in the output Verilog or something else?
<Miyu-saki>
Yep, the Verilog output.
<whitequark[cis]>
cd_sync.rst.name = "reset" is an easy one
<whitequark[cis]>
you could also make it a port of your component and do m.d.comb += ResetSignal().eq(reset)
<Miyu-saki>
Thanks. :) Though I'm guessing the latter technically has 2 reset inputs?
<whitequark[cis]>
no, the one you're seeing now is only emitted because nothing is driving it explicitly
<whitequark[cis]>
if you do verilog.convert(component) only the component ports and implicitly created clock domains cause signals to appear in the signature
<Miyu-saki>
Thanks. :) I really appreciate all the help.