ecp5: Adding BRAM initialisation and config
[yosys.git] / techlibs / ecp5 / Makefile.inc
1
2 OBJS += techlibs/ecp5/synth_ecp5.o
3
4 $(eval $(call add_share_file,share/ecp5,techlibs/ecp5/cells_map.v))
5 $(eval $(call add_share_file,share/ecp5,techlibs/ecp5/cells_sim.v))
6 $(eval $(call add_share_file,share/ecp5,techlibs/ecp5/drams_map.v))
7 $(eval $(call add_share_file,share/ecp5,techlibs/ecp5/dram.txt))
8 $(eval $(call add_share_file,share/ecp5,techlibs/ecp5/bram.txt))
9 $(eval $(call add_share_file,share/ecp5,techlibs/ecp5/arith_map.v))
10
11 EXTRA_OBJS += techlibs/ecp5/brams_init.mk
12 .SECONDARY: techlibs/ecp5/brams_init.mk
13
14 techlibs/ecp5/brams_init.mk: techlibs/ecp5/brams_init.py
15 $(Q) mkdir -p techlibs/ecp5
16 $(P) python3 $<
17 $(Q) touch $@
18
19 techlibs/ecp5/bram_init_1_2_4.vh: techlibs/ecp5/brams_init.mk
20 techlibs/ecp5/bram_init_9_18_36.vh: techlibs/ecp5/brams_init.mk
21
22 $(eval $(call add_share_file,share/ecp5,techlibs/ecp5/bram_init_1_2_4.vh))
23 $(eval $(call add_share_file,share/ecp5,techlibs/ecp5/bram_init_9_18_36.vh))