<Barabas>
Hi all, I'm trying to set one bit in a Signal using a python int minus an unsigned Signal as the index, but it gives an error when elaborating: TypeError: Cannot index value with (- (const 3'd4) (sig counter)). This should always give an index between 0 and 3, not sure how it's getting -4? https://pastebin.com/sfzdyPV5
<whitequa1k>
you can't index signals using the [] syntax with expressions, only constants
<whitequa1k>
use .bit_select()
<Barabas>
I see, thanks!
whitequa1k is now known as whitequark
pftbest has quit [Remote host closed the connection]
pftbest has joined #nmigen
pftbest has quit [Remote host closed the connection]
pftbest has joined #nmigen
Barabas has left #nmigen [#nmigen]
chiastre has quit [Ping timeout: 272 seconds]
chiastre has joined #nmigen
someone--else has quit [Ping timeout: 272 seconds]