mirror of
https://github.com/NawfalMotii79/PLFM_RADAR.git
synced 2026-06-09 15:07:14 +00:00
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:
@@ -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()
|
||||
|
||||
@@ -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]},")
|
||||
|
||||
Reference in New Issue
Block a user