mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-22 13:57:18 +02:00
Keep the width information for all the tran gates.
Update the compiler to keep the actual width information for all the tran gates.
This commit is contained in:
@@ -963,7 +963,7 @@ bool dll_target::tran(const NetTran*net)
|
||||
{
|
||||
struct ivl_switch_s*obj = new struct ivl_switch_s;
|
||||
obj->type = net->type();
|
||||
obj->width = 0;
|
||||
obj->width = net->vector_width();
|
||||
obj->part = 0;
|
||||
obj->offset = 0;
|
||||
obj->name = net->name();
|
||||
@@ -996,7 +996,6 @@ bool dll_target::tran(const NetTran*net)
|
||||
}
|
||||
|
||||
if (obj->type == IVL_SW_TRAN_VP) {
|
||||
obj->width = net->vector_width();
|
||||
obj->part = net->part_width();
|
||||
obj->offset= net->part_offset();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user