V0.8: pad user function port in synthesize().
This patch removes the assert in synthesize() for user functions and replaces it with a pad to width.
This commit is contained in:
parent
c6ba9269bc
commit
8a1543aaaf
|
|
@ -869,7 +869,8 @@ NetNet* NetFuncDef::synthesize(Design*des, const svector<NetNet*>&inports_)
|
|||
NetNet*in = inports_[idx];
|
||||
NetNet*arg = ports_[idx];
|
||||
|
||||
assert(in->pin_count() == arg->pin_count());
|
||||
in = pad_to_width(des, in, arg->pin_count());
|
||||
|
||||
for (unsigned pin = 0 ; pin < arg->pin_count() ; pin += 1) {
|
||||
connect(in->pin(pin), arg->pin(pin));
|
||||
arg->pin(pin).unlink();
|
||||
|
|
|
|||
Loading…
Reference in New Issue