2019-01-13 03:57:11 -06:00
|
|
|
OBJS += passes/pmgen/ice40_dsp.o
|
2019-08-12 14:06:45 -05:00
|
|
|
OBJS += passes/pmgen/ice40_wrapcarry.o
|
2019-04-29 06:38:56 -05:00
|
|
|
OBJS += passes/pmgen/peepopt.o
|
|
|
|
|
|
|
|
# --------------------------------------
|
2019-01-13 03:57:11 -06:00
|
|
|
|
|
|
|
passes/pmgen/ice40_dsp.o: passes/pmgen/ice40_dsp_pm.h
|
|
|
|
EXTRA_OBJS += passes/pmgen/ice40_dsp_pm.h
|
|
|
|
.SECONDARY: passes/pmgen/ice40_dsp_pm.h
|
|
|
|
|
2019-02-28 16:00:58 -06:00
|
|
|
passes/pmgen/ice40_dsp_pm.h: passes/pmgen/pmgen.py passes/pmgen/ice40_dsp.pmg
|
2019-04-29 06:38:56 -05:00
|
|
|
$(P) mkdir -p passes/pmgen && python3 $< -o $@ -p ice40_dsp $(filter-out $<,$^)
|
|
|
|
|
|
|
|
# --------------------------------------
|
|
|
|
|
2019-08-12 14:06:45 -05:00
|
|
|
passes/pmgen/ice40_wrapcarry.o: passes/pmgen/ice40_wrapcarry_pm.h
|
|
|
|
EXTRA_OBJS += passes/pmgen/ice40_wrapcarry_pm.h
|
|
|
|
.SECONDARY: passes/pmgen/ice40_wrapcarry_pm.h
|
|
|
|
|
|
|
|
passes/pmgen/ice40_wrapcarry_pm.h: passes/pmgen/pmgen.py passes/pmgen/ice40_wrapcarry.pmg
|
|
|
|
$(P) mkdir -p passes/pmgen && python3 $< -o $@ -p ice40_wrapcarry $(filter-out $<,$^)
|
|
|
|
|
|
|
|
# --------------------------------------
|
|
|
|
|
2019-04-29 06:38:56 -05:00
|
|
|
passes/pmgen/peepopt.o: passes/pmgen/peepopt_pm.h
|
|
|
|
EXTRA_OBJS += passes/pmgen/peepopt_pm.h
|
|
|
|
.SECONDARY: passes/pmgen/peepopt_pm.h
|
|
|
|
|
2019-04-30 04:25:15 -05:00
|
|
|
PEEPOPT_PATTERN = passes/pmgen/peepopt_shiftmul.pmg
|
|
|
|
PEEPOPT_PATTERN += passes/pmgen/peepopt_muldiv.pmg
|
2019-04-30 01:04:22 -05:00
|
|
|
|
|
|
|
passes/pmgen/peepopt_pm.h: passes/pmgen/pmgen.py $(PEEPOPT_PATTERN)
|
2019-04-29 06:38:56 -05:00
|
|
|
$(P) mkdir -p passes/pmgen && python3 $< -o $@ -p peepopt $(filter-out $<,$^)
|