Emit "sorry" message for packed array parameter declarations (issue #1180)

These aren't yet supported. Make it an error if not compiling fpr a
SystemVerilog generation.
This commit is contained in:
Martin Whitaker 2024-11-15 20:24:58 +00:00
parent 6c8ed62a5a
commit aec18a6c19
1 changed files with 8 additions and 0 deletions

View File

@ -2917,6 +2917,14 @@ void pform_set_parameter(const struct vlltype&loc,
}
}
vector_type_t*vt = dynamic_cast<vector_type_t*>(data_type);
if (vt && vt->pdims && vt->pdims->size() > 1) {
if (pform_requires_sv(loc, "packed array parameter")) {
VLerror(loc, "sorry: packed array parameters are not supported yet.");
}
return;
}
bool overridable = !is_local;
if (scope == pform_cur_generate && !is_local) {