tensil-ai / tensil

Open source machine learning accelerators
https://www.tensil.ai
Other
348 stars 28 forks source link

Support Xilinx BRAM/URAM with marcos #72

Closed petrohi closed 2 years ago

petrohi commented 2 years ago

This PR introduces --use-xilinx-ultra-ram argument to the compiler command line. When set to true it will use Xilinx xpm_memory_tdpram macro to generate local memory as Ultra RAM and accumulators as Block RAM. When set to false it keeps the current behavior of generating standard Verilog RAM from which Xilinx will infer Block RAM for both local memory and accumulators.

ZCU104 architecture is adjusted for using Ultra RAM:

image

Implementation (local memory in pink, accumulators in green):

image

shortcut-integration[bot] commented 2 years ago

This pull request has been linked to Shortcut Story #445: Support Xilinx BRAM/URAM with marcos.