aboutsummaryrefslogtreecommitdiffstats
path: root/picosoc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-09-21 18:46:09 +0200
committerClifford Wolf <clifford@clifford.at>2017-09-21 18:46:09 +0200
commit45bd9b81ea43668e710489751cb57ceb86ed7d69 (patch)
treedc20adf9fe969b7240acb6a541eae98235c49702 /picosoc
parent0c9dce7bc23a95e2781a993d94e6f8e96c5feb6a (diff)
downloadpicorv32-45bd9b81ea43668e710489751cb57ceb86ed7d69.tar.gz
picorv32-45bd9b81ea43668e710489751cb57ceb86ed7d69.zip
Improve picosoc performance.{py,png}
Diffstat (limited to 'picosoc')
-rw-r--r--picosoc/performance.pngbin37585 -> 33032 bytes
-rw-r--r--picosoc/performance.py5
2 files changed, 3 insertions, 2 deletions
diff --git a/picosoc/performance.png b/picosoc/performance.png
index 3450305..4f7da5b 100644
--- a/picosoc/performance.png
+++ b/picosoc/performance.png
Binary files differ
diff --git a/picosoc/performance.py b/picosoc/performance.py
index a66f5cd..dc1fb52 100644
--- a/picosoc/performance.py
+++ b/picosoc/performance.py
@@ -64,10 +64,10 @@ for line in text.split("\n"):
labels.append(line[0])
values.append(int(line[2], 16))
-plt.figure(figsize=(10, 3))
+plt.figure(figsize=(10, 5))
plt.title("Performance comparison for different PicoSoC SPI flash configurations")
plt.plot(range(len(labels)), values[0] / np.array(values))
-plt.xticks(range(len(labels)), labels, rotation=90)
+plt.xticks(range(len(labels)), labels, rotation=80)
for color, x1, x2 in [["black", 0, 0], ["red", 1, 8], ["green", 9, 16],
["red", 17, 24], ["green", 25, 32], ["red", 33, 40], ["green", 41, 48]]:
@@ -82,5 +82,6 @@ plt.xlim(-1, len(values))
plt.ylim(0, 9)
plt.grid()
+plt.gcf().subplots_adjust(bottom=0.3)
plt.savefig("performance.png")
# plt.show()