Add ice40 box files
[yosys.git] / techlibs / ice40 / Makefile.inc
1
2 OBJS += techlibs/ice40/synth_ice40.o
3 OBJS += techlibs/ice40/ice40_braminit.o
4 OBJS += techlibs/ice40/ice40_ffssr.o
5 OBJS += techlibs/ice40/ice40_ffinit.o
6 OBJS += techlibs/ice40/ice40_opt.o
7 OBJS += techlibs/ice40/ice40_unlut.o
8
9 GENFILES += techlibs/ice40/brams_init1.vh
10 GENFILES += techlibs/ice40/brams_init2.vh
11 GENFILES += techlibs/ice40/brams_init3.vh
12
13 EXTRA_OBJS += techlibs/ice40/brams_init.mk
14 .SECONDARY: techlibs/ice40/brams_init.mk
15
16 techlibs/ice40/brams_init.mk: techlibs/ice40/brams_init.py
17 $(Q) mkdir -p techlibs/ice40
18 $(P) python3 $<
19 $(Q) touch techlibs/ice40/brams_init.mk
20
21 techlibs/ice40/brams_init1.vh: techlibs/ice40/brams_init.mk
22 techlibs/ice40/brams_init2.vh: techlibs/ice40/brams_init.mk
23 techlibs/ice40/brams_init3.vh: techlibs/ice40/brams_init.mk
24
25 $(eval $(call add_share_file,share/ice40,techlibs/ice40/arith_map.v))
26 $(eval $(call add_share_file,share/ice40,techlibs/ice40/cells_map.v))
27 $(eval $(call add_share_file,share/ice40,techlibs/ice40/cells_sim.v))
28 $(eval $(call add_share_file,share/ice40,techlibs/ice40/latches_map.v))
29 $(eval $(call add_share_file,share/ice40,techlibs/ice40/brams.txt))
30 $(eval $(call add_share_file,share/ice40,techlibs/ice40/brams_map.v))
31 $(eval $(call add_share_file,share/ice40,techlibs/ice40/cells.box))
32 $(eval $(call add_share_file,share/ice40,techlibs/ice40/cells_box.v))
33 $(eval $(call add_share_file,share/ice40,techlibs/ice40/lut.lut))
34
35 $(eval $(call add_gen_share_file,share/ice40,techlibs/ice40/brams_init1.vh))
36 $(eval $(call add_gen_share_file,share/ice40,techlibs/ice40/brams_init2.vh))
37 $(eval $(call add_gen_share_file,share/ice40,techlibs/ice40/brams_init3.vh))
38