added catch for low n syn mon
This commit is contained in:
parent
ae3ecc3d6b
commit
19564a5a91
@ -166,9 +166,10 @@ defproc chip_texel (bd<N_IN> in, out;
|
|||||||
// Otherwise boom.
|
// Otherwise boom.
|
||||||
bool DEV_DEBUG;
|
bool DEV_DEBUG;
|
||||||
pint NSMX4 = N_SYN_MON_X/4; // Self explanatory
|
pint NSMX4 = N_SYN_MON_X/4; // Self explanatory
|
||||||
sigbuf<NSMX4> sb_DEV_DEBUG(.in = register.data[0].d[5].t,
|
sigbuf<std::max(NSMX4,4)> sb_DEV_DEBUG(.in = register.data[0].d[5].t,
|
||||||
.supply = supply);
|
.supply = supply);
|
||||||
DEV_DEBUG = sb_DEV_DEBUG.out[0];
|
DEV_DEBUG = sb_DEV_DEBUG.out[0];
|
||||||
|
[NSMX4 >= 1 ->
|
||||||
AND2_X1 ands_devmon[NSMX4];
|
AND2_X1 ands_devmon[NSMX4];
|
||||||
(i:NSMX4:
|
(i:NSMX4:
|
||||||
ands_devmon[i].a = syn_mon_dec_x.out[1+i*4];
|
ands_devmon[i].a = syn_mon_dec_x.out[1+i*4];
|
||||||
@ -183,6 +184,8 @@ defproc chip_texel (bd<N_IN> in, out;
|
|||||||
syn_mon_x[i] = syn_mon_dec_x.out[i];
|
syn_mon_x[i] = syn_mon_dec_x.out[i];
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -99,6 +99,14 @@ Use -exclude='regex' to specify signals to exclude (or -ex).""")
|
|||||||
if len(r) >= 1:
|
if len(r) >= 1:
|
||||||
include_all_times = True
|
include_all_times = True
|
||||||
|
|
||||||
|
|
||||||
|
# Check if user gave "nowarn" flag
|
||||||
|
plot_warn = True
|
||||||
|
for arg in argv:
|
||||||
|
r = re.findall(r'(-nowarn?)', arg)
|
||||||
|
if len(r) >= 1:
|
||||||
|
plot_warn = False
|
||||||
|
|
||||||
# Get list of all times (before filtering)
|
# Get list of all times (before filtering)
|
||||||
unique_times = np.unique([int(e[0]) for e in entries])
|
unique_times = np.unique([int(e[0]) for e in entries])
|
||||||
|
|
||||||
@ -237,6 +245,7 @@ Use -exclude='regex' to specify signals to exclude (or -ex).""")
|
|||||||
print(f"Couldn't find an appropriate time for warning {a}")
|
print(f"Couldn't find an appropriate time for warning {a}")
|
||||||
continue
|
continue
|
||||||
index = time_to_index(time)
|
index = time_to_index(time)
|
||||||
|
if plot_warn:
|
||||||
ax.axvline(index+0.5, c = "red", lw = 2)
|
ax.axvline(index+0.5, c = "red", lw = 2)
|
||||||
ax.text(index+0.5, -1, a[2], rotation = 90, ha = "center", va = "bottom", c = "red")
|
ax.text(index+0.5, -1, a[2], rotation = 90, ha = "center", va = "bottom", c = "red")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user