summaryrefslogtreecommitdiffstats
path: root/treemap
diff options
context:
space:
mode:
authorBert Lange <b.lange@fzd.de>2011-01-11 10:53:00 +0100
committerBert Lange <b.lange@fzd.de>2011-01-11 10:53:00 +0100
commita420a87b3c322aa692c9d82b0a4b641dbf1d60ed (patch)
tree6f3c9c112d14ca4ff0dc816786d19a13599f1b33 /treemap
parent83148d9ec0772f4d4989e3268760d4be56a6dfcd (diff)
downloadzpu-a420a87b3c322aa692c9d82b0a4b641dbf1d60ed.zip
zpu-a420a87b3c322aa692c9d82b0a4b641dbf1d60ed.tar.gz
change: to get more from report
add: spartan6 bram support
Diffstat (limited to 'treemap')
-rw-r--r--treemap/Makefile34
-rwxr-xr-xtreemap/convert.xsl2
2 files changed, 32 insertions, 4 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
diff --git a/treemap/convert.xsl b/treemap/convert.xsl
index 62f8dab..b0dd494 100755
--- a/treemap/convert.xsl
+++ b/treemap/convert.xsl
@@ -46,7 +46,7 @@
<xsl:template name="brams">
<xsl:for-each select="item">
- <xsl:if test="@stringID='MAP_BRAM'">
+ <xsl:if test="@stringID='MAP_BRAM' or @stringID='MAP_BRAM_FIFO'">
<xsl:value-of select="@value" />
<!-- <xsl:value-of select="@ACCUMULATED" />-->
</xsl:if>
OpenPOWER on IntegriCloud