-
Notifications
You must be signed in to change notification settings - Fork 903
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pmgen: Move passes out of pmgen folder
Techlib pmgens are now in relevant techlibs/*. `peepopt` pmgens are now in passes/opt. `test_pmgen` is still in passes/pmgen. Update `Makefile.inc` and `.gitignore` file(s) to match new `*_pm.h` location, as well as the `#include`s. Change default `%_pm.h` make target to `techlibs/%_pm.h` and move it to the top level Makefile. Update pmgen target to use `$(notdir $*)` (where `$*` is the part of the file name that matched the '%' in the target) instead of `$(subst _pm.h,,$(notdir $@))`. Also remove the `mkdir` part of the command, since the existence of `%.pmg` means that `$(dir $@)` must already exist.
- Loading branch information
1 parent
18a7c00
commit 837ff82
Showing
31 changed files
with
71 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/peepopt*_pm.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,10 @@ | ||
%_pm.h: passes/pmgen/pmgen.py %.pmg | ||
$(P) mkdir -p $(dir $@) && $(PYTHON_EXECUTABLE) $< -o $@ -p $(subst _pm.h,,$(notdir $@)) $(filter-out $<,$^) | ||
passes/pmgen/%_pm.h: passes/pmgen/pmgen.py passes/pmgen/%.pmg | ||
$(P) $(PYTHON_EXECUTABLE) $< -o $@ -p $(notdir $*) $(filter-out $<,$^) | ||
|
||
# -------------------------------------- | ||
|
||
OBJS += passes/pmgen/test_pmgen.o | ||
GENFILES += passes/pmgen/test_pmgen_pm.h | ||
passes/pmgen/test_pmgen.o: passes/pmgen/test_pmgen_pm.h passes/pmgen/ice40_dsp_pm.h passes/pmgen/peepopt_pm.h passes/pmgen/xilinx_srl_pm.h | ||
passes/pmgen/test_pmgen.o: passes/pmgen/test_pmgen_pm.h techlibs/ice40/ice40_dsp_pm.h techlibs/xilinx/xilinx_srl_pm.h | ||
$(eval $(call add_extra_objs,passes/pmgen/test_pmgen_pm.h)) | ||
|
||
# -------------------------------------- | ||
|
||
OBJS += passes/pmgen/ice40_dsp.o | ||
GENFILES += passes/pmgen/ice40_dsp_pm.h | ||
passes/pmgen/ice40_dsp.o: passes/pmgen/ice40_dsp_pm.h | ||
$(eval $(call add_extra_objs,passes/pmgen/ice40_dsp_pm.h)) | ||
|
||
# -------------------------------------- | ||
|
||
OBJS += passes/pmgen/ice40_wrapcarry.o | ||
GENFILES += passes/pmgen/ice40_wrapcarry_pm.h | ||
passes/pmgen/ice40_wrapcarry.o: passes/pmgen/ice40_wrapcarry_pm.h | ||
$(eval $(call add_extra_objs,passes/pmgen/ice40_wrapcarry_pm.h)) | ||
|
||
# -------------------------------------- | ||
|
||
OBJS += passes/pmgen/xilinx_dsp.o | ||
GENFILES += passes/pmgen/xilinx_dsp_pm.h | ||
GENFILES += passes/pmgen/xilinx_dsp48a_pm.h | ||
GENFILES += passes/pmgen/xilinx_dsp_CREG_pm.h | ||
GENFILES += passes/pmgen/xilinx_dsp_cascade_pm.h | ||
passes/pmgen/xilinx_dsp.o: passes/pmgen/xilinx_dsp_pm.h passes/pmgen/xilinx_dsp48a_pm.h passes/pmgen/xilinx_dsp_CREG_pm.h passes/pmgen/xilinx_dsp_cascade_pm.h | ||
$(eval $(call add_extra_objs,passes/pmgen/xilinx_dsp_pm.h)) | ||
$(eval $(call add_extra_objs,passes/pmgen/xilinx_dsp48a_pm.h)) | ||
$(eval $(call add_extra_objs,passes/pmgen/xilinx_dsp_CREG_pm.h)) | ||
$(eval $(call add_extra_objs,passes/pmgen/xilinx_dsp_cascade_pm.h)) | ||
|
||
# -------------------------------------- | ||
|
||
OBJS += passes/pmgen/microchip_dsp.o | ||
GENFILES += passes/pmgen/microchip_dsp_pm.h | ||
GENFILES += passes/pmgen/microchip_dsp_CREG_pm.h | ||
GENFILES += passes/pmgen/microchip_dsp_cascade_pm.h | ||
passes/pmgen/microchip_dsp.o: passes/pmgen/microchip_dsp_pm.h passes/pmgen/microchip_dsp_CREG_pm.h passes/pmgen/microchip_dsp_cascade_pm.h | ||
$(eval $(call add_extra_objs,passes/pmgen/microchip_dsp_pm.h)) | ||
$(eval $(call add_extra_objs,passes/pmgen/microchip_dsp_CREG_pm.h)) | ||
$(eval $(call add_extra_objs,passes/pmgen/microchip_dsp_cascade_pm.h)) | ||
|
||
# -------------------------------------- | ||
|
||
OBJS += passes/pmgen/peepopt.o | ||
GENFILES += passes/pmgen/peepopt_pm.h | ||
passes/pmgen/peepopt.o: passes/pmgen/peepopt_pm.h | ||
$(eval $(call add_extra_objs,passes/pmgen/peepopt_pm.h)) | ||
|
||
PEEPOPT_PATTERN = passes/pmgen/peepopt_shiftmul_right.pmg | ||
PEEPOPT_PATTERN += passes/pmgen/peepopt_shiftmul_left.pmg | ||
PEEPOPT_PATTERN += passes/pmgen/peepopt_shiftadd.pmg | ||
PEEPOPT_PATTERN += passes/pmgen/peepopt_muldiv.pmg | ||
PEEPOPT_PATTERN += passes/pmgen/peepopt_formal_clockgateff.pmg | ||
|
||
passes/pmgen/peepopt_pm.h: passes/pmgen/pmgen.py $(PEEPOPT_PATTERN) | ||
$(P) mkdir -p passes/pmgen && $(PYTHON_EXECUTABLE) $< -o $@ -p peepopt $(filter-out $<,$^) | ||
|
||
# -------------------------------------- | ||
|
||
OBJS += passes/pmgen/xilinx_srl.o | ||
GENFILES += passes/pmgen/xilinx_srl_pm.h | ||
passes/pmgen/xilinx_srl.o: passes/pmgen/xilinx_srl_pm.h | ||
$(eval $(call add_extra_objs,passes/pmgen/xilinx_srl_pm.h)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
blackbox.v | ||
*_pm.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.