01:15
frgo has joined #amaranth-lang
01:32
_whitenotifier-8 has joined #amaranth-lang
01:35
frgo has quit [Remote host closed the connection]
01:53
frgo has joined #amaranth-lang
01:57
frgo has quit [Ping timeout: 248 seconds]
02:09
frgo has joined #amaranth-lang
02:14
frgo has quit [Ping timeout: 260 seconds]
02:19
frgo has joined #amaranth-lang
02:23
frgo has quit [Ping timeout: 260 seconds]
02:36
frgo has joined #amaranth-lang
02:41
frgo has quit [Ping timeout: 245 seconds]
02:53
frgo has joined #amaranth-lang
03:07
_whitelogger has joined #amaranth-lang
03:09
frgo has quit [Ping timeout: 244 seconds]
03:20
Degi has quit [Ping timeout: 245 seconds]
03:22
frgo has joined #amaranth-lang
03:22
Degi has joined #amaranth-lang
03:49
_whitelogger has joined #amaranth-lang
04:01
peepsalot has quit [Quit: Connection reset by peep]
04:09
peepsalot has joined #amaranth-lang
04:25
frgo has quit [Ping timeout: 252 seconds]
04:27
peepsalot has quit [Quit: Connection reset by peep]
04:29
peepsalot has joined #amaranth-lang
04:37
frgo has joined #amaranth-lang
04:41
frgo has quit [Ping timeout: 252 seconds]
04:53
frgo has joined #amaranth-lang
04:58
frgo has quit [Ping timeout: 260 seconds]
05:10
frgo has joined #amaranth-lang
05:17
frgo has quit [Ping timeout: 276 seconds]
05:29
frgo has joined #amaranth-lang
05:33
frgo has quit [Ping timeout: 252 seconds]
05:38
frgo has joined #amaranth-lang
05:42
frgo has quit [Ping timeout: 244 seconds]
05:55
frgo has joined #amaranth-lang
06:00
frgo has quit [Ping timeout: 260 seconds]
06:12
frgo has joined #amaranth-lang
06:14
frgo has quit [Read error: Connection reset by peer]
06:15
frgo has joined #amaranth-lang
06:19
frgo has quit [Ping timeout: 252 seconds]
06:31
frgo has joined #amaranth-lang
06:36
frgo has quit [Ping timeout: 260 seconds]
06:48
frgo has joined #amaranth-lang
06:52
frgo has quit [Ping timeout: 245 seconds]
07:06
frgo has joined #amaranth-lang
07:19
frgo has quit [Ping timeout: 276 seconds]
07:32
frgo has joined #amaranth-lang
07:36
frgo has quit [Ping timeout: 260 seconds]
07:50
frgo has joined #amaranth-lang
07:55
frgo has quit [Ping timeout: 276 seconds]
08:06
frgo has joined #amaranth-lang
08:15
frgo has quit [Ping timeout: 272 seconds]
08:16
frgo has joined #amaranth-lang
08:26
Arcar has joined #amaranth-lang
08:28
Arcar has quit [Remote host closed the connection]
09:19
frgo has quit [Ping timeout: 272 seconds]
09:33
frgo has joined #amaranth-lang
09:38
frgo has quit [Ping timeout: 276 seconds]
09:50
frgo has joined #amaranth-lang
09:55
frgo has quit [Ping timeout: 260 seconds]
10:06
frgo has joined #amaranth-lang
10:11
frgo has quit [Ping timeout: 248 seconds]
10:17
frgo has joined #amaranth-lang
10:22
frgo has quit [Ping timeout: 272 seconds]
10:34
frgo has joined #amaranth-lang
10:38
frgo has quit [Ping timeout: 252 seconds]
10:50
frgo has joined #amaranth-lang
11:54
frgo has quit [Ping timeout: 276 seconds]
12:07
frgo has joined #amaranth-lang
12:11
frgo has quit [Ping timeout: 260 seconds]
12:18
frgo has joined #amaranth-lang
12:23
frgo has quit [Ping timeout: 252 seconds]
12:34
frgo has joined #amaranth-lang
14:42
frgo has quit [Ping timeout: 248 seconds]
14:48
frgo has joined #amaranth-lang
15:20
frgo has quit [Quit: Leaving...]
16:12
<
benny2366[m] >
ok so continuing my amaranth saga continues so when I run my simulation code i get the error ```line 4, in <module>
16:12
<
benny2366[m] >
dut = buttontoled()
16:12
<
benny2366[m] >
TypeError: 'module' object is not callable```
16:14
<
benny2366[m] >
i asume it has a problem with ``` m = Module()
16:14
<
benny2366[m] >
from my main code
16:15
<
whitequark[cis] >
no
16:15
<
whitequark[cis] >
it's pointing at the exact line it has an issue with
16:16
<
whitequark[cis] >
what is the contents of your buttontoled.py file?
16:16
grabhanem[m] has joined #amaranth-lang
16:16
<
grabhanem[m] >
capitalization?
16:16
<
whitequark[cis] >
you need from buttontoled import ButtonToLed
16:17
<
whitequark[cis] >
the file itself becomes an object in python (module, vs Module from Amaranth) and it cannot be called with ()
16:17
<
whitequark[cis] >
you need to call (construct) something (your ButtonToLed class) from within the python module, not the python module itself
16:19
<
benny2366[m] >
hu ?
16:20
<
whitequark[cis] >
i don't know how to put this in any clearer terms, sorry
16:20
<
benny2366[m] >
is ok
16:21
<
galibert[m] >
alternatively, dut = buttontoled.ButtonToLed()
16:22
<
benny2366[m] >
NameError: name 'buttontoled' is not defined
16:22
<
galibert[m] >
you still need the import buttontoled
16:23
<
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
16:24
<
galibert[m] >
alternatively, from buttontoled import ButtonToLed only gets the class, which you reach then by a bare ButtonToLed
16:24
<
galibert[m] >
you have to choose whether to import the full module/.py, or specific elements of that module
16:24
<
galibert[m] >
(technically, you can do both, but avoid it)
16:25
<
benny2366[m] >
I asume the full "import" is what i need ?
16:25
<
galibert[m] >
there are merits to both ways, you have to choose one
16:26
<
whitequark[cis] >
(we literally recommend doing both with lib.wiring)
16:26
<
galibert[m] >
(yeah but lib.wiring is special in some ways)
16:30
<
benny2366[m] >
are there any other examples other then the one from the docs?
16:33
<
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
16:34
<
whitequark[cis] >
and learning two related but different languages at once can be pretty challenging
18:15
threeflour[m] has quit [Quit: Idle timeout reached: 172800s]
19:04
<
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
19:07
<
tpw_rules >
i guess anything with a yosys toolchain?
19:08
<
whitequark[cis] >
oh, yeah, not the xilinx boards
19:09
<
tpw_rules >
nor the one you hate so much you forgot
19:10
<
whitequark[cis] >
therapist: intel isn't real and cannot hurt you
19:10
<
tpw_rules >
interra
19:10
<
tpw_rules >
intera*
20:48
<
_whitenotifier-8 >
[amaranth-lang/amaranth-lang.github.io] whitequark 326535c - Deploying to main from @ amaranth-lang/amaranth@18402c63a788f4b77644e230df81982f726dd605 🚀
21:07
jorolf[m] has quit [Quit: Idle timeout reached: 172800s]
21:08
<
_whitenotifier-8 >
[amaranth-lang/amaranth] whitequark e5ae491 - build.plat: add `build_{{name}}.json` output.
21:08
<
_whitenotifier-8 >
[amaranth-lang/amaranth] whitequark 4e1ac19 - docs: exclude sourceforge URLs from linkcheck.
21:08
<
_whitenotifier-8 >
[amaranth-lang/amaranth] whitequark 5689b6b - docs: update changelog.
21:09
<
_whitenotifier-8 >
[amaranth-lang/amaranth-lang.github.io] github-merge-queue[bot] d1ce834 - Deploying to main from @ amaranth-lang/amaranth@5689b6bc5a55fe1e634883e3fdebe8981ae3981b 🚀
21:56
lightleopard[m] has quit [Quit: Idle timeout reached: 172800s]