_florent_ changed the topic of #litex to: LiteX FPGA SoC builder and Cores / Github : https://github.com/enjoy-digital, https://github.com/litex-hub / Logs: https://libera.irclog.whitequark.org/litex
tpb has quit [Remote host closed the connection]
tpb has joined #litex
ElfenKaiser has quit [Quit: Konversation terminated!]
Degi has quit [Ping timeout: 276 seconds]
Degi has joined #litex
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #litex
cr1901 has quit [Quit: Leaving]
cr1901 has joined #litex
FabM has joined #litex
FabM has quit [Changing host]
FabM has joined #litex
Momber has joined #litex
<Momber> Hey everyone,
<Momber> I'm currently trying to build litex with working interrupts for the buttons on the arty a7 with vexriscv cpu.
<Momber> When i'm adding the following code to my BaseSoc class
<Momber> self.buttons = GPIOIn(
<Momber>                 pads     = platform.request_all("user_btn"),
<Momber>                 with_irq = self.irq.enabled
<Momber>             )
<Momber> the csr regions get correctly created, but the interrupt lines are not created.
<Momber> In my understanding, the with_irq param should autocreate the interrupts. Am I missing something obvious?
<Momber> My guess is, that the add_irq() function in the _GPIOIRQ class in gpio.py is doing something different than what I expect it to do, or doesn't get called at all.
<Momber> But any help pointing me in the right direction is appreciated. Thank you
<geertu> Momber: Does reading the button state (without interrupts) work?
<Momber> Yes, I can use the buttons_in_read function in the generated csr.h file.
<Momber> What I was expecting for the interrupts, was that in the generated soc.h file I will have a interrupt define for the the buttons aswell. Currently I tried it with the standard generation script, which gives me interrupts for a timer and the uart. With the added button, the list does not get extended for the 4 buttons I would expect something like
<Momber> CONFIG_CPU_INTERRUPTS 4
<Momber> And with a button defined in renode and mapped to the expected address, i get correct values for the buttons_in_read() function based on the button state
<Momber> sry* CONFIG_CPU_INTERRUPTS 6 was what i meant. 1 timer + 1 uart + 4 buttons
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #litex
Momber has quit [Quit: Client closed]
ElfenKaiser has joined #litex
ElfenKaiser has quit [Remote host closed the connection]
ElfenKaiser has joined #litex
FabM has quit [Ping timeout: 260 seconds]
ElfenKaiser has quit [Quit: Konversation terminated!]