面向FPGA硬件综合布线的CPU
Rina
Fable 5.2 wrote a CPU. Real FPGA tools clock it at up to 34 MHz. To get it off the screen and onto a board, Fable wrote a wrapper around it: memory, a serial port and LEDs. Yosys turned it into real FPGA cells for a Lattice ECP5: 2,379 logic cells, 104 flip-flops and 3 blocks of RAM. Then nextpnr gave every cell a real spot on the chip and routed every connection. The whole CPU takes 10% of the chip. Timing analysis traced the slowest path: 14.5 ns out of 20 allowed. It passes at 25 MHz with room to spare. The exact netlist that goes into the bitstream then booted in simulation, printed text through its serial pin and ran Game of Life from its own RAM. 420,000 clock cycles, zero mismatches. The bitstream is ready. It just hasn’t been flashed to a physical board yet.查看原帖