https://www.silicon-russia.com/2017/02/09/work-in-progress-mipsfpga-2-0-lab-yp3-light-sensor/
Work in progress: MIPSfpga 2.0. Lab YP3 Draft 1 - Integrating a peripheral: light sensor example