ivl: Enum type can be used in port declarations.
This commit is contained in:
parent
cdf18de10e
commit
46c41f9be2
5
pform.cc
5
pform.cc
|
|
@ -2354,6 +2354,11 @@ void pform_module_define_port(const struct vlltype&li,
|
||||||
signed_flag = false;
|
signed_flag = false;
|
||||||
prange = 0;
|
prange = 0;
|
||||||
|
|
||||||
|
} else if (enum_type_t*enum_type = dynamic_cast<enum_type_t*>(vtype)) {
|
||||||
|
data_type = enum_type->base_type;
|
||||||
|
signed_flag = enum_type->signed_flag;
|
||||||
|
prange = enum_type->range.get();
|
||||||
|
|
||||||
} else if (vtype) {
|
} else if (vtype) {
|
||||||
VLerror(li, "sorry: Given type %s not supported here (%s:%d).",
|
VLerror(li, "sorry: Given type %s not supported here (%s:%d).",
|
||||||
typeid(*vtype).name(), __FILE__, __LINE__);
|
typeid(*vtype).name(), __FILE__, __LINE__);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue