From dddca8acbbbb3aecfb849586fd2cdb3d42c12fef Mon Sep 17 00:00:00 2001 From: Baudouin Chauviere Date: Wed, 24 Oct 2018 17:34:51 -0600 Subject: [PATCH] Global Makefile and typo correction --- Makefile | 38 +++++++++++++++++++++++ fpga_flow/benchmarks/fpga_spice_bench.txt | 2 +- fpga_flow/benchmarks/mcnc_big20.txt | 2 +- fpga_flow/generate_config.sh | 4 +-- 4 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..7e30947ff --- /dev/null +++ b/Makefile @@ -0,0 +1,38 @@ +########################################################################################## +# Makefile to build CAD tools in OpenFPGA inspired by Verilog-to-Routing (VTR) Framework # +########################################################################################## + +SUBDIRS = abc_with_bb_support ace2 vpr7_x2p + +all: notifications subdirs + +subdirs: $(SUBDIRS) + +$(SUBDIRS): + @ $(MAKE) -C $@ --no-print-directory + +notifications: +# checks if required packages are installed, and notifies the user if not + @ if cat /etc/issue | grep Ubuntu -c >>/dev/null; then if ! dpkg -l | grep exuberant-ctags -c >>/dev/null; then echo "\n\n\n\n***************************************************************\n* Required package 'ctags' not found. *\n* Type 'make packages' to install all packages, or *\n* 'sudo apt-get install exuberant-ctags' to install manually. *\n***************************************************************\n\n\n\n"; fi; fi + @ if cat /etc/issue | grep Ubuntu -c >>/dev/null; then if ! dpkg -l | grep bison -c >>/dev/null; then echo "\n\n\n\n*****************************************************\n* Required package 'bison' not found. *\n* Type 'make packages' to install all packages, or *\n* 'sudo apt-get install bison' to install manually. *\n*****************************************************\n\n\n\n"; fi; fi + @ if cat /etc/issue | grep Ubuntu -c >>/dev/null; then if ! dpkg -l | grep flex -c >>/dev/null; then echo "\n\n\n\n*****************************************************\n* Required package 'flex' not found. *\n* Type 'make packages' to install all packages, or *\n* 'sudo apt-get install flex' to install manually. *\n*****************************************************\n\n\n\n"; fi; fi + @ if cat /etc/issue | grep Ubuntu -c >>/dev/null; then if ! dpkg -l | grep g++ -c >>/dev/null; then echo "\n\n\n\n*****************************************************\n* Required package 'g++' not found. * \n* Type 'make packages' to install all packages, or *\n* 'sudo apt-get install g++' to install manually. *\n*****************************************************\n\n\n\n"; fi; fi + +packages: +# checks if required packages are installed, and installs them if not + @ if cat /etc/issue | grep Ubuntu -c >>/dev/null; then if ! dpkg -l | grep exuberant-ctags -c >>/dev/null; then sudo apt-get install exuberant-ctags; fi; fi + @ if cat /etc/issue | grep Ubuntu -c >>/dev/null; then if ! dpkg -l | grep bison -c >>/dev/null; then sudo apt-get install bison; fi; fi + @ if cat /etc/issue | grep Ubuntu -c >>/dev/null; then if ! dpkg -l | grep flex -c >>/dev/null; then sudo apt-get install flex; fi; fi + @ if cat /etc/issue | grep Ubuntu -c >>/dev/null; then if ! dpkg -l | grep g++ -c >>/dev/null; then sudo apt-get install g++; fi; fi + @ cd vpr && make packages + +clean: + @ cd abc_with_bb_support && make clean + @ cd ace2 && make clean + @ cd vpr7_x2p && make clean + @ cd vtr_release && make clean + +clean_vpr: + @ cd vpr && make clean + +.PHONY: packages subdirs $(SUBDIRS) \ No newline at end of file diff --git a/fpga_flow/benchmarks/fpga_spice_bench.txt b/fpga_flow/benchmarks/fpga_spice_bench.txt index 3b445d6e9..ee015ad14 100644 --- a/fpga_flow/benchmarks/fpga_spice_bench.txt +++ b/fpga_flow/benchmarks/fpga_spice_bench.txt @@ -1,4 +1,4 @@ -# Circuit Names, fixed routint channel width, +# Circuit Names, fixed routing channel width, s298.blif, 60 elliptic.blif, 60 simple_spi.blif, 60 diff --git a/fpga_flow/benchmarks/mcnc_big20.txt b/fpga_flow/benchmarks/mcnc_big20.txt index 165dd084f..0864e7bef 100644 --- a/fpga_flow/benchmarks/mcnc_big20.txt +++ b/fpga_flow/benchmarks/mcnc_big20.txt @@ -1,4 +1,4 @@ -# Circuit Names, fixed routint channel width, +# Circuit Names, fixed routing channel width, #alu4.blif, 120 #apex2.blif, 120 #apex4.blif, 120 diff --git a/fpga_flow/generate_config.sh b/fpga_flow/generate_config.sh index 69fc03249..05a0d9267 100755 --- a/fpga_flow/generate_config.sh +++ b/fpga_flow/generate_config.sh @@ -1,7 +1,7 @@ #! /bin/sh PATH=$PWD -#DEST=configs/fpga_spice/k6_N10_sram_tsmc40nm_TT.conf -DEST=configs/fpga_spice/test.conf +DEST=configs/fpga_spice/k6_N10_sram_tsmc40nm_TT.conf +#DEST=configs/fpga_spice/test.conf if [ -e "$DEST" ]; then echo "" > $DEST;