mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-29 01:03:29 +02:00
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:
@@ -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_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user