Merge pull request #127 from Formatted/fix/three-bugs-onto-develop

fix: three utility bugs in compare, LUT, and triangular waveform scripts
This commit is contained in:
NawfalMotii79
2026-05-06 20:11:36 +01:00
committed by GitHub
3 changed files with 18 additions and 8 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ plt.xlim(0, (fmax+fmax/10))
plt.ylim(0, 20)
plt.subplot(122)
plt.plot(2*n, y)
plt.plot(t, x)
plt.xlabel('Time (s)')
plt.ylabel('Amplitude')
plt.tight_layout()
+1 -1
View File
@@ -21,4 +21,4 @@ y_scaled = np.round(y * 127.5).astype(int) # Scale to 8-bit range (0-255)
# Print values in Verilog-friendly format
for _i in range(n):
pass
print(f"8'd{y_scaled[_i]},")