ice40: Add ice40_braminit pass to allow initialization of BRAM from file
authorSylvain Munaut <tnt@246tNt.com>
Thu, 7 Mar 2019 22:48:10 +0000 (23:48 +0100)
committerSylvain Munaut <tnt@246tNt.com>
Thu, 7 Mar 2019 23:15:46 +0000 (00:15 +0100)
commite71055cfe8f3d90e157174b1fd83a06487a0a6a2
tree7459b8be81634dbdb1602b79c3d470b2c6992603
parent7a40294e93490fa462343244b1e2881c3c249c3f
ice40: Add ice40_braminit pass to allow initialization of BRAM from file

This adds a INIT_FILE attribute to the SB_RAM40_4K blocks that will
initialize content from a hex file. Same behavior is imlemented in the
simulation model and in a new pass for actual synthesis

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
techlibs/ice40/Makefile.inc
techlibs/ice40/cells_sim.v
techlibs/ice40/ice40_braminit.cc [new file with mode: 0644]