diff --git a/netdarray.h b/netdarray.h index 326f07d4c..890995ad1 100644 --- a/netdarray.h +++ b/netdarray.h @@ -36,6 +36,9 @@ class netdarray_t : public netarray_t { // A dynamic array may have a type that is signed. inline bool get_signed() const { return element_type()->get_signed(); } + // Use the packed width to pass the element width + long packed_width() const { return element_type()->packed_width(); } + // This is the base_type() of the element of the array. We // need this in some cases in order to get the base type of // the element, and not the IVL_VT_DARRAY of the array itself. diff --git a/netqueue.h b/netqueue.h index 13061ca33..1e04e4535 100644 --- a/netqueue.h +++ b/netqueue.h @@ -38,9 +38,6 @@ class netqueue_t : public netdarray_t { // IVL_VT_QUEUE for queues. ivl_variable_type_t base_type() const; - // Use the packed width to pass the element width - long packed_width(void) const { return element_type()->packed_width(); } - long max_idx(void) const { return max_idx_; } std::ostream& debug_dump(std::ostream&) const;