rtio-nmigen/artiq/gateware/rtio/input_collector.py