Many SPI to MII conversions are used on microcontrollers, but there is a lack of FPGA implementation on the entire GitHub.
The difficulty of implementation mainly lies in compatibility with existing Linux drivers.
datasheet of DM9051 like this
https://www.davicom.com.tw/pddocs/DM9051(I)-12-MCO-DS-P01_03302015.pdf
