diff options
author | Bert Lange <b.lange@fzd.de> | 2011-01-11 10:53:00 +0100 |
---|---|---|
committer | Bert Lange <b.lange@fzd.de> | 2011-01-11 10:53:00 +0100 |
commit | a420a87b3c322aa692c9d82b0a4b641dbf1d60ed (patch) | |
tree | 6f3c9c112d14ca4ff0dc816786d19a13599f1b33 /treemap/Makefile | |
parent | 83148d9ec0772f4d4989e3268760d4be56a6dfcd (diff) | |
download | zpu-a420a87b3c322aa692c9d82b0a4b641dbf1d60ed.zip zpu-a420a87b3c322aa692c9d82b0a4b641dbf1d60ed.tar.gz |
change: to get more from report
add: spartan6 bram support
Diffstat (limited to 'treemap/Makefile')
-rw-r--r-- | treemap/Makefile | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/treemap/Makefile b/treemap/Makefile index 6f933de..c4076c4 100644 --- a/treemap/Makefile +++ b/treemap/Makefile @@ -1,17 +1,45 @@ +TOP = top +DIR = ../s3estarter/syn/xst + +#TOP = spartan6_top +#DIR = ../beam_position_monitor/hardware/board_sp601/synthese/xst + + +# derived Variables +MAPREPORTXML = $(DIR)/$(TOP)_map.xrpt +MAPREPORT = $(DIR)/$(TOP)_map.mrp + + +start = $(shell grep --line-number "^Logic Utilization:" $(DIR)/$(TOP)_map.mrp | cut -d":" -f1) +end = $(shell grep --line-number "^Peak Memory Usage:" $(DIR)/$(TOP)_map.mrp | cut -d":" -f1) help: @echo "run - run Treeviz" @echo "convert - convert data" + @echo "util - grep for utilization" @echo "clean - tidy up" run: ressources.xml - java -jar Treeviz/dist/Treeviz.jar $* + java -jar Treeviz/dist/Treeviz.jar $< convert: ressources.xml -ressources.xml: - saxon-xslt ../s3estarter/syn/xst/top_map.xrpt convert.xsl > tmp.xml + +# useful for printing with graphic report +# cut lines beetween "Logic Utilization" and "Average Fanout..." +util: $(MAPREPORT) + @sed -n '/Logic Utilization:/,/^Average Fanout of Non-Clock Nets:/p' $(MAPREPORT) + +# not so useful -> confusing if hierachy to deep +# cut lines from "Section 13" (2nd occurence) and end of file +util_hier: $(MAPREPORT) + @tail -n +$(shell grep --line-number "^Section 13" $(MAPREPORT) | tail -1 | cut -d":" -f1) $(MAPREPORT) + + + +ressources.xml: $(MAPREPORTXML) + saxon-xslt $(MAPREPORTXML) convert.xsl > tmp.xml # prune empty lines with sed sed -e '/^[ ]*$$/d' tmp.xml > ressources.xml # cleanup |