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
frgo has joined #amaranth-lang
_whitenotifier-8 has joined #amaranth-lang
frgo has quit [Remote host closed the connection]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 248 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 260 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 260 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 245 seconds]
frgo has joined #amaranth-lang
_whitelogger has joined #amaranth-lang
frgo has quit [Ping timeout: 244 seconds]
Degi has quit [Ping timeout: 245 seconds]
frgo has joined #amaranth-lang
Degi has joined #amaranth-lang
_whitelogger has joined #amaranth-lang
peepsalot has quit [Quit: Connection reset by peep]
peepsalot has joined #amaranth-lang
frgo has quit [Ping timeout: 252 seconds]
peepsalot has quit [Quit: Connection reset by peep]
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: 260 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 276 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 252 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 244 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 260 seconds]
frgo has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 252 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 260 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 245 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 276 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 260 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 276 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 272 seconds]
frgo has joined #amaranth-lang
Arcar has joined #amaranth-lang
Arcar has quit [Remote host closed the connection]
frgo has quit [Ping timeout: 272 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 276 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 260 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 248 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 272 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 252 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 276 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 260 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 252 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 248 seconds]
frgo has joined #amaranth-lang
frgo has quit [Quit: Leaving...]
<benny2366[m]> ok so continuing my amaranth saga continues so when I run my simulation code i get the error ```line 4, in <module>
<benny2366[m]> dut = buttontoled()
<benny2366[m]> TypeError: 'module' object is not callable```
<benny2366[m]> i asume it has a problem with ``` m = Module()
<benny2366[m]> ```
<benny2366[m]> from my main code
<whitequark[cis]> no
<whitequark[cis]> it's pointing at the exact line it has an issue with
<whitequark[cis]> what is the contents of your buttontoled.py file?
grabhanem[m] has joined #amaranth-lang
<grabhanem[m]> capitalization?
<whitequark[cis]> you need from buttontoled import ButtonToLed
<whitequark[cis]> the file itself becomes an object in python (module, vs Module from Amaranth) and it cannot be called with ()
<whitequark[cis]> you need to call (construct) something (your ButtonToLed class) from within the python module, not the python module itself
<benny2366[m]> hu ?
<whitequark[cis]> i don't know how to put this in any clearer terms, sorry
<benny2366[m]> is ok
<galibert[m]> alternatively, dut = buttontoled.ButtonToLed()
<benny2366[m]> NameError: name 'buttontoled' is not defined
<galibert[m]> you still need the import buttontoled
<galibert[m]> the import creates on object buttontoled which allows you to reach what's inside it, like the ButtonToLed class, with the buttontoled.ButtonToLed syntax
<galibert[m]> alternatively, from buttontoled import ButtonToLed only gets the class, which you reach then by a bare ButtonToLed
<galibert[m]> you have to choose whether to import the full module/.py, or specific elements of that module
<galibert[m]> (technically, you can do both, but avoid it)
<benny2366[m]> I asume the full "import" is what i need ?
<galibert[m]> there are merits to both ways, you have to choose one
<whitequark[cis]> (we literally recommend doing both with lib.wiring)
<galibert[m]> (yeah but lib.wiring is special in some ways)
<benny2366[m]> are there any other examples other then the one from the docs?
<whitequark[cis]> i think it might be worth it to learn python more thoroughly first; all of the amaranth documentation assumes you have a good grasp of python
<whitequark[cis]> and learning two related but different languages at once can be pretty challenging
<benny2366[m]> the thing is i kinda know python( https://github.com/bendelathouwer/python-visa-drivers/blob/main/src/scope_wrapper.py written myself) or atleast I should know XP
threeflour[m] has quit [Quit: Idle timeout reached: 172800s]
<_whitenotifier-8> [amaranth] whitequark opened pull request #1617: build.plat: add `build_{{name}}.json` output - https://github.com/amaranth-lang/amaranth/pull/1617
<whitequark[cis]> so, i'm wondering if it's worth it to extend the amaranth playground so that it can build gateware for anything in amaranth_boards and also lets you upload it
<_whitenotifier-8> [amaranth] codecov[bot] commented on pull request #1617: build.plat: add `build_{{name}}.json` output - https://github.com/amaranth-lang/amaranth/pull/1617#issuecomment-3090432819
<tpw_rules> i guess anything with a yosys toolchain?
<whitequark[cis]> oh, yeah, not the xilinx boards
<tpw_rules> nor the one you hate so much you forgot
<whitequark[cis]> therapist: intel isn't real and cannot hurt you
<tpw_rules> interra
<tpw_rules> intera*
<_whitenotifier-8> [amaranth] whitequark opened pull request #1618: build.plat: add `build_{{name}}.json` output [0.5 backport] - https://github.com/amaranth-lang/amaranth/pull/1618
<_whitenotifier-8> [amaranth] whitequark closed pull request #1618: build.plat: add `build_{{name}}.json` output [0.5 backport] - https://github.com/amaranth-lang/amaranth/pull/1618
<_whitenotifier-8> [amaranth] whitequark created tag v0.5.7 - https://github.com/amaranth-lang/amaranth
<_whitenotifier-8> [amaranth-lang/amaranth] whitequark tagged 18402c6 as v0.5.7 https://github.com/amaranth-lang/amaranth/commit/18402c63a788f4b77644e230df81982f726dd605
<_whitenotifier-8> [amaranth-lang/amaranth-lang.github.io] whitequark pushed 1 commit to main [+160/-0/±0] https://github.com/amaranth-lang/amaranth-lang.github.io/compare/c4254bb31c79...326535c5c5eb
<_whitenotifier-8> [amaranth-lang/amaranth-lang.github.io] whitequark 326535c - Deploying to main from @ amaranth-lang/amaranth@18402c63a788f4b77644e230df81982f726dd605 🚀
<_whitenotifier-8> [amaranth] github-actions[bot] published v0.5.7 | 0.5.7 - https://github.com/amaranth-lang/amaranth/releases/tag/v0.5.7
<_whitenotifier-8> [amaranth] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-1617-bc5d1a4b06f1e3ae085629264f5ebc264b603ab6 - https://github.com/amaranth-lang/amaranth
jorolf[m] has quit [Quit: Idle timeout reached: 172800s]
<_whitenotifier-8> [amaranth-lang/amaranth] github-merge-queue[bot] pushed 3 commits to main [+0/-0/±3] https://github.com/amaranth-lang/amaranth/compare/bc5d1a4b06f1...5689b6bc5a55
<_whitenotifier-8> [amaranth-lang/amaranth] whitequark e5ae491 - build.plat: add `build_{{name}}.json` output.
<_whitenotifier-8> [amaranth-lang/amaranth] whitequark 4e1ac19 - docs: exclude sourceforge URLs from linkcheck.
<_whitenotifier-8> [amaranth-lang/amaranth] whitequark 5689b6b - docs: update changelog.
<_whitenotifier-8> [amaranth] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-1617-bc5d1a4b06f1e3ae085629264f5ebc264b603ab6 - https://github.com/amaranth-lang/amaranth
<_whitenotifier-8> [amaranth] whitequark closed pull request #1617: build.plat: add `build_{{name}}.json` output - https://github.com/amaranth-lang/amaranth/pull/1617
<_whitenotifier-8> [amaranth-lang/amaranth-lang.github.io] whitequark pushed 1 commit to main [+0/-0/±39] https://github.com/amaranth-lang/amaranth-lang.github.io/compare/326535c5c5eb...d1ce834356c5
<_whitenotifier-8> [amaranth-lang/amaranth-lang.github.io] github-merge-queue[bot] d1ce834 - Deploying to main from @ amaranth-lang/amaranth@5689b6bc5a55fe1e634883e3fdebe8981ae3981b 🚀
lightleopard[m] has quit [Quit: Idle timeout reached: 172800s]