whitequark[cis] changed the topic of #amaranth-lang to: Amaranth hardware definition language · weekly meetings: Amaranth each Mon 1700 UTC, Amaranth SoC each Fri 1700 UTC · play https://amaranth-lang.org/play/ · code https://github.com/amaranth-lang · logs https://libera.catirclogs.org/amaranth-lang · Matrix #amaranth-lang:matrix.org
FFY00_ has quit [Ping timeout: 276 seconds]
FFY00 has joined #amaranth-lang
anubis has joined #amaranth-lang
_whitelogger has joined #amaranth-lang
flaviusb has quit [Ping timeout: 252 seconds]
Degi has quit [Ping timeout: 272 seconds]
Degi has joined #amaranth-lang
d_olex has joined #amaranth-lang
anubis has quit [Ping timeout: 252 seconds]
d_olex_ has joined #amaranth-lang
d_olex has quit [Read error: Connection reset by peer]
<_whitenotifier-4> [amaranth] mabl commented on pull request #1590: sim: call `.aclose()` on `TickTrigger` in `.until()` and `.repeat()` - https://github.com/amaranth-lang/amaranth/pull/1590#issuecomment-3012264642
<_whitenotifier-4> [amaranth] whitequark commented on pull request #1590: sim: call `.aclose()` on `TickTrigger` in `.until()` and `.repeat()` - https://github.com/amaranth-lang/amaranth/pull/1590#issuecomment-3012270175
<_whitenotifier-4> [amaranth] whitequark commented on pull request #1590: sim: call `.aclose()` on `TickTrigger` in `.until()` and `.repeat()` - https://github.com/amaranth-lang/amaranth/pull/1590#issuecomment-3012318585
<_whitenotifier-4> [amaranth] whitequark opened issue #1612: Tracking issue for RFC 79: Add `PortLike.with_direction` - https://github.com/amaranth-lang/amaranth/issues/1612
<_whitenotifier-4> [amaranth-lang/rfcs] whitequark pushed 1 commit to main [+0/-0/±1] https://github.com/amaranth-lang/rfcs/compare/0ff3464a3b0c...ac8b977c3bda
<_whitenotifier-4> [amaranth-lang/rfcs] whitequark ac8b977 - RFC #79: add tracking issue
<_whitenotifier-4> [amaranth-lang/amaranth-lang.github.io] whitequark pushed 1 commit to main [+0/-0/±4] https://github.com/amaranth-lang/amaranth-lang.github.io/compare/3802bdae50e7...41f9aa7c95e8
<_whitenotifier-4> [amaranth-lang/amaranth-lang.github.io] whitequark 41f9aa7 - Deploying to main from @ amaranth-lang/rfcs@ac8b977c3bdaf3e3ea43c944a8669e741e9eb1d9 🚀
<_whitenotifier-4> [amaranth] mabl commented on pull request #1590: sim: call `.aclose()` on `TickTrigger` in `.until()` and `.repeat()` - https://github.com/amaranth-lang/amaranth/pull/1590#issuecomment-3012344283
<_whitenotifier-4> [amaranth] whitequark commented on pull request #1590: sim: call `.aclose()` on `TickTrigger` in `.until()` and `.repeat()` - https://github.com/amaranth-lang/amaranth/pull/1590#issuecomment-3012349780
frgo_ has quit [Ping timeout: 252 seconds]
<_whitenotifier-4> [amaranth] whitequark commented on pull request #1590: sim: call `.aclose()` on `TickTrigger` in `.until()` and `.repeat()` - https://github.com/amaranth-lang/amaranth/pull/1590#issuecomment-3012404989
<RobTaylor[m]> is there a prescribed way to do optional wires in an interface/signature?
<whitequark[cis]> that being said, in many cases, i would recommend doing something slightly different
<whitequark[cis]> can you tell me more about the exact use case you have?
<RobTaylor[m]> Thanks! its for modelling jtag with an optional trst
<whitequark[cis]> TRST# is an input for your IP, right?
<RobTaylor[m]> yep
<whitequark[cis]> in this particular case, I would suggest having a fixed signature that always has TRST#, and letting the optimizer rip out reset-related circuitry, which it is guaranteed to do
<RobTaylor[m]> yeah, that seems sensible to me
<whitequark[cis]> if you don't like that solution, the second best is a fixed signature as before, and an interface subclass which replaces the Signal in self.trst with a Const(1)
<whitequark[cis]> we have a docs section explaining this: https://amaranth-lang.org/docs/amaranth/latest/stdlib/wiring.html#constant-inputs
<RobTaylor[m]> ah cool!
<whitequark[cis]> in short, having variable signatures can be valuable (especially for things like "variable bitness"), but if it is just for fixed control inputs, you would have to write a bunch of "gasket" IP whose only purpose is to adapt one interface to another. this is annoying
<whitequark[cis]> as a result, Amaranth allows you to stuff a constant in place of a signal in an interface, and it guarantees that this interface member would only be connected to others where it's either an input, or the same constant
<RobTaylor[m]> that sounds spot on. Thank you!
<_whitenotifier-4> [amaranth-lang/playground] whitequark pushed 1 commit to main [+0/-0/±1] https://github.com/amaranth-lang/playground/compare/dc25433e0d8d...698d71fef3ce
<_whitenotifier-4> [amaranth-lang/playground] whitequark 698d71f - Update for Amaranth v0.5.6.
<_whitenotifier-4> [amaranth-lang/amaranth-lang.github.io] whitequark pushed 1 commit to main [+0/-0/±2] https://github.com/amaranth-lang/amaranth-lang.github.io/compare/41f9aa7c95e8...fa87cc35cbba
<_whitenotifier-4> [amaranth-lang/amaranth-lang.github.io] whitequark fa87cc3 - Deploying to main from @ amaranth-lang/playground@698d71fef3ce4ce2c6a2575400515086de2ea2df 🚀
<_whitenotifier-4> [amaranth-soc] jorolf commented on issue #103: AXI Interface Signature - https://github.com/amaranth-lang/amaranth-soc/issues/103#issuecomment-3012991521
<_whitenotifier-4> [rfcs] whitequark commented on pull request #77: RFC #77: Stream port name conventions. - https://github.com/amaranth-lang/rfcs/pull/77#issuecomment-3013139518
<_whitenotifier-4> [amaranth-soc] whitequark commented on issue #103: AXI Interface Signature - https://github.com/amaranth-lang/amaranth-soc/issues/103#issuecomment-3013325129
anubis has joined #amaranth-lang
frgo has joined #amaranth-lang
frgo has quit [Remote host closed the connection]
anubis has quit [Remote host closed the connection]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 260 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 252 seconds]
peepsalot has quit [Remote host closed the connection]
peepsalot has joined #amaranth-lang
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 252 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 252 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 260 seconds]
cr1901_ has quit [Read error: Connection reset by peer]
cr1901 has joined #amaranth-lang