whitequark changed the topic of #amaranth-lang to: Amaranth hardware definition language · weekly meetings on Mondays at 1700 UTC · code https://github.com/amaranth-lang · logs https://libera.irclog.whitequark.org/amaranth-lang
toshywoshy has quit [Ping timeout: 250 seconds]
toshywoshy has joined #amaranth-lang
Degi has quit [Ping timeout: 250 seconds]
Degi has joined #amaranth-lang
<cr1901> Is there a way to use inner functions inside an FSM to introduce a set of parameterizable states to the FSM? When I try to do naively, like:
<cr1901> I get: If is not permitted directly inside of FSM; it is permitted
<cr1901> inside of FSM State
<tpw_rules> where is there an If in that example?
<cr1901> I oversimplified
<tpw_rules> i can't see why that wouldn't work
<tpw_rules> it works with loops and the control flow in python is the same. you might have removed the problem in your oversimplification
<cr1901> Ohhh, I see... nevermind, this is my fault. I called a closure instead of passing it into a function
<tpw_rules> i remember filing bugs about detection of those types of errors but i don't remember any of the details
<tpw_rules> not really sure what that means but good to know it's working
<cr1901> the closure has an m.If() context, but no m.State() context
<cr1901> So if I call the closure outside of an m.State() context manager, but _inside_ an m.FSM() context manager, the function dies
<tpw_rules> well yes
<tpw_rules> that's what the error message is describing
<cr1901> I wanted a "you added parentheses when you intended to pass a Callable"
<cr1901> which typing is _supposed_ to catch, but hey, I guess it's out to lunch
<tpw_rules> what typing
<cr1901> "from typing import Union, Callable"
<tpw_rules> that doesn't do anything. you have to run an external typechecker or use IDE features or whatever
<tpw_rules> nothing in the language uses those objects
<cr1901> Oh goodie...
<tpw_rules> mypy might be what you want. not really into type annotations myself though i prob should be...
<_whitenotifier-9> [YoWASP/yosys] whitequark pushed 1 commit to develop [+0/-0/±1] https://github.com/YoWASP/yosys/compare/29c22c89a0f9...03cda0683a80
<_whitenotifier-9> [YoWASP/yosys] whitequark 03cda06 - Update dependencies.
cesar has joined #amaranth-lang
jfng[m] has joined #amaranth-lang
<_whitenotifier-9> [amaranth] psentee opened pull request #801: Allow pyvcd 0.4 - https://github.com/amaranth-lang/amaranth/pull/801
mindw0rk has quit [Read error: Connection reset by peer]
nyanotech has quit [Quit: No Ping reply in 180 seconds.]
nyanotech has joined #amaranth-lang
mindw0rk has joined #amaranth-lang
mindw0rk has quit [Ping timeout: 240 seconds]
balrog has quit [Quit: Bye]
balrog has joined #amaranth-lang
mindw0rk has joined #amaranth-lang
mindw0rk has quit [Ping timeout: 268 seconds]
mindw0rk has joined #amaranth-lang
mindw0rk has quit [Ping timeout: 240 seconds]
mindw0rk has joined #amaranth-lang
mindw0rk has quit [Ping timeout: 240 seconds]
mindw0rk has joined #amaranth-lang
mindw0rk has quit [Ping timeout: 265 seconds]
mindw0rk has joined #amaranth-lang
mindw0rk has quit [Ping timeout: 240 seconds]
mindw0rk has joined #amaranth-lang
<_whitenotifier-9> [amaranth] codecov[bot] commented on pull request #801: Allow pyvcd 0.4 - https://github.com/amaranth-lang/amaranth/pull/801#issuecomment-1575687341
<_whitenotifier-9> [amaranth] whitequark closed pull request #801: Allow pyvcd 0.4 - https://github.com/amaranth-lang/amaranth/pull/801
<_whitenotifier-9> [amaranth-lang/amaranth] whitequark pushed 1 commit to main [+0/-0/±1] https://github.com/amaranth-lang/amaranth/compare/a4402b507f03...0681cb77b16c
<_whitenotifier-9> [amaranth-lang/amaranth] psentee 0681cb7 - pyproject: relax pyvcd requirement to include 0.4.
<_whitenotifier-9> [amaranth-lang/amaranth-lang.github.io] whitequark pushed 1 commit to main [+0/-0/±28] https://github.com/amaranth-lang/amaranth-lang.github.io/compare/00ba4d7c4e46...86f5ab0e9c76
<_whitenotifier-9> [amaranth-lang/amaranth-lang.github.io] whitequark 86f5ab0 - Deploying to main from @ amaranth-lang/amaranth@0681cb77b16cb4ddab5da92e7b226d3511ac8476 🚀
GenTooMan has quit [Ping timeout: 250 seconds]
GenTooMan has joined #amaranth-lang