In logic synthesis with LiteX, the design doesn't fit on the target FPGA board, so I analyzed the area. The graph below shows only the LUT area, which is where the problem lies.

The LSU and the BRU take up quite a lot of area. I don't really understand why the BRU has become so large.
It might be worth cutting the resources down hard and somehow making it fit on the FPGA, but even if I keep slashing resources any further, it's still no good. The resources don't fit on the Arty-A7 35T.

There was no other option, so I tried logic synthesis on a slightly larger FPGA (Nexys4 DDR). This one seems to fit properly.
+----------------------------+-------+-------+-----------+-------+ | Site Type | Used | Fixed | Available | Util% | +----------------------------+-------+-------+-----------+-------+ | Slice LUTs | 27910 | 0 | 63400 | 44.02 | | LUT as Logic | 25413 | 0 | 63400 | 40.08 | | LUT as Memory | 2497 | 0 | 19000 | 13.14 | | LUT as Distributed RAM | 2494 | 0 | | | | LUT as Shift Register | 3 | 0 | | | | Slice Registers | 25021 | 0 | 126800 | 19.73 | | Register as Flip Flop | 24914 | 0 | 126800 | 19.65 | | Register as Latch | 107 | 0 | 126800 | 0.08 | | F7 Muxes | 2348 | 0 | 31700 | 7.41 | | F8 Muxes | 244 | 0 | 15850 | 1.54 | +----------------------------+-------+-------+-----------+-------+
The problem is the operating frequency. Timing is not met at the Nexys4 DDR's operating frequency.
https://msyksphinz-en.hatenablog.com/entry/2023/04/19/040000msyksphinz-en.hatenablog.com
https://msyksphinz-en.hatenablog.com/entry/2023/04/18/040000msyksphinz-en.hatenablog.com
https://msyksphinz-en.hatenablog.com/entry/2023/04/17/040000msyksphinz-en.hatenablog.com
https://msyksphinz-en.hatenablog.com/entry/2023/04/11/040000msyksphinz-en.hatenablog.com
https://msyksphinz-en.hatenablog.com/entry/2023/04/09/040000msyksphinz-en.hatenablog.com
https://msyksphinz-en.hatenablog.com/entry/2023/04/08/040000msyksphinz-en.hatenablog.com
https://msyksphinz-en.hatenablog.com/entry/2023/04/05/040000msyksphinz-en.hatenablog.com
https://msyksphinz-en.hatenablog.com/entry/2023/04/04/040000msyksphinz-en.hatenablog.com
This is an English translation of the original Japanese post: LiteXによるSoC環境構築を試行する (7. FPGAの論理合成確認)
