Some rework to allow for nested packed types.

This also simplifies the NetNet set of contructors and generalizes
the types that are supported, especially packed types.
This commit is contained in:
Stephen Williams
2012-10-14 17:16:47 -07:00
parent 4e76912331
commit 914ebeca4a
21 changed files with 247 additions and 172 deletions
+7
View File
@@ -19,6 +19,8 @@
# include "netvector.h"
using namespace std;
netvector_t::netvector_t(ivl_variable_type_t type, long msb, long lsb)
: type_(type), signed_(false)
{
@@ -43,3 +45,8 @@ long netvector_t::packed_width() const
{
return netrange_width(packed_dims_);
}
vector<netrange_t> netvector_t::slice_dimensions() const
{
return packed_dims_;
}