fix: three utility bugs in compare, LUT, and triangular waveform scripts

- compare.py: capture max_abs_error return values and add pass/fail
  check (was silently discarded, missing outlier detection)
- LUT.py: replace no-op pass with actual print of 8-bit Verilog values
- Gen_Triangular.py: fix plt.plot(2*n, y) -> plt.plot(t, x) scalar vs
  array bug that produced broken time-domain plot
This commit is contained in:
Formatted
2026-04-24 02:00:00 +00:00
committed by Roni Vegh
parent a8aefc4f61
commit 2b5c6592df
3 changed files with 18 additions and 8 deletions
+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]},")