A high performance and small footprint system-on-chip based on Migen