<mathu>
so i'm trying to write a module representing a device with two buttons that outputs true if both are pressed and i have some questions. here's what i'm working from: device https://pastebin.com/gPb35ssn, simulator script https://pastebin.com/inL0NGRv (typing questions next)
<mathu>
first question is: amaranth yells at me for not having a sync domain but it feels like i don't really need one. `out` only changes if one of the inputs does which is `comb` domain stuff, right?
<mathu>
second question is: would two buttons typically be represented as a single Signal(2) or as two Signal(1)s?
<mathu>
third question: in the test driver script i try to iterate through the Signal(2) to set all the bits to 1. just to see if it'd work. it doesn't - i think that's a python question more than an amaranth one, but i'm wondering if hardware people would approach this with a bitwise operation instead of a loop anyway
<mathu>
i'm new to hardware/HDLs/amaranth if you can't tell haha. just thought it'd be fun to putz with since the simulator -> gtkwave iteration loop was so easy to set up
smkz has quit [Ping timeout: 260 seconds]
smkz has joined #amaranth-lang
nelgau has quit [Read error: Connection reset by peer]