diff --git a/Rapport/Bandwidth/memory_cycles.png b/Rapport/Bandwidth/memory_cycles.png index 579856ced..05463909a 100644 Binary files a/Rapport/Bandwidth/memory_cycles.png and b/Rapport/Bandwidth/memory_cycles.png differ diff --git a/Rapport/Bandwidth/plot.py b/Rapport/Bandwidth/plot.py index 35e09b706..9c898b60b 100644 --- a/Rapport/Bandwidth/plot.py +++ b/Rapport/Bandwidth/plot.py @@ -13,6 +13,26 @@ plt.scatter(X, Y_CPY, color="b", marker="x", label="RISCV COPY") plt.scatter(X, YA_MEM, color="r", label="ARM MEM") plt.scatter(X, YA_CPY, color="r",marker="x", label="ARM COPY") +x = np.array(X).reshape(-1, 1) +y = np.array(Y_MEM).reshape(-1, 1) +y2 = np.array(YA_MEM).reshape(-1, 1) +reg = LinearRegression().fit(x, y) +reg2 = LinearRegression().fit(x, y2) +print("score obtenu : " + str(reg.score(x, y))) +print("score obtenu : " + str(reg2.score(x, y2))) +print("attente à zéro : {}".format(reg.intercept_)) +print("attente à zéro : {}".format(reg2.intercept_)) + +x_lin = [0, max(X)] +y_lin = [reg.predict(np.array([0]).reshape(-1, 1)), reg.predict(np.array([x_lin[1]]).reshape(-1, 1))] +y_lin2 = [reg2.predict(np.array([0]).reshape(-1, 1)), reg2.predict(np.array([x_lin[1]]).reshape(-1, 1))] +y_lin = [y_lin[0][0][0], y_lin[1][0][0]] +y_lin2 = [y_lin2[0][0][0], y_lin2[1][0][0]] + +plt.plot(x_lin, y_lin, color = "b", label="RegLin score : {:.4f}".format(reg.score(x, y))) +plt.plot(x_lin, y_lin2, color = "r", label="RegLin score : {:.4f}".format(reg2.score(x, y2))) + + plt.xlim([0, 1024]) plt.ylim([50, 32000]) plt.legend() diff --git a/proj_quartus/db/test.db_info b/proj_quartus/db/test.db_info index da978ac14..33cf19668 100644 --- a/proj_quartus/db/test.db_info +++ b/proj_quartus/db/test.db_info @@ -1,3 +1,3 @@ Quartus_Version = Version 22.1std.0 Build 915 10/25/2022 SC Standard Edition Version_Index = 553882368 -Creation_Time = Thu Mar 9 10:59:19 2023 +Creation_Time = Thu Mar 9 16:31:59 2023 diff --git a/proj_quartus/test.qws b/proj_quartus/test.qws deleted file mode 100644 index 3bdb57141..000000000 Binary files a/proj_quartus/test.qws and /dev/null differ